1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 02:25:19 +00:00

gcloud: Wed Jan 31 10:36:17 UTC 2024

This commit is contained in:
Automated 2024-01-31 10:36:17 +00:00
parent 7a546ffea4
commit fa6c1dc7ec
142 changed files with 1981 additions and 793 deletions

View file

@ -39,6 +39,9 @@ GROUPS
posture-deployments
Manage Cloud Security Command Center (SCC) posture deployments.
posture-operations
Manage Cloud Security Command Center (SCC) posture operations.
posture-templates
Manage Cloud Security Command Center (SCC) posture templates.

View file

@ -20,15 +20,18 @@ DESCRIPTION
EXAMPLES
Create a posture deployment named posture-deployment-foo-1 within parent
organizations/123/locations/global(i.e. a posture-deployment in
organization 123, location global, with id posture-deployment-foo-1, which
deploys posture organizations/123/locations/foo-posture with revision-id
foo-posture-revision-id):
organizations/123/locations/global on resource folders/456 (i.e. a
posture-deployment in organization 123, location global, with id
posture-deployment-foo-1, which deploys posture
organizations/123/locations/foo-posture with revision-id
foo-posture-revision-id on folders/456):
$ gcloud scc posture-deployments create \
organizations/123/locations/global posture-deployment-foo-1 \
--posture-name=organizations/123/locations/global/foo-posture \
--posture-revision-id=foo-posture-revision-id
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
@ -68,7 +71,7 @@ POSITIONAL ARGUMENTS
REQUIRED FLAGS
--posture-name=POSTURE_NAME
Posture that needs to be deployed. Format:
organizations/<organizationID>/locations/global/postures/<postureID>
organizations/<organizationID>/locations/<location>/postures/<postureID>
--posture-revision-id=POSTURE_REVISION_ID
Posture revision that needs to be deployed.

View file

@ -13,7 +13,7 @@ DESCRIPTION
EXAMPLES
To list Cloud Security Command Center posture deployments for organization
123, run:
123 in the global location, run:
$ gcloud scc posture-deployments list \
organizations/123/locations/global

View file

@ -16,9 +16,11 @@ DESCRIPTION
Fields specified in update-mask flag are updated. Updatable fields are
description and posture_name with posture_revision-id. The target_resource
for a posture deployment cannot be updated. The posture deployment to be
updated should be in ACTIVE State. If posture details of posture deployment
need to be updated, then the desired posture needs to be in ACTIVE state.
LRO operation ID is returned as the response of the command.
updated should be in ACTIVE State. An empty or "" update-mask implies that
posture-id and posture-revision-id are to be updated. If posture details of
posture deployment need to be updated, then the desired posture needs to be
in ACTIVE state. LRO operation ID is returned as the response of the
command.
EXAMPLES
Update the description of the posture deployment named
@ -36,6 +38,12 @@ EXAMPLES
--update-mask=posture_id,posture_revision-id \
--posture-id=foo-posture --posture-revision-id=abcdefgh
Update posture deployment named `foo-posture-deployment` with the posture named `foo-posture` and revision_id `abcdefgh` in the organization `organizations/123/locations/global`:
$ gcloud scc posture-deployments update \
organizations/123/locations/global/postureDeployments/\
foo-posture-deployment --posture-id=foo-posture \
--posture-revision-id=abcdefgh
POSITIONAL ARGUMENTS
Posture deployment resource - The posture deployment to update. For
example

View file

@ -0,0 +1,43 @@
NAME
gcloud scc posture-operations describe - describe a Cloud Security Command
Center posture long running operation
SYNOPSIS
gcloud scc posture-operations describe OPERATION_NAME
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Describe a Cloud Security Command Center (SCC) posture long running
operation.
EXAMPLES
To return long running operation status for operation
(operation-1694515698847-605272e4bcd7c-f93dade6-067467ae) of parent
organizations/123/locations/global, run:
$ gcloud scc posture-operations describe \
organizations/123/locations/global/operations/\
operation-1694515698847-605272e4bcd7c-f93dade6-067467ae
POSITIONAL ARGUMENTS
OPERATION_NAME
Relative resource name of the operation, of the format:
organizations/<organizationID>/locations/<location>/operations/<operationID>.
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-operations describe

View file

@ -0,0 +1,27 @@
NAME
gcloud scc posture-operations - manage Cloud Security Command Center
posture operations
SYNOPSIS
gcloud scc posture-operations COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Manage Cloud Security Command Center (SCC) posture operations.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMANDS
COMMAND is one of the following:
describe
Describe a Cloud Security Command Center (SCC) posture long running
operation.
NOTES
This variant is also available:
$ gcloud alpha scc posture-operations

