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
OPTIONAL FLAGS
--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 [metricsRetentionTime=90,paAuditLogsRetentionTime=400,ioAuditLogsRetentionTime=2000,operationalLogsRetentionTime=90])
--name string Name for the organization to create. (default "org-1")
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["The `gdcloud organizations config create` command is used to generate a YAML file for an Organization custom resource."],["You can customize the Organization's configuration, including log retention policies and KMS root key type."],["The `--name` flag allows you to specify the name of the organization, defaulting to \"org-1\" if not specified."],["Labels can be applied using the `--labels` flag, with keys starting with 'lcm.private.gdc.goog/' to be propagated."],["Common flags like `--configuration`, `--format`, and `--help` are available across all `gdcloud` commands."]]],[]]