Mengonfigurasi dan mengelola Storage Intelligence

Halaman ini menjelaskan cara mengonfigurasi, melihat, memperbarui, dan menonaktifkan Storage Intelligence untuk resource.

Mengonfigurasi Storage Intelligence

Bagian ini menjelaskan cara mengonfigurasi Storage Intelligence untuk resource.

Konsol

  1. Di konsol Google Cloud, buka halaman Setelan Cloud Storage.

    Buka Setelan

  2. Klik Configure Storage Intelligence.

  3. Pada dialog Configure Storage Intelligence, pilih resource yang ingin Anda konfigurasikan Storage Intelligence-nya.

  4. Klik Lanjutkan.

  5. Opsional: Untuk menyertakan atau mengecualikan bucket tertentu dalam konfigurasi Storage Intelligence, lakukan tindakan berikut:

    1. Untuk memilih bucket dari lokasi tertentu, gunakan menu jenis filter. Untuk menyertakan atau mengecualikan bucket, pilih lokasi dari menu location. Untuk mengetahui informasi selengkapnya, lihat Memfilter menurut lokasi.

    2. Untuk memilih bucket Cloud Storage menurut nama, gunakan menu filter type. Untuk menyertakan atau mengecualikan bucket, tentukan ekspresi reguler nama bucket, lalu klik Tambahkan ekspresi reguler. Untuk informasi selengkapnya, lihat Memfilter menurut nama bucket.

  6. Klik Aktifkan konfigurasi ini.

Command line

  1. In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

    At the bottom of the Google Cloud console, a Cloud Shell session starts and displays a command-line prompt. Cloud Shell is a shell environment with the Google Cloud CLI already installed and with values already set for your current project. It can take a few seconds for the session to initialize.

  2. Untuk mengonfigurasi Storage Intelligence, gunakan perintah gcloud alpha storage intelligence-configs enable dengan salah satu flag berikut:

    • --project: Mengonfigurasi Storage Intelligence untuk project. Nilainya adalah project ID. Misalnya, my-project.

    • --sub-folder: Mengonfigurasi Storage Intelligence untuk folder. Nilainya adalah ID folder. Misalnya, 1234567890.

    • --organization: Mengonfigurasi Storage Intelligence untuk organisasi. Nilainya adalah ID organisasi. Misalnya, 9876546738.

      Misalnya, perintah berikut mengonfigurasi Storage Intelligence untuk project bernama my-project:

      gcloud alpha storage intelligence-configs enable --project=PROJECT_ID

      Dengan PROJECT_ID sebagai project ID.

    Untuk menyertakan atau mengecualikan bucket tertentu dalam konfigurasi Storage Intelligence, gunakan salah satu flag berikut:

    • --exclude-bucket-regexes: Daftar ekspresi reguler ID bucket yang akan dikecualikan dari konfigurasi Storage Intelligence.
    • --include-bucket-regexes: Daftar ekspresi reguler ID bucket yang akan disertakan dalam konfigurasi Storage Intelligence.

    Misalnya, untuk mengecualikan semua bucket yang berisi colddata dalam namanya, gunakan perintah berikut:

    gcloud alpha storage intelligence-configs enable --organization=54343 --exclude-bucket-regexes=colddata.*

    Misalnya, untuk mengecualikan bucket bernama colddata, gunakan perintah berikut:

    gcloud alpha storage intelligence-configs enable --organization=54343 --exclude-bucket-regexes=colddata

    Misalnya, untuk mengecualikan bucket bernama colour atau color, gunakan perintah berikut:

    gcloud alpha storage intelligence-configs enable --organization=my-org --exclude-bucket-regexes=colou?r

    Untuk menyertakan atau mengecualikan bucket berdasarkan lokasinya dalam konfigurasi Storage Intelligence, gunakan salah satu flag berikut:

    • --exclude-locations: Daftar lokasi yang akan dikecualikan dari konfigurasi Storage Intelligence.
    • --include-locations: Daftar lokasi yang akan disertakan dalam konfigurasi Storage Intelligence.

    Contoh:

    gcloud alpha storage intelligence-configs enable --sub-folder=123456 --include-locations=us-east1,us-west1

