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

gcloud: Wed Jul 12 10:20:16 UTC 2023

This commit is contained in:
Automated 2023-07-12 10:20:16 +00:00
parent f52bc665a7
commit b4c2508b12
300 changed files with 7469 additions and 3231 deletions

View file

@ -14,30 +14,31 @@ DESCRIPTION
(BETA) Create a Cloud Security Command Center finding.
EXAMPLES
Create an ACTIVE my-finding with category: XSS_SCRIPTING attached to
Create an ACTIVE myFinding with category: XSS_SCRIPTING attached to
example-project under organization 123456 and source 5678:
$ gcloud beta scc findings create my-finding --organization=123456 \
--source=5678 --state=ACTIVE --category='XSS_SCRIPTING' \
$ gcloud beta scc findings create `myFinding` \
--organization=123456 --source=5678 --state=ACTIVE \
--category='XSS_SCRIPTING' \
--event-time=2023-01-11T07:00:06.861Z \
--resource-name='//cloudresourcemanager.googleapis.com/projects/\
example-project'
Create an ACTIVE my-finding attached to example-project under project
Create an ACTIVE myFinding attached to example-project under project
example-project and source 5678:
$ gcloud beta scc findings create \
projects/example-project/sources/5678/findings/my-finding \
projects/example-project/sources/5678/findings/myFinding \
--state=ACTIVE --category='XSS_SCRIPTING' \
--event-time=2023-01-11T07:00:06.861Z \
--resource-name='//cloudresourcemanager.googleapis.com/projects/\
example-project'
Create an ACTIVE my-finding attached to example-project under folder 456
and source 5678:
Create an ACTIVE myFinding attached to example-project under folder 456 and
source 5678:
$ gcloud beta scc findings create \
folders/456/sources/5678/findings/my-finding --state=ACTIVE \
folders/456/sources/5678/findings/myFinding --state=ACTIVE \
--category='XSS_SCRIPTING' \
--event-time=2023-01-11T07:00:06.861Z \
--resource-name='//cloudresourcemanager.googleapis.com/projects/\

View file

@ -12,22 +12,22 @@ DESCRIPTION
(BETA) List a finding's security marks.
EXAMPLES
List all security marks for my-finding under organization 123456 and source
List all security marks for myFinding under organization 123456 and source
5678:
$ gcloud beta scc findings list-marks my-finding \
$ gcloud beta scc findings list-marks `myFinding` \
--organization=123456 --source=5678
List all security marks for my-finding under project example-project and
List all security marks for myFinding under project example-project and
source 5678:
$ gcloud beta scc findings list-marks \
projects/example-project/sources/5678/findings/my-finding
projects/example-project/sources/5678/findings/myFinding
List all security marks for my-finding under folder 456 and source 5678:
List all security marks for myFinding under folder 456 and source 5678:
$ gcloud beta scc findings list-marks \
folders/456/sources/5678/findings/my-finding
folders/456/sources/5678/findings/myFinding
POSITIONAL ARGUMENTS
Finding resource - The finding to be used for the SCC (Security Command

View file

@ -13,33 +13,33 @@ DESCRIPTION
(BETA) Update a Cloud Security Command Center finding.
EXAMPLES
Update my-finding's state from ACTIVE to INACTIVE:
Update myFinding's state from ACTIVE to INACTIVE:
$ gcloud beta scc findings update my-finding --organization=123456 \
--source=5678 --state=INACTIVE
$ gcloud beta scc findings update `myFinding` \
--organization=123456 --source=5678 --state=INACTIVE
Update my-finding's state from ACTIVE to INACTIVE using project name for
Update myFinding's state from ACTIVE to INACTIVE using project name for
example-project:
$ gcloud beta scc findings update \
projects/example-project/sources/5678/findings/my-finding \
projects/example-project/sources/5678/findings/myFinding \
--state=INACTIVE
Update my-finding's state from ACTIVE to INACTIVE using folder name 456:
Update myFinding's state from ACTIVE to INACTIVE using folder name 456:
$ gcloud beta scc findings update \
folders/456/sources/5678/findings/my-finding --state=INACTIVE
folders/456/sources/5678/findings/myFinding --state=INACTIVE
Override all source properties on my-finding:
Override all source properties on myFinding:
$ gcloud beta scc findings update my-finding --organization=123456 \
--source=5678 \
$ gcloud beta scc findings update `myFinding` \
--organization=123456 --source=5678 \
--source-properties="propKey1=propVal1,propKey2=propVal2"
Selectively update a specific source property on my-finding:
Selectively update a specific source property on myFinding:
$ gcloud beta scc findings update my-finding --organization=123456 \
--source=5678 \
$ gcloud beta scc findings update `myFinding` \
--organization=123456 --source=5678 \
--source-properties="propKey1=propVal1,propKey2=propVal2" \
--update-mask="source_properties.propKey1"

View file

@ -12,36 +12,36 @@ DESCRIPTION
(BETA) Update Cloud Security Command Center finding's security marks.
EXAMPLES
Selectively update security mark (Key1) with value (v1) on my-finding. Note
that other security marks on my-finding are untouched:
Selectively update security mark (Key1) with value (v1) on myFinding. Note
that other security marks on myFinding are untouched:
$ gcloud beta scc findings update-marks my-finding \
$ gcloud beta scc findings update-marks `myFinding` \
--organization=123456 --source=5678 --security-marks="key1=v1" \
--update-mask="marks.markKey1"
Update all security marks on my-finding, under project example-project and
Update all security marks on myFinding, under project example-project and
source 5678:
$ gcloud beta scc findings update-marks \
projects/example-project/sources/5678/findings/my-finding \
projects/example-project/sources/5678/findings/myFinding \
--security-marks="key1=v1,key2=v2"
Update all security marks on my-finding, under folder 456 and source 5678:
Update all security marks on myFinding, under folder 456 and source 5678:
$ gcloud beta scc findings update-marks \
folders/456/sources/5678/findings/my-finding \
folders/456/sources/5678/findings/myFinding \
--security-marks="key1=v1,key2=v2"
Update all security marks on my-finding, under organization 123456 and
Update all security marks on myFinding, under organization 123456 and
source 5678:
$ gcloud beta scc findings update-marks my-finding \
$ gcloud beta scc findings update-marks `myFinding` \
--organization=123456 --source=5678 \
--security-marks="key1=v1,key2=v2"
Delete all security marks on my-finding:
Delete all security marks on myFinding:
$ gcloud beta scc findings update-marks my-finding \
$ gcloud beta scc findings update-marks `myFinding` \
--organization=123456 --source=5678 --security-marks=""
POSITIONAL ARGUMENTS