Storage Intelligence 구성 및 관리

이 페이지에서는 리소스Storage Intelligence를 구성, 확인, 업데이트, 사용 중지하는 방법을 설명합니다.

필수 역할

Storage Intelligence를 구성하고 관리하는 데 필요한 권한을 얻으려면 관리자에게 프로젝트, 폴더 또는 조직에 대한 스토리지 관리자(roles/storage.admin) IAM 역할을 부여해 달라고 요청하세요. 역할 부여에 대한 자세한 내용은 프로젝트, 폴더, 조직에 대한 액세스 관리를 참조하세요.

이 사전 정의된 역할에는 Storage Intelligence를 구성하고 관리하는 데 필요한 권한이 포함되어 있습니다. 필요한 정확한 권한을 보려면 필수 권한 섹션을 펼치세요.

필수 권한

Storage Intelligence를 구성하고 관리하려면 다음 권한이 필요합니다.

  • Storage Intelligence 구성: storage.intelligenceConfigs.update
  • Storage Intelligence 구성 보기: storage.intelligenceConfigs.get
  • Storage Intelligence 구성 업데이트: storage.intelligenceConfigs.update
  • Storage Intelligence 사용 중지: storage.intelligenceConfigs.update

커스텀 역할이나 다른 사전 정의된 역할을 사용하여 이 권한을 부여받을 수도 있습니다.

Storage Intelligence 구성

콘솔

  1. Google Cloud 콘솔에서 Storage Intelligence 구성 페이지로 이동합니다.

    구성으로 이동

  2. Storage Intelligence 사용 설정을 클릭합니다.

  3. Storage Intelligence 구성 대화상자에서 Storage Intelligence를 구성할 리소스를 선택합니다.

  4. 계속을 클릭합니다.

  5. (선택사항) Storage Intelligence 구성에서 특정 버킷을 포함하거나 제외하려면 다음 단계를 따르세요.

    1. 특정 위치에서 버킷을 선택하려면 필터 유형 메뉴를 사용하세요. 버킷을 포함하거나 제외하려면 위치 메뉴에서 위치를 선택합니다. 자세한 내용은 위치별 필터링을 참고하세요.

    2. 이름으로 Cloud Storage 버킷을 선택하려면 필터 유형 메뉴를 사용하세요. 버킷을 포함하거나 제외하려면 버킷 이름의 정규 표현식을 지정하고 정규 표현식 추가를 클릭합니다. 자세한 내용은 버킷 이름별 필터링을 참고하세요.

  6. 이 구성 사용 설정을 클릭합니다.

