- 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 argument
is the parent of the posture deployment to be created. Second argument is the
name of the posture deployment to be created. It is followed by details of the
posture 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 named
posture-deployment-foo-1
within parentorganizations/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
):gcloud scc posture-deployments create organizations/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 example
organizations/<organizationID>/locations/<location>/postureDeployments/<postureDeploymentID>.
The arguments in this group can be used to specify the attributes of this
resource.
This must be specified.
POSTURE_DEPLOYMENT
-
ID of the posture_deployment or fully qualified identifier for the
posture_deployment.
To set the
posture_deployment
attribute:-
provide the argument
posture_deployment
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
ID of the location where the resource exists (for example, global).
To set the
location
attribute:-
provide the argument
posture_deployment
on the command line with a fully specified name; -
provide the argument
--location
on the command line.
-
provide the argument
--organization
=ORGANIZATION
-
ID of the organization which is the parent of the resource.
To set the
organization
attribute:-
provide the argument
posture_deployment
on the command line with a fully specified name; -
provide the argument
--organization
on the command line.
-
provide the argument
-
Posture deployment resource - The name of the posture deployment to be created.
For example
organizations/<organizationID>/locations/<location>/postureDeployments/<postureDeploymentID>.
The arguments in this group can be used to specify the attributes of this
resource.
- 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 be an 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 the
securityposture/v1
API. The full documentation for this API can be found at: https://cloud.google.com/security-command-center - NOTES
-
This variant is also available:
gcloud alpha scc posture-deployments create
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 2024-02-06 UTC.