gcloud scc postures extract (POSTURE : --location=LOCATION --organization=ORGANIZATION) --workload=WORKLOAD [--async] [GCLOUD_WIDE_FLAG …]
posture-foo-1 within parent
organizations/123/locations/global(i.e. a posture in organization
123, location global, with id
posture-foo-1) from workload projects/456:
gcloud scc postures extract organizations/123/locations/global/postures/posture-foo-1 --workload=projects/456POSTURE
To set the posture attribute:
posture on the command line.
--location=LOCATIONlocation attribute:
posture on the command line with a fully
specified name;
--location on the command line.
--organization=ORGANIZATIONorganization attribute:
posture on the command line with a fully
specified name;
--organization on the command line.
--workload=WORKLOADprojects/projectNumber,
folders/folderNumber,
organizations/organizationNumber.
--async--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
securityposture/v1 API. The full
documentation for this API can be found at: https://cloud.google.com/security-command-center
gcloud alpha scc postures extract
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.