REST API

JSON API

  1. Menginstal dan melakukan inisialisasi gcloud CLI , yang memungkinkan Anda membuat token akses untuk header Authorization.

  2. Buat file JSON dengan detail berikut:

    1. name: Nama konfigurasi Storage Intelligence. Gunakan salah satu format berikut:
      • Project: projects/PROJECT_ID/locations/global/intelligenceConfig
      • Folder: folders/FOLDER_ID/locations/global/intelligenceConfig
      • Organisasi: organizations/ORGANIZATION_ID/locations/global/intelligenceConfig

      Dengan keterangan:

      • PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project
      • FOLDER_ID adalah Google Cloud ID folder. ID folder berupa angka, misalnya, 123456789012
      • ORGANIZATION_ID adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya, 123456789012
    2. Konfigurasi kolom editionConfig. Untuk informasi selengkapnya, lihat Konfigurasi edisi.
    3. Opsional: Konfigurasikan objek filter. Anda dapat menyertakan atau mengecualikan bucket berdasarkan lokasi Cloud Storage dan ekspresi reguler ID bucket.
        {
          "name":"projects/PROJECT_ID/locations/global/intelligenceConfig",
          "editionConfig":"EDITION_CONFIGURATION",
          "filter":{
            "includedCloudStorageBuckets":{
                "bucketIdRegexes":[
                  "INCLUDED_BUCKET_ID_REGEX",
                    ...]
            },
            "excludedCloudStorageBuckets":{
                "bucketIdRegexes":[
                  "EXCLUDED_BUCKET_ID_REGEX",
                    ...]
            },
            "includedCloudStorageLocations":{
                "locations":[
                  "INCLUDED_BUCKET_LOCATION",
                    ...]
            },
            "excludedCloudStorageLocations":{
                "locations":[
                  "EXCLUDED_BUCKET_LOCATION",
                    ...]
            }
          }
        }
      

    Dengan keterangan:

    • PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.
    • EDITION_CONFIGURATION adalah konfigurasi edisi Storage Intelligence.
    • Opsional:INCLUDED_BUCKET_ID_REGEX adalah ekspresi reguler yang menentukan ID bucket yang akan disertakan. Anda dapat menentukan satu atau beberapa ekspresi reguler sebagai daftar.
    • Opsional: EXCLUDED_BUCKET_ID_REGEX adalah ekspresi reguler yang menentukan ID bucket yang akan dikecualikan. Anda dapat menentukan satu atau beberapa ekspresi reguler sebagai daftar.
    • Opsional: INCLUDED_BUCKET_LOCATION adalah lokasi tempat Anda ingin menyertakan bucket dalam konfigurasi Storage Intelligence. Anda dapat menentukan satu atau beberapa lokasi sebagai daftar.
    • Opsional: EXCLUDED_BUCKET_LOCATION adalah lokasi tempat Anda ingin mengecualikan bucket dari konfigurasi Storage Intelligence. Anda dapat menentukan satu atau beberapa lokasi sebagai daftar.
  3. Bagian berikut menjelaskan cara mengonfigurasi Storage Intelligence untuk project, folder, atau organisasi. Konfigurasikan Storage Intelligence menggunakan salah satu metode berikut.

    Mengonfigurasi Storage Intelligence untuk project

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk mengonfigurasi Storage Intelligence untuk project.

      curl -X POST \
        --data-binary @JSON_FILE_NAME \
        -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        -H "Content-Type: application/json" \
        "https://storage.googleapis.com/v2/projects/PROJECT_ID/locations/global/intelligenceConfig?updateMask=UPDATE_MASK"
    

    Dengan keterangan:

    • PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project
    • UPDATE_MASK adalah daftar nama kolom yang dipisahkan koma yang diperbarui oleh permintaan ini. Kolom menggunakan format FieldMask dan merupakan bagian dari resource IntelligenceConfig.

    Mengonfigurasi Storage Intelligence untuk folder

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk mengonfigurasi Storage Intelligence untuk folder.

      curl -X POST \
        --data-binary @JSON_FILE_NAME \
        -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        -H "Content-Type: application/json" \
        "https://storage.googleapis.com/v2/folders/FOLDER_ID/locations/global/intelligenceConfig?updateMask=UPDATE_MASK"
    

    Dengan keterangan:

    • FOLDER_ID adalah Google Cloud ID folder. ID folder berupa angka, misalnya, 123456789012
    • UPDATE_MASK adalah daftar nama kolom yang dipisahkan koma yang diperbarui oleh permintaan ini. Kolom menggunakan format FieldMask dan merupakan bagian dari resource IntelligenceConfig.

    Mengonfigurasi Storage Intelligence untuk organisasi

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk mengonfigurasi Storage Intelligence untuk organisasi.

    curl -X POST \
      --data-binary @JSON_FILE_NAME \
      -H "Authorization: Bearer $(gcloud auth print-access-token)" \
      -H "Content-Type: application/json" \
      "https://storage.googleapis.com/v2/organizations/ORGANIZATION_ID/locations/global/intelligenceConfig?updateMask=UPDATE_MASK"
    

    Dengan keterangan:

    • ORGANIZATION_ID adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya, 79293024087
    • UPDATE_MASK adalah daftar nama kolom yang dipisahkan koma yang diperbarui oleh permintaan ini. Kolom menggunakan format FieldMask dan merupakan bagian dari resource IntelligenceConfig.