명령줄

  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. Storage Intelligence를 구성하려면 gcloud alpha storage intelligence-configs enable 명령어를 다음 플래그 중 하나와 함께 사용합니다.

    • --project: 프로젝트에 Storage Intelligence를 구성합니다. 값은 프로젝트 ID입니다. 예를 들면 my-project입니다.

    • --sub-folder: 폴더의 Storage Intelligence를 구성합니다. 값은 폴더 ID입니다. 예를 들면 1234567890입니다.

    • --organization: 조직의 Storage Intelligence를 구성합니다. 값은 조직 ID입니다. 예를 들면 9876546738입니다.

      예를 들어 다음 명령어는 my-project라는 프로젝트에 대해 Storage Intelligence를 구성합니다.

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

      여기서 PROJECT_ID는 프로젝트 ID입니다.

    Storage Intelligence 구성에서 특정 버킷을 포함하거나 제외하려면 다음 플래그 중 어느 것이든 사용합니다.

    • --exclude-bucket-regexes: Storage Intelligence 구성에서 제외할 버킷 ID 정규식 목록
    • --include-bucket-regexes: Storage Intelligence 구성에 포함할 버킷 ID 정규식 목록

    예를 들어 이름에 colddata가 포함된 모든 버킷을 제외하려면 다음 명령어를 사용합니다.

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

    예를 들어 colddata라는 버킷을 제외하려면 다음 명령어를 사용합니다.

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

    예를 들어 colour 또는 color라는 버킷을 제외하려면 다음 명령어를 사용합니다.

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

    Storage Intelligence 구성에서 위치에 따라 버킷을 포함하거나 제외하려면 다음 플래그 중 어느 것이든 사용합니다.

    • --exclude-locations: Storage Intelligence 구성에서 제외할 위치 목록
    • --include-locations: Storage Intelligence 구성에 포함할 위치 목록

    예를 들면 다음과 같습니다.

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

    JSON API

    1. Authorization 헤더에 대한 액세스 토큰을 생성하려면 gcloud CLI가 설치 및 초기화되어 있어야 합니다.

    2. 다음 세부사항으로 JSON 파일을 만듭니다.

      1. name: Storage Intelligence 구성의 이름. 다음 형식 중 하나를 사용하세요.
        • 프로젝트: projects/PROJECT_ID/locations/global/intelligenceConfig
        • 폴더: folders/FOLDER_ID/locations/global/intelligenceConfig
        • 조직: organizations/ORGANIZATION_ID/locations/global/intelligenceConfig

        각 항목의 의미는 다음과 같습니다.

        • PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).
        • FOLDER_ID는 Google Cloud 폴더 ID입니다. 폴더 ID는 숫자입니다(예: 123456789012).
        • ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 숫자입니다(예: 123456789012).
      2. editionConfig 필드를 구성합니다. 자세한 내용은 버전 구성을 참고하세요.
      3. (선택사항) filter 객체를 구성합니다. Cloud Storage 위치버킷 ID 정규 표현식을 기준으로 버킷을 포함하거나 제외할 수 있습니다.
          {
            "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",
                      ...]
              }
            }
          }
        

      각 항목의 의미는 다음과 같습니다.

      • PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).
      • EDITION_CONFIGURATION은 Storage Intelligence 버전 구성입니다.
      • (선택사항) INCLUDED_BUCKET_ID_REGEX는 포함할 버킷 ID를 지정하는 정규 표현식입니다. 정규 표현식을 하나 이상 목록으로 지정할 수 있습니다.
      • (선택사항) EXCLUDED_BUCKET_ID_REGEX는 제외할 버킷 ID를 지정하는 정규 표현식입니다. 정규 표현식을 하나 이상 목록으로 지정할 수 있습니다.
      • (선택사항) INCLUDED_BUCKET_LOCATION는 Storage Intelligence 구성에 버킷을 포함할 위치입니다. 위치를 하나 이상 목록으로 지정할 수 있습니다.
      • (선택사항) EXCLUDED_BUCKET_LOCATION은 Storage Intelligence 구성에서 버킷을 제외할 위치입니다. 위치를 하나 이상 목록으로 지정할 수 있습니다.
    3. 다음 섹션에서는 REST API를 사용하여 프로젝트, 폴더 또는 조직에 Storage Intelligence를 구성하는 방법을 설명합니다. REST API를 사용하여 Storage Intelligence 신규 30일 무료 체험을 구성할 수도 있습니다. 다음 방법 중 아무 방법이든 사용하여 Storage Intelligence 또는 Storage Intelligence 신규 30일 무료 체험을 구성합니다.

      프로젝트에 Storage Intelligence 구성

      cURL을 사용하여 프로젝트의 Storage Intelligence를 구성하는 요청으로 JSON API를 호출합니다.

        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"
      

      각 항목의 의미는 다음과 같습니다.

      • PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).
      • UPDATE_MASK는 이 요청에서 업데이트하는 필드 이름을 쉼표로 구분한 목록입니다. 필드는 FieldMask 형식을 사용하며 IntelligenceConfig 리소스의 일부입니다.

      폴더에 Storage Intelligence 구성

      cURL을 사용하여 폴더의 Storage Intelligence 구성 요청으로 JSON API를 호출합니다.

        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"
      

      각 항목의 의미는 다음과 같습니다.

      • FOLDER_ID는 Google Cloud 폴더 ID입니다. 폴더 ID는 숫자입니다(예: 123456789012).
      • UPDATE_MASK는 이 요청에서 업데이트하는 필드 이름을 쉼표로 구분한 목록입니다. 필드는 FieldMask 형식을 사용하며 IntelligenceConfig 리소스의 일부입니다.

      조직에 Storage Intelligence 구성

      cURL을 사용하여 조직의 Storage Intelligence를 구성하는 요청으로 JSON API를 호출합니다.

      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"
      

      각 항목의 의미는 다음과 같습니다.

      • ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 숫자입니다(예: 79293024087).
      • UPDATE_MASK는 이 요청에서 업데이트하는 필드 이름을 쉼표로 구분한 목록입니다. 필드는 FieldMask 형식을 사용하며 IntelligenceConfig 리소스의 일부입니다.

