gdcloud organizations config create

名称

gdcloud organizations config create - 创建组织自定义资源 YAML 文件。

摘要

gdcloud organizations config create [flags]

示例

To create an Organization YAML file with various fields preset, run:

  gdcloud organizations config create --name org-1 \
    --log-retention-policy \
    paAuditLogsRetentionTime=400,\
    ioAuditLogsRetentionTime=2000,\
    operationalLogsRetentionTime=90,\
    metricsRetentionTime=90 \
    --kms-root-key-type ctm-root

可选标志

      --kms-root-key-type string              The KMS root key type for an organization. This can be either 'local-root' or 'ctm-root'. (default "ctm-root")
      --labels stringToString                 Propagates labels to the admin and system clusters as a key-value pair. Key must start with 'lcm.private.gdc.goog/' to propagate. (default [])
      --log-retention-policy stringToString   Comma-separated list of log retention times for an organization in days. (default [paAuditLogsRetentionTime=400,ioAuditLogsRetentionTime=2000,operationalLogsRetentionTime=90,metricsRetentionTime=90])
      --name string                           Name for the organization to create. (default "org-1")

GDCLOUD 全局标志

以下标志适用于所有命令:--configuration--format--help--project--quiet

如需了解详情,请参阅 gdcloud CLI 参考概览页面。