Halaman ini menjelaskan cara mengaktifkan dan mengelola Management Hub.
Mengaktifkan Management Hub
Command line
-
In the Google Cloud console, 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.
Aktifkan Management Hub untuk project, folder, atau organisasi dengan perintah
gcloud alpha storage management-hub enable
. Bagian berikut menjelaskan cara menggunakan perintah ini untuk setiap jenis resource.Mengaktifkan Management Hub untuk project
gcloud alpha storage management-hub enable --project=PROJECT_ID
Dengan keterangan:
PROJECT_ID
adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya,my-project
.Mengaktifkan Hub Pengelolaan untuk folder
gcloud alpha storage management-hub enable --sub-folder=FOLDER_ID
Dengan keterangan:
FOLDER_ID
adalah Google Cloud ID folder. ID folder berupa angka, misalnya,123456789012
.Mengaktifkan Hub Pengelolaan untuk organisasi
gcloud alpha storage management-hub enable --organization=ORGANIZATION_ID
Dengan keterangan:
ORGANIZATION_ID
adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya,123456789012
.Untuk menerapkan filter bucket berbasis nama, gunakan flag berikut:
--exclude-bucket-ids
: Daftar ID bucket yang akan dikecualikan dari paket Management Hub.--exclude-bucket-regexes
: Daftar ekspresi reguler ID bucket yang akan dikecualikan dari paket Management Hub.--include-bucket-ids
: Daftar ID bucket yang akan disertakan dalam paket Management Hub.--include-bucket-regexes
: Daftar ekspresi reguler ID bucket yang akan disertakan dalam paket Management Hub.
Contoh:
$gcloud alpha storage management-hub enable --organization=my-org --exclude-bucket-ids="my-bucket" --exclude-bucket-regexes="my-bucket-.*"
Untuk menerapkan filter bucket berbasis lokasi, gunakan flag berikut:
--exclude-locations
: Daftar lokasi yang akan dikecualikan dari paket Management Hub.--include-locations
: Daftar lokasi yang akan disertakan dalam paket Management Hub.
Contoh:
$gcloud alpha storage management-hub enable --sub-folder=123456 --include-locations="us-east1","us-west1"
Melihat konfigurasi Hub Pengelolaan
Bagian ini menjelaskan cara melihat konfigurasi Management Hub untuk resource.
Command line
-
In the Google Cloud console, 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.
Lihat konfigurasi Management Hub untuk project, folder, atau organisasi dengan perintah
gcloud alpha storage management-hub describe
. Bagian berikut menjelaskan cara menggunakan perintah ini untuk setiap jenis resource.Melihat konfigurasi Management Hub untuk project
gcloud alpha storage management-hub describe --project=PROJECT_ID
Dengan keterangan:
PROJECT_ID
adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya,my-project
.Melihat konfigurasi Management Hub untuk folder
gcloud alpha storage management-hub view --sub-folder=FOLDER_ID
Dengan keterangan:
FOLDER_ID
adalah Google Cloud ID folder. ID folder berupa angka, misalnya,123456789012
.Melihat konfigurasi Management Hub untuk organisasi
gcloud alpha storage management-hub describe --organization=ORGANIZATION_ID
Dengan keterangan:
ORGANIZATION_ID
adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya,123456789012
.
Memperbarui konfigurasi Hub Pengelolaan
Bagian ini menjelaskan cara memperbarui konfigurasi Management Hub untuk resource.
Command line
-
In the Google Cloud console, 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.
Perbarui konfigurasi Management Hub untuk project, folder, atau organisasi dengan perintah
gcloud alpha storage management-hub update
. Bagian berikut menjelaskan cara menggunakan perintah ini untuk setiap jenis resource.Memperbarui konfigurasi Management Hub untuk project
gcloud alpha storage management-hub update --project=PROJECT_ID
Dengan keterangan:
PROJECT_ID
adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya,my-project
.Memperbarui konfigurasi Management Hub untuk folder
Di lingkungan pengembangan Anda, jalankan perintah berikut:
gcloud alpha storage management-hub update --sub-folder=FOLDER_ID
Dengan keterangan:
FOLDER_ID
adalah Google Cloud ID folder. ID folder berupa angka, misalnya,123456789012
.Memperbarui konfigurasi Management Hub untuk organisasi
gcloud alpha storage management-hub update --organization=ORGANIZATION_ID
Dengan keterangan:
ORGANIZATION_ID
adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya,123456789012
.Untuk informasi tentang cara menerapkan filter bucket, lihat Menerapkan filter bucket.
Menonaktifkan Management Hub
Bagian ini menjelaskan cara menonaktifkan Management Hub.
Command line
-
In the Google Cloud console, 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.
Nonaktifkan Management Hub untuk project, folder, atau organisasi dengan perintah
gcloud alpha storage management-hub disable
. Bagian berikut menjelaskan cara menggunakan perintah ini untuk setiap jenis resource.gcloud alpha storage management-hub disable --project=PROJECT_ID
Dengan keterangan:
PROJECT_ID
adalah Google Cloud project ID. Project ID berupa alfanumerik, misalnya,my-project
.Menonaktifkan Hub Pengelolaan untuk folder
gcloud alpha storage management-hub disable --sub-folder=FOLDER_ID
Dengan keterangan:
FOLDER_ID
adalah Google Cloud ID folder. ID folder berupa angka, misalnya,123456789012
.Menonaktifkan Hub Pengelolaan untuk organisasi
gcloud alpha storage management-hub disable --organization=ORGANIZATION_ID
Dengan keterangan:
ORGANIZATION_ID
adalah Google Cloud ID organisasi. ID organisasi berupa angka, misalnya,123456789012
.
Langkah berikutnya
- Pelajari cara Memindahkan bucket.