View file

@ -30,7 +30,7 @@ EXAMPLES
secure_by_default --revision-id=v1.0.0
POSITIONAL ARGUMENTS
Posture template resource - The posture template to describe. For example
Posture template resource - Posture template to be described. For example
organizations/<organizationID>/locations/<location>/postureTemplates/<postureTemplateID>.
The arguments in this group can be used to specify the attributes of this
resource.
@ -65,7 +65,7 @@ POSITIONAL ARGUMENTS
FLAGS
--revision-id=REVISION_ID
ID of the specific posture template revision to describe. If not
ID of the specific posture template revision to be described. If not
specified, latest revision is described.
GCLOUD WIDE FLAGS

View file

@ -7,10 +7,10 @@ SYNOPSIS
--posture-from-file=POSTURE_FROM_FILE [--async] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Create a Cloud Security Command Center (SCC) posture. First argument is the
parent of the posture to be created. Second argument is the name of the
posture to be created. The posture details are provided in YAML file. The
file path is mentioned in posture-from-file flag.
Create a Cloud Security Command Center (SCC) posture. First argument
consists of the parent and name of the posture to be created. The posture
details are provided in YAML file. The file path is mentioned in
--posture-from-file flag.
Created posture is returned as the response of the command. LRO operation
ID is printed as the standard output.
@ -18,10 +18,11 @@ DESCRIPTION
EXAMPLES
Create a posture named posture-foo-1 within parent
organizations/123/locations/global(i.e. a posture in organization 123,
location global, with id posture-foo-1):
location global, with ID posture-foo-1):
$ gcloud scc postures create organizations/123/locations/global \
posture-foo-1 --posture-from-file=posture.yaml
$ gcloud scc postures create \
organizations/123/locations/global/postures/posture-foo-1 \
--posture-from-file=posture.yaml
POSITIONAL ARGUMENTS
Posture resource - The name of the posture to be created. For example

View file

@ -9,7 +9,7 @@ SYNOPSIS
DESCRIPTION
Delete a Cloud Security Command Center (SCC) posture.
Posture with all it's revisions is deleted. Deletion won't be allowed in
Posture with all its revisions is deleted. Deletion won't be allowed in
case any of the versions of the posture is deployed on a workload. ETAG can
be provided as an optional flag.
@ -31,7 +31,7 @@ EXAMPLES
--etag=ABcdO1Rf5clu7Yhlkwgelo7Vl4tiqd7Sy5iI5SdkSVU
POSITIONAL ARGUMENTS
Posture resource - The posture to delete. For example
Posture resource - The name of the posture to be deleted. For example
organizations/<organizationID>/locations/<location>/postures/<postureID>.
The arguments in this group can be used to specify the attributes of this
resource.

View file

@ -29,7 +29,7 @@ EXAMPLES
--revision-id=abcdefg
POSITIONAL ARGUMENTS
Posture resource - The posture to describe. For example
Posture resource - The posture to be described. For example
organizations/<organizationID>/locations/<location>/postures/<postureID>.
The arguments in this group can be used to specify the attributes of this
resource.
@ -63,7 +63,7 @@ POSITIONAL ARGUMENTS
FLAGS
--revision-id=REVISION_ID
ID of the specific posture revision to describe. If not specified,
ID of the specific posture revision to described. If not specified,
latest revision is described.
GCLOUD WIDE FLAGS

View file

@ -9,9 +9,9 @@ SYNOPSIS
DESCRIPTION
Extract a Cloud Security Command Center (SCC) posture from a workload.
First argument is the parent of the posture to be created. Second argument
is the name of the posture to be created. The workload from where the
organization policies need to be extracted is provided via 'workload' flag.
First argument is the parent and name of the posture to be created. The
workload from where the organization policies need to be extracted is
provided via '--workload' flag.
Extracted posture is returned as the response of the command. LRO operation
ID is printed as the standard output.
@ -21,8 +21,9 @@ EXAMPLES
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 \
posture-foo-1 --workload=projects/456
$ gcloud scc postures extract \
organizations/123/locations/global/postures/posture-foo-1 \
--workload=projects/456
POSITIONAL ARGUMENTS
Posture resource - The name of the posture to be created. For example

View file

@ -72,7 +72,7 @@ EXAMPLES
POSITIONAL ARGUMENTS
Posture resource - Arguments and flags that specify the Posture instance
to update. The arguments in this group can be used to specify the
to be updated. The arguments in this group can be used to specify the
attributes of this resource.
This must be specified.