Melihat konfigurasi Storage Intelligence

Bagian ini menjelaskan cara melihat konfigurasi Storage Intelligence untuk resource.

Konsol

  1. Di konsol Google Cloud, buka halaman Setelan Cloud Storage.

    Buka Setelan

  2. Pilih pemilih project di bagian atas halaman.

  3. Di dialog Select a resource, pilih resource yang konfigurasi Storage Intelligence-nya ingin Anda lihat.

Jika resource telah mengonfigurasi Storage Intelligence, kolom Status akan menampilkan Enabled. Untuk resource yang tidak memiliki Storage Intelligence yang dikonfigurasi, tombol Configure Storage Intelligence akan ditampilkan.

Command line

  1. In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

    At the bottom of the Google Cloud console, a Cloud Shell session starts and displays a command-line prompt. Cloud Shell is a shell environment with the Google Cloud CLI already installed and with values already set for your current project. It can take a few seconds for the session to initialize.

  2. Untuk melihat konfigurasi Storage Intelligence untuk resource, gunakan perintah gcloud alpha storage intelligence-configs describe dengan salah satu flag berikut:

    • --project: Melihat konfigurasi Storage Intelligence untuk project. Nilainya adalah project ID. Misalnya, my-project.

    • --sub-folder: Melihat konfigurasi Storage Intelligence untuk folder. Nilainya adalah ID folder. Misalnya, 1234567890.

    • --organization: Melihat konfigurasi Storage Intelligence untuk organisasi. Nilainya adalah ID organisasi. Misalnya, 9876546738.

      Misalnya, perintah berikut melihat konfigurasi Storage Intelligence untuk project bernama my-project:

      gcloud alpha storage intelligence-configs describe --project=PROJECT_ID

      Dengan PROJECT_ID sebagai Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.

REST API

