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-08-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egdcloud organizations config create\u003c/code\u003e command is used to generate a YAML file for an Organization custom resource.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize the Organization's configuration, including log retention policies and KMS root key type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--name\u003c/code\u003e flag allows you to specify the name of the organization, defaulting to "org-1" if not specified.\u003c/p\u003e\n"],["\u003cp\u003eLabels can be applied using the \u003ccode\u003e--labels\u003c/code\u003e flag, with keys starting with 'lcm.private.gdc.goog/' to be propagated.\u003c/p\u003e\n"],["\u003cp\u003eCommon flags like \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, and \u003ccode\u003e--help\u003c/code\u003e are available across all \u003ccode\u003egdcloud\u003c/code\u003e commands.\u003c/p\u003e\n"]]],[],null,["# gdcloud organizations config create\n\nNAME\n----\n\ngdcloud organizations config create - Create an Organization custom resource YAML file.\n\nSYNOPSIS\n--------\n\n gdcloud organizations config create [flags]\n\n### EXAMPLES\n\n To create an Organization YAML file with various fields preset, run:\n\n gdcloud organizations config create --name org-1 \\\n --log-retention-policy \\\n paAuditLogsRetentionTime=400,\\\n ioAuditLogsRetentionTime=2000,\\\n operationalLogsRetentionTime=90,\\\n metricsRetentionTime=90 \\\n --kms-root-key-type ctm-root\n\n### OPTIONAL FLAGS\n\n --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\")\n --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 [])\n --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])\n --name string Name for the organization to create. (default \"org-1\")\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]