gcloud scc posture-deployments create

NAME
gcloud scc posture-deployments create - create a Cloud Security Command Center posture deployment
SYNOPSIS
gcloud scc posture-deployments create(POSTURE_DEPLOYMENT :--location=LOCATION--organization=ORGANIZATION)--posture-name=POSTURE_NAME--posture-revision-id=POSTURE_REVISION_ID--target-resource=TARGET_RESOURCE[--async][--description=DESCRIPTION][GCLOUD_WIDE_FLAG]
DESCRIPTION
Create a Cloud Security Command Center (SCC) posture deployment. First argumentis the parent of the posture deployment to be created. Second argument is thename of the posture deployment to be created. It is followed by details of theposture to be deployed and the target_resource to be deployed on.

LRO operation ID is returned as the response of the command.

EXAMPLES
Create a posture deployment namedposture-deployment-foo-1 withinparentorganizations/123/locations/global on resourcefolders/456 (i.e. a posture-deployment in organization123, locationglobal, with idposture-deployment-foo-1, which deploys postureorganizations/123/locations/foo-posture with revision-idfoo-posture-revision-id onfolders/456):
gcloudsccposture-deploymentscreateorganizations/123/locations/global/postureDeployments/posture-deployment-foo-1--posture-name=organizations/123/locations/global/foo-posture--posture-revision-id=foo-posture-revision-id--target-resource=projects/456
POSITIONAL ARGUMENTS
Posture deployment resource - The name of the posture deployment to be created.For exampleorganizations/<organizationID>/locations/<location>/postureDeployments/<postureDeploymentID>.The arguments in this group can be used to specify the attributes of thisresource.

This must be specified.

POSTURE_DEPLOYMENT
ID of the posture_deployment or fully qualified identifier for theposture_deployment.

To set theposture_deployment attribute:

  • provide the argumentposture_deployment on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--location=LOCATION
ID of the location where the resource exists (for example, global).To set thelocation attribute:
  • provide the argumentposture_deployment on the command line with afully specified name;
  • provide the argument--location on the command line.
--organization=ORGANIZATION
ID of the organization which is the parent of the resource.To set theorganization attribute:
  • provide the argumentposture_deployment on the command line with afully specified name;
  • provide the argument--organization on the command line.
REQUIRED FLAGS
--posture-name=POSTURE_NAME
Posture that needs to be deployed. Format:organizations/<organizationID>/locations/<location>/postures/<postureID>
--posture-revision-id=POSTURE_REVISION_ID
Posture revision that needs to be deployed.
--target-resource=TARGET_RESOURCE
Name of the workload on which posture deployment is to be created. It could bean organization, folder or a project. Possible formats: |organizations/<organizationID> | folders/<folderID> |projects/<projectID> The above mentioned IDs need to have numeric format.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION
User-provided description of the posture deployment.
GCLOUD WIDE FLAGS
These flags are available to all commands:--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.

API REFERENCE
This command uses thesecurityposture/v1 API. The fulldocumentation for this API can be found at:https://cloud.google.com/security-command-center
NOTES
This variant is also available:
gcloudalphasccposture-deploymentscreate

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.