Storage Intelligence 구성 보기

콘솔

  1. Google Cloud 콘솔에서 Storage Intelligence 구성 페이지로 이동합니다.

    구성으로 이동

  2. 페이지 상단의 프로젝트 선택 도구를 선택합니다.

  3. 리소스 선택 대화상자에서 Storage Intelligence 구성을 볼 리소스를 선택합니다.

리소스에 Storage Intelligence가 구성된 경우 상태 필드에 Enabled가 표시됩니다. Storage Intelligence가 구성되지 않은 리소스의 경우 Storage Intelligence 구성 버튼이 표시됩니다.

명령줄

  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. 리소스의 Storage Intelligence 구성을 보려면 다음 플래그 중 하나와 함께 gcloud alpha storage intelligence-configs describe 명령어를 사용합니다.

    • --project: 프로젝트의 Storage Intelligence 구성을 확인합니다. 값은 프로젝트 ID입니다. 예를 들면 my-project입니다.

    • --sub-folder: 폴더의 Storage Intelligence 구성을 확인합니다. 값은 폴더 ID입니다. 예를 들면 1234567890입니다.

    • --organization: 조직의 Storage Intelligence 구성을 확인합니다. 값은 조직 ID입니다. 예를 들면 9876546738입니다.

      예를 들어 다음 명령어는 my-project라는 프로젝트의 Storage Intelligence 구성을 봅니다.

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

      여기서 PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).

  3. REST API

    JSON API

    1. Authorization 헤더에 대한 액세스 토큰을 생성하려면 gcloud CLI가 설치 및 초기화되어 있어야 합니다.

    2. 리소스의 Storage Intelligence 구성을 보는 방법은 다음 섹션에 자세히 설명되어 있습니다.

      프로젝트의 Storage Intelligence 구성 확인

      cURL을 사용하여 프로젝트의 Storage Intelligence 구성을 확인하는 요청으로 JSON API를 호출합니다.

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

      각 항목의 의미는 다음과 같습니다.

      PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).

      폴더의 Storage Intelligence 구성 확인

      cURL을 사용하여 폴더의 Storage Intelligence 구성을 확인하는 요청으로 JSON API를 호출합니다.

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

      각 항목의 의미는 다음과 같습니다.

      FOLDER_ID는 Google Cloud 폴더 ID입니다. 폴더 ID는 숫자입니다(예: 123456789012).

      조직의 Storage Intelligence 구성을 확인

      cURL을 사용하여 조직의 Storage Intelligence 구성을 확인하는 요청으로 JSON API를 호출합니다.

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

      각 항목의 의미는 다음과 같습니다.

      ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 숫자입니다(예: 79293024087).

Storage Intelligence 구성 업데이트

콘솔

  1. Google Cloud 콘솔에서 Storage Intelligence 구성 페이지로 이동합니다.

    구성으로 이동

  2. 페이지 상단의 프로젝트 선택 도구를 선택합니다.

  3. 리소스 선택 대화상자에서 Storage Intelligence 구성을 업데이트할 리소스를 선택합니다.

  4. 개요 섹션에서 편집 가능한 구성 옵션을 필요에 맞게 수정합니다. 예를 들어 리소스에 대한 Storage Intelligence를 사용 중지하거나 버전 구성Inherit from parent로 변경하거나 버킷 필터를 변경할 수 있습니다.