JSON API

  1. Menginstal dan melakukan inisialisasi gcloud CLI, yang memungkinkan Anda membuat token akses untuk header Authorization.

  2. Metode untuk melihat konfigurasi Storage Intelligence untuk resource dijelaskan di bagian berikut.

    Melihat konfigurasi Storage Intelligence untuk project

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk melihat konfigurasi Storage Intelligence untuk project.

      curl -X GET \
        -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        "https://storage.googleapis.com/v2/projects/PROJECT_ID/locations/global/intelligenceConfig"
    

    Dengan keterangan:

    PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.

    Melihat konfigurasi Storage Intelligence untuk folder

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk melihat konfigurasi Storage Intelligence untuk folder.

      curl -X GET \
        -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        "https://storage.googleapis.com/v2/folders/FOLDER_ID/locations/global/intelligenceConfig"
    

    Dengan keterangan:

    FOLDER_ID adalah Google Cloud ID folder. ID folder berupa angka, misalnya, 123456789012.

    Melihat konfigurasi Storage Intelligence untuk organisasi

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk melihat konfigurasi Storage Intelligence untuk organisasi.

      curl -X GET \
        -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        "https://storage.googleapis.com/v2/organizations/ORGANIZATION_ID/locations/global/intelligenceConfig"
    

    Dengan keterangan:

    ORGANIZATION_ID adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya, 79293024087.

Memperbarui konfigurasi Storage Intelligence

Bagian ini menjelaskan cara memperbarui konfigurasi Storage Intelligence untuk resource.

Konsol

  1. Di konsol Google Cloud, buka halaman Setelan Cloud Storage.

    Buka Setelan

  2. Pilih pemilih project di bagian atas halaman.

  3. Dalam dialog Select a resource, pilih resource yang konfigurasi Storage Intelligence-nya ingin Anda perbarui.

  4. Di bagian Ringkasan, ubah opsi konfigurasi yang dapat diedit untuk memenuhi kebutuhan Anda. Misalnya, Anda dapat menonaktifkan Storage Intelligence untuk resource atau mengubah konfigurasi edisi menjadi Inherit from parent atau mengubah filter bucket.

Command line

  1. In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

    At the bottom of the Google Cloud console, a Cloud Shell session starts and displays a command-line prompt. Cloud Shell is a shell environment with the Google Cloud CLI already installed and with values already set for your current project. It can take a few seconds for the session to initialize.

  2. Untuk memperbarui konfigurasi Storage Intelligence untuk resource, gunakan perintah gcloud alpha storage intelligence-configs update dengan salah satu flag berikut:

    • --project: Memperbarui konfigurasi Storage Intelligence untuk project. Nilainya adalah project ID. Misalnya, my-project.

    • --sub-folder: Memperbarui konfigurasi Storage Intelligence untuk folder. Nilainya adalah ID folder. Misalnya, 1234567890.

    • --organization: Memperbarui konfigurasi Storage Intelligence untuk organisasi. Nilainya adalah ID organisasi. Misalnya, 9876546738.

      Misalnya, perintah berikut memperbarui konfigurasi Storage Intelligence untuk project bernama my-project:

      gcloud alpha storage intelligence-configs update --project=PROJECT_ID

      Dengan PROJECT_ID sebagai Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.

REST API

