관리 허브 사용 설정 및 관리

이 페이지에서는 관리 허브를 사용 설정하고 관리하는 방법을 설명합니다.

관리 허브 사용 설정

명령줄

  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. gcloud alpha storage management-hub enable 명령어를 사용하여 프로젝트, 폴더 또는 조직에 Management Hub를 사용 설정합니다. 다음 섹션에서는 각 리소스 유형에 이 명령어를 사용하는 방법을 설명합니다.

    프로젝트에 관리 허브 사용 설정

    gcloud alpha storage management-hub enable --project=PROJECT_ID

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

    PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 my-project와 같은 영숫자입니다.

    폴더에 관리 허브 사용 설정

    gcloud alpha storage management-hub enable --sub-folder=FOLDER_ID

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

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

    조직에 관리 허브 사용 설정

    gcloud alpha storage management-hub enable --organization=ORGANIZATION_ID

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

    ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 123456789012와 같은 숫자입니다.

    이름 기반 버킷 필터를 적용하려면 다음 플래그를 사용하세요.

    • --exclude-bucket-ids: 관리 허브 계획에서 제외할 버킷 ID 목록입니다.
    • --exclude-bucket-regexes: 관리 허브 계획에서 제외할 버킷 ID 정규식 목록입니다.
    • --include-bucket-ids: 관리 허브 계획에 포함할 버킷 ID 목록입니다.
    • --include-bucket-regexes: 관리 허브 계획에 포함할 버킷 ID 정규식 목록입니다.

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

    $gcloud alpha storage management-hub enable --organization=my-org --exclude-bucket-ids="my-bucket" --exclude-bucket-regexes="my-bucket-.*"

    위치 기반 버킷 필터를 적용하려면 다음 플래그를 사용하세요.

    • --exclude-locations: 관리 허브 계획에서 제외할 위치 목록입니다.
    • --include-locations: 관리 허브 계획에 포함할 위치 목록입니다.

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

    $gcloud alpha storage management-hub enable --sub-folder=123456 --include-locations="us-east1","us-west1"

관리 허브 구성 보기

이 섹션에서는 리소스의 관리 허브 구성을 확인하는 방법을 설명합니다.

명령줄

  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. gcloud alpha storage management-hub describe 명령어를 사용하여 프로젝트, 폴더 또는 조직의 관리 허브 구성을 확인합니다. 다음 섹션에서는 각 리소스 유형에 이 명령어를 사용하는 방법을 설명합니다.

    프로젝트의 Management Hub 구성 보기

    gcloud alpha storage management-hub describe --project=PROJECT_ID

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

    PROJECT_ID는 Google Cloud 프로젝트 ID입니다. 프로젝트 ID는 my-project와 같은 영숫자입니다.

    폴더의 관리 허브 구성 보기

    gcloud alpha storage management-hub view --sub-folder=FOLDER_ID

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

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

    조직의 관리 허브 구성 보기

    gcloud alpha storage management-hub describe --organization=ORGANIZATION_ID

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

    ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 123456789012와 같은 숫자입니다.

관리 허브 구성 업데이트

이 섹션에서는 리소스의 관리 허브 구성을 업데이트하는 방법을 설명합니다.

명령줄

  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. gcloud alpha storage management-hub update 명령어를 사용하여 프로젝트, 폴더 또는 조직의 관리 허브 구성을 업데이트합니다. 다음 섹션에서는 각 리소스 유형에 이 명령어를 사용하는 방법을 설명합니다.

    프로젝트의 관리 허브 구성 업데이트

    gcloud alpha storage management-hub update --project=PROJECT_ID

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

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

    폴더의 관리 허브 구성 업데이트

    개발 환경에서 다음 명령어를 실행하세요.

    gcloud alpha storage management-hub update --sub-folder=FOLDER_ID

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

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

    조직의 관리 허브 구성 업데이트

    gcloud alpha storage management-hub update --organization=ORGANIZATION_ID

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

    ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 123456789012와 같은 숫자입니다.

    버킷 필터를 적용하는 방법에 대한 자세한 내용은 버킷 필터 적용을 참고하세요.

관리 허브 사용 중지

이 섹션에서는 관리 허브를 사용 중지하는 방법을 설명합니다.

명령줄

  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. gcloud alpha storage management-hub disable 명령어를 사용하여 프로젝트, 폴더 또는 조직의 관리 허브를 사용 중지합니다. 다음 섹션에서는 각 리소스 유형에 이 명령어를 사용하는 방법을 설명합니다.

    gcloud alpha storage management-hub disable --project=PROJECT_ID

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

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

    폴더의 관리 허브 사용 중지

    gcloud alpha storage management-hub disable --sub-folder=FOLDER_ID

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

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

    조직의 관리 허브 사용 중지

    gcloud alpha storage management-hub disable --organization=ORGANIZATION_ID

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

    ORGANIZATION_ID는 Google Cloud 조직 ID입니다. 조직 ID는 123456789012와 같은 숫자입니다.

다음 단계