명령줄

  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. 리소스의 Storage Intelligence 구성을 업데이트하려면 다음 플래그 중 하나와 함께 gcloud alpha storage intelligence-configs update 명령어를 사용합니다.

    • --project: 프로젝트의 Storage Intelligence 구성을 업데이트합니다. 값은 프로젝트 ID입니다. 예를 들면 my-project입니다.

    • --sub-folder: 폴더의 Storage Intelligence 구성을 업데이트합니다. 값은 폴더 ID입니다. 예를 들면 1234567890입니다.

    • --organization: 조직의 Storage Intelligence 구성을 업데이트합니다. 값은 조직 ID입니다. 예를 들면 9876546738입니다.

      예를 들어 다음 명령어는 my-project라는 프로젝트의 Storage Intelligence 구성을 업데이트합니다.

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

      여기서 PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).

  3. REST API

    JSON API

    1. Authorization 헤더에 대한 액세스 토큰을 생성하려면 gcloud CLI가 설치 및 초기화되어 있어야 합니다.

    2. 다음 세부사항으로 JSON 파일을 만듭니다.

      1. name: Storage Intelligence 구성의 이름. 다음 형식 중 하나를 사용하세요.
        • 프로젝트: projects/PROJECT_ID/locations/global/intelligenceConfig
        • 폴더: folders/FOLDER_ID/locations/global/intelligenceConfig
        • 조직: organizations/ORGANIZATION_ID/locations/global/intelligenceConfig

        각 항목의 의미는 다음과 같습니다.

        • PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).
        • FOLDER_ID는 Google Cloud 폴더 ID입니다. 폴더 ID는 숫자입니다(예: 123456789012).
        • ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 숫자입니다(예: 123456789012).
      2. editionConfig 필드를 구성합니다. 자세한 내용은 버전 구성을 참고하세요.
      3. (선택사항) filter 객체를 구성합니다. Cloud Storage 위치버킷 ID 정규 표현식을 기준으로 버킷을 포함하거나 제외할 수 있습니다.
          {
            "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",
                      ...]
              }
            }
          }
        

      각 항목의 의미는 다음과 같습니다.

      • PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).
      • EDITION_CONFIGURATION은 Storage Intelligence 버전 구성입니다.
      • (선택사항) INCLUDED_BUCKET_ID_REGEX는 포함할 버킷 ID를 지정하는 정규 표현식입니다. 정규 표현식을 하나 이상 목록으로 지정할 수 있습니다.
      • (선택사항) EXCLUDED_BUCKET_ID_REGEX는 제외할 버킷 ID를 지정하는 정규 표현식입니다. 정규 표현식을 하나 이상 목록으로 지정할 수 있습니다.
      • (선택사항) INCLUDED_BUCKET_LOCATION는 Storage Intelligence 구성에 버킷을 포함할 위치입니다. 위치를 하나 이상 목록으로 지정할 수 있습니다.
      • (선택사항) EXCLUDED_BUCKET_LOCATION은 Storage Intelligence 구성에서 버킷을 제외할 위치입니다. 위치를 하나 이상 목록으로 지정할 수 있습니다.
    3. 다음 섹션에서는 프로젝트, 폴더 또는 조직의 Storage Intelligence 구성을 업데이트하는 방법을 설명합니다. 다음 방법 중 하나를 사용하여 Storage Intelligence 구성을 업데이트합니다.

      프로젝트의 Storage Intelligence 구성 업데이트

      cURL을 사용하여 프로젝트의 Storage Intelligence 구성을 업데이트하는 요청으로 JSON API를 호출합니다.

       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"
      

      폴더의 Storage Intelligence 구성 업데이트

      cURL을 사용하여 폴더의 Storage Intelligence 구성을 업데이트하는 요청으로 JSON API를 호출합니다.

      각 항목의 의미는 다음과 같습니다.

      • PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).
      • UPDATE_MASK는 이 요청에서 업데이트하는 필드 이름을 쉼표로 구분한 목록입니다. 필드는 FieldMask 형식을 사용하며 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"
      

      각 항목의 의미는 다음과 같습니다.

      • FOLDER_ID는 Google Cloud 폴더 ID입니다. 폴더 ID는 숫자입니다(예: 123456789012).
      • UPDATE_MASK는 이 요청에서 업데이트하는 필드 이름을 쉼표로 구분한 목록입니다. 필드는 FieldMask 형식을 사용하며 IntelligenceConfig 리소스의 일부입니다.

      조직의 Storage Intelligence 구성 업데이트

      cURL을 사용하여 조직의 Storage Intelligence 구성을 업데이트하는 요청으로 JSON API를 호출합니다.

       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"
      

      각 항목의 의미는 다음과 같습니다.

      • ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 숫자입니다(예: 79293024087).
      • UPDATE_MASK는 이 요청에서 업데이트하는 필드 이름을 쉼표로 구분한 목록입니다. 필드는 FieldMask 형식을 사용하며 IntelligenceConfig 리소스의 일부입니다.