JSON API

  1. Menginstal dan melakukan inisialisasi gcloud CLI, yang memungkinkan Anda membuat token akses untuk header Authorization.

  2. Buat file JSON dengan detail berikut:

    1. name: Nama konfigurasi Storage Intelligence. Gunakan salah satu format berikut:
      • Project: projects/PROJECT_ID/locations/global/intelligenceConfig
      • Folder: folders/FOLDER_ID/locations/global/intelligenceConfig
      • Organisasi: organizations/ORGANIZATION_ID/locations/global/intelligenceConfig

      Dengan keterangan:

      • PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project
      • FOLDER_ID adalah Google Cloud ID folder. ID folder berupa angka, misalnya, 123456789012
      • ORGANIZATION_ID adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya, 123456789012
    2. Konfigurasi kolom editionConfig. Untuk informasi selengkapnya, lihat Konfigurasi edisi.
    3. Opsional: Konfigurasikan objek filter. Anda dapat menyertakan atau mengecualikan bucket berdasarkan lokasi Cloud Storage dan ekspresi reguler ID bucket.
        {
          "name":"projects/PROJECT_ID/locations/global/intelligenceConfig",
          "editionConfig":"EDITION_CONFIGURATION",
          "filter":{
            "includedCloudStorageBuckets":{
                "bucketIdRegexes":[
                  "INCLUDED_BUCKET_ID_REGEX",
                    ...]
            },
            "excludedCloudStorageBuckets":{
                "bucketIdRegexes":[
                  "EXCLUDED_BUCKET_ID_REGEX",
                    ...]
            },
            "includedCloudStorageLocations":{
                "locations":[
                  "INCLUDED_BUCKET_LOCATION",
                    ...]
            },
            "excludedCloudStorageLocations":{
                "locations":[
                  "EXCLUDED_BUCKET_LOCATION",
                    ...]
            }
          }
        }
      

    Dengan keterangan:

    • PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.
    • EDITION_CONFIGURATION adalah konfigurasi edisi Storage Intelligence.
    • Opsional:INCLUDED_BUCKET_ID_REGEX adalah ekspresi reguler yang menentukan ID bucket yang akan disertakan. Anda dapat menentukan satu atau beberapa ekspresi reguler sebagai daftar.
    • Opsional: EXCLUDED_BUCKET_ID_REGEX adalah ekspresi reguler yang menentukan ID bucket yang akan dikecualikan. Anda dapat menentukan satu atau beberapa ekspresi reguler sebagai daftar.
    • Opsional: INCLUDED_BUCKET_LOCATION adalah lokasi tempat Anda ingin menyertakan bucket dalam konfigurasi Storage Intelligence. Anda dapat menentukan satu atau beberapa lokasi sebagai daftar.
    • Opsional: EXCLUDED_BUCKET_LOCATION adalah lokasi tempat Anda ingin mengecualikan bucket dari konfigurasi Storage Intelligence. Anda dapat menentukan satu atau beberapa lokasi sebagai daftar.
  3. Bagian berikut menjelaskan cara memperbarui konfigurasi Storage Intelligence untuk project, folder, atau organisasi. Perbarui konfigurasi Storage Intelligence menggunakan salah satu metode berikut.

    Memperbarui konfigurasi Storage Intelligence untuk project

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk memperbarui konfigurasi Storage Intelligence untuk project.

     curl -X PATCH \
       --data-binary @JSON_FILE_NAME \
       -H "Authorization: Bearer $(gcloud auth print-access-token)" \
       -H "Content-Type: application/json" \
       "https://storage.googleapis.com/v2/projects/PROJECT_ID/locations/global/intelligenceConfig?updateMask=UPDATE_MASK"
    

    Memperbarui konfigurasi Storage Intelligence untuk folder

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk memperbarui konfigurasi Storage Intelligence untuk folder.

    Dengan keterangan:

    • PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project
    • UPDATE_MASK adalah daftar nama kolom yang dipisahkan koma yang diperbarui oleh permintaan ini. Kolom menggunakan format FieldMask dan merupakan bagian dari resource IntelligenceConfig.

     curl -X PATCH \
       --data-binary @JSON_FILE_NAME \
       -H "Authorization: Bearer $(gcloud auth print-access-token)" \
       -H "Content-Type: application/json" \
       "https://storage.googleapis.com/v2/folders/FOLDER_ID/locations/global/intelligenceConfig?updateMask=UPDATE_MASK"
    

    Dengan keterangan:

    • FOLDER_ID adalah Google Cloud ID folder. ID folder berupa angka, misalnya, 123456789012
    • UPDATE_MASK adalah daftar nama kolom yang dipisahkan koma yang diperbarui oleh permintaan ini. Kolom menggunakan format FieldMask dan merupakan bagian dari resource IntelligenceConfig.

    Memperbarui konfigurasi Storage Intelligence untuk organisasi

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk memperbarui konfigurasi Storage Intelligence untuk organisasi.

     curl -X PATCH \
       --data-binary @JSON_FILE_NAME \
       -H "Authorization: Bearer $(gcloud auth print-access-token)" \
       -H "Content-Type: application/json" \
       "https://storage.googleapis.com/v2/organizations/ORGANIZATION_ID/locations/global/intelligenceConfig?updateMask=UPDATE_MASK"
    

    Dengan keterangan:

    • ORGANIZATION_ID adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya, 79293024087
    • UPDATE_MASK adalah daftar nama kolom yang dipisahkan koma yang diperbarui oleh permintaan ini. Kolom menggunakan format FieldMask dan merupakan bagian dari resource IntelligenceConfig.

