名稱
gdcloud harbor backup-repositories create - 建立新的 Harbor 備份存放區。
概要
gdcloud harbor backup-repositories create REPOSITORY_NAME [flags]
範例
To create a harbor backup repository, run:
gdcloud harbor backup-repositories create example-repository \
--project=example-project \
--secret-name=example-secret \
--secret-namespace=example-secret-namespace \
--bucket-endpoint=http://example-endpoint.com \
--bucket-region=example-region \
--bucket-name=example-bucket
必要標記
--bucket-endpoint string Endpoint of the S3 bucket.
--bucket-name string Name of the S3 bucket.
--bucket-region string Region of the S3 bucket.
--secret-name string Name of the secret that contains the credentials for the Harbor instance backup repository.
--secret-namespace string Namespace of the secret that contains the credentials for the Harbor instance backup repository.
選用旗標
--async Returns immediately without waiting for the operation to complete.
--description string Description of the Harbor instance backup repository.
GDCLOUD 廣泛旗標
所有指令都可使用這些旗標:--configuration、--format、--help、--project、--quiet。
詳情請參閱 gdcloud CLI 參考資料總覽頁面。