Storage Intelligence 사용 중지

콘솔

  1. Google Cloud 콘솔에서 Storage Intelligence 구성 페이지로 이동합니다.

    구성으로 이동

  2. 페이지 상단의 프로젝트 선택 도구를 선택합니다.

  3. 리소스 선택 대화상자에서 Storage Intelligence를 사용 중지할 리소스를 선택합니다.

  4. 개요 섹션에서 상태 필드 옆에 있는 사용 설정됨을 클릭합니다.

  5. 표시되는 대화상자에서 사용 중지를 입력한 다음 사용 중지를 클릭합니다.

명령줄

  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. 리소스의 Storage Intelligence 구성을 사용 중지하려면 gcloud alpha storage intelligence-configs disable 명령어를 다음 플래그 중 하나와 함께 사용합니다.

    • --project: 프로젝트의 Storage Intelligence 구성을 사용 중지합니다. 값은 프로젝트 ID입니다. 예를 들면 my-project입니다.

    • --sub-folder: 폴더의 Storage Intelligence 구성을 사용 중지합니다. 값은 폴더 ID입니다. 예를 들면 1234567890입니다.

    • --organization: 조직의 Storage Intelligence 구성을 사용 중지합니다. 값은 조직 ID입니다. 예를 들면 9876546738입니다.

      예를 들어 다음 명령어는 my-project라는 프로젝트의 Storage Intelligence 구성을 사용 중지합니다.

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

      여기서 PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).

  3. REST API

    JSON API

    1. Authorization 헤더에 대한 액세스 토큰을 생성하려면 gcloud CLI가 설치 및 초기화되어 있어야 합니다.

    2. 리소스에 대한 Storage Intelligence를 사용 중지하는 방법은 다음 섹션에 자세히 설명되어 있습니다.

      프로젝트의 Storage Intelligence 사용 중지

      cURL을 사용하여 프로젝트의 Storage Intelligence를 업데이트하는 요청과 함께 JSON API를 호출합니다.

      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"

      여기서
      PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 영숫자입니다(예: my-project).

      폴더의 Storage Intelligence 사용 중지

      cURL을 사용하여 폴더의 Storage Intelligence 업데이트 요청으로 JSON API를 호출합니다.

      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"
      

      여기서:
      FOLDER_ID는 Google Cloud 폴더 ID입니다. 폴더 ID는 숫자입니다(예: 123456789012).

      조직의 Storage Intelligence 사용 중지

      cURL을 사용하여 조직의 Storage Intelligence를 사용 중지하는 요청으로 JSON API를 호출합니다.

      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"

      여기서:
      ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 숫자입니다(예: 79293024087).

다음 단계