Menonaktifkan Storage Intelligence

Bagian ini menjelaskan cara menonaktifkan Storage Intelligence.

Konsol

  1. Di konsol Google Cloud, buka halaman Setelan Cloud Storage.

    Buka Setelan

  2. Pilih pemilih project di bagian atas halaman.

  3. Pada dialog Select a resource, pilih resource yang ingin Anda nonaktifkan Storage Intelligence.

  4. Di bagian Ringkasan, klik Aktif di samping kolom Status.

  5. Pada dialog yang muncul, masukkan Nonaktifkan, lalu klik Nonaktifkan.

Command line

  1. In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

    At the bottom of the Google Cloud console, a Cloud Shell session starts and displays a command-line prompt. Cloud Shell is a shell environment with the Google Cloud CLI already installed and with values already set for your current project. It can take a few seconds for the session to initialize.

  2. Untuk menonaktifkan konfigurasi Storage Intelligence untuk resource, gunakan perintah gcloud alpha storage intelligence-configs disable dengan salah satu flag berikut:

    • --project: Menonaktifkan konfigurasi Storage Intelligence untuk project. Nilainya adalah project ID. Misalnya, my-project.

    • --sub-folder: Menonaktifkan konfigurasi Storage Intelligence untuk folder. Nilainya adalah ID folder. Misalnya, 1234567890.

    • --organization: Menonaktifkan konfigurasi Storage Intelligence untuk organisasi. Nilainya adalah ID organisasi. Misalnya, 9876546738.

      Misalnya, perintah berikut menonaktifkan konfigurasi Storage Intelligence untuk project bernama my-project:

      gcloud alpha storage intelligence-configs disable --project=PROJECT_ID

      Dengan PROJECT_ID sebagai Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.

REST API

JSON API

  1. Menginstal dan melakukan inisialisasi gcloud CLI, yang memungkinkan Anda membuat token akses untuk header Authorization.

  2. Metode untuk menonaktifkan Storage Intelligence untuk resource dijelaskan di bagian berikut.

    Menonaktifkan Storage Intelligence untuk project

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk memperbarui Storage Intelligence untuk project.

    curl -X PATCH \
     -H "Content-Type: application/json" \
     -d '{
          "edition_config": "DISABLED"
         }' \
     -H "Authorization: Bearer $(gcloud auth print-access-token)" \
      "https://storage.googleapis.com/v2/projects/PROJECT_ID/locations/global/intelligenceConfig?updateMask=edition_config"

    Dengan:
    PROJECT_ID adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya, my-project.

    Menonaktifkan Storage Intelligence untuk folder

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk memperbarui Storage Intelligence untuk folder.

    curl -X PATCH \
      -H "Content-Type: application/json" \
      -d '{
        "edition_config": "DISABLED"
      }' \
      -H "Authorization: Bearer $(gcloud auth print-access-token)" \
      "https://storage.googleapis.com/v2/folders/FOLDER_ID/locations/global/intelligenceConfig?updateMask=edition_config"
    

    Dengan:
    FOLDER_ID adalah Google Cloud ID folder. ID folder berupa angka, misalnya, 123456789012.

    Menonaktifkan Storage Intelligence untuk organisasi

    Gunakan cURL untuk memanggil JSON API dengan permintaan untuk menonaktifkan Storage Intelligence untuk organisasi.

    curl -X PATCH \
      -H "Content-Type: application/json" \
      -d '{
        "edition_config": "DISABLED"
      }' \
      -H "Authorization: Bearer $(gcloud auth print-access-token)" \
      "https://storage.googleapis.com/v2/organizations/ORGANIZATION_ID/locations/global/intelligenceConfig?updateMask=edition_config"

    Dengan:
    ORGANIZATION_ID adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya, 79293024087.

Langkah berikutnya