1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 14:56:05 +00:00

gcloud: Wed Aug 31 09:34:57 UTC 2022

This commit is contained in:
Automated 2022-08-31 09:34:57 +00:00
parent 978ed239f6
commit 6749f65ca2
Failed to extract signature
159 changed files with 2919 additions and 561 deletions

View file

@ -44,7 +44,7 @@ COMMANDS
(ALPHA) List the Cloud assets.
query
(ALPHA) Query the CloudAssets.
(ALPHA) Query the Cloud assets.
NOTES
This command is currently in alpha and might change without notice. If this

View file

@ -1,12 +1,16 @@
NAME
gcloud alpha asset query - query the CloudAssets
gcloud alpha asset query - query the Cloud assets
SYNOPSIS
gcloud alpha asset query
(--folder=FOLDER_ID | --organization=ORGANIZATION_ID
| --project=PROJECT_ID) [--job-reference=JOB_REFERENCE]
[--page-size=PAGE_SIZE] [--page-token=PAGE_TOKEN]
[--statement=STATEMENT] [--timeout=TIMEOUT] [GCLOUD_WIDE_FLAG ...]
| --project=PROJECT_ID)
(--job-reference=JOB_REFERENCE | --statement=STATEMENT)
[--page-size=PAGE_SIZE] [--page-token=PAGE_TOKEN] [--timeout=TIMEOUT]
[--snapshot-time=SNAPSHOT_TIME
| [--start-time=START_TIME : --end-time=END_TIME]]
[--write-disposition=WRITE_DISPOSITION [--bigquery-table=BIGQUERY_TABLE
: --bigquery-dataset=BIGQUERY_DATASET]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Issue an analytical query on Cloud assets using BigQuery Standard
@ -47,26 +51,97 @@ REQUIRED FLAGS
and billing. To specify a different project for quota and billing,
use --billing-project or billing/quota_project property.
OPTIONAL FLAGS
--job-reference=JOB_REFERENCE
Reference to the query job, which is from the previous call.
The query or job reference of the query request.
Exactly one of these must be specified:
--job-reference=JOB_REFERENCE
Reference to the query job, which is from the previous call.
--statement=STATEMENT
A BigQuery Standard SQL compatible statement. If the query execution
finishes within timeout and there is no pagination, the full query
results will be returned. Otherwise, pass job_reference from previous
call as --job-referrence to obtain the full results.
OPTIONAL FLAGS
--page-size=PAGE_SIZE
The maximum number of rows to return in the results. Other than that,
one page is also limited to 10 MB.
The maximum number of rows to return in the results. One page is also
limited to 10 MB.
--page-token=PAGE_TOKEN
A page token received from previous call.
--statement=STATEMENT
A BigQuery Standard SQL compatible statement. If the query
executionfinishes within timeout and there is no pagination, the full
queryresults will be returned. Otherwise, pass job_reference from
previous call as --job-referrence to obtain the full results.
--timeout=TIMEOUT
Maximum amount of time that the client is willing to wait for the query
to complete.
Maximum amount of time that the client will wait for the query to
complete.
Specifies what time period or point in time to query asset metadata at.
At most one of these can be specified:
--snapshot-time=SNAPSHOT_TIME
Timestamp to take a snapshot on assets. This can only be a current or
past time. If not specified, the current time will be used. Due to
delays in resource data collection and indexing, there is a volatile
window during which running the same query at different times may
return different results. See $ gcloud topic datetimes for
information on time formats.
Specifies what time period or point in time to query asset metadata at.
--start-time=START_TIME
Start time of the time window (inclusive) for the asset history.
Must be after the current time minus 35 days. See $ gcloud topic
datetimes for information on time formats.
This flag argument must be specified if any of the other arguments
in this group are specified.
--end-time=END_TIME
End time of the time window (exclusive) for the asset history.
Defaults to current time if not specified. See $ gcloud topic
datetimes for information on time formats.
The BigQuery destination for query system.
--write-disposition=WRITE_DISPOSITION
Specifies the action that occurs if the destination table or
partition already exists. WRITE_DISPOSITION must be one of:
write-append
AIf the table or partition already exists, BigQuery appends the
data to the table or the latest partition.
write-empty
If the table already exists and contains data, an error is
returned.
write-truncate
If the table or partition already exists, BigQuery overwrites the
entire table or all the partition's data.
Table resource - The bigquery-table for the export. The arguments in
this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be
set in other ways. To set the project attribute:
▸ provide the argument --bigquery-table on the command line with a
fully specified name;
▸ provide the argument --project on the command line;
▸ set the property core/project.
--bigquery-table=BIGQUERY_TABLE
ID of the table or fully qualified identifier for the table. To set
the table attribute:
▫ provide the argument --bigquery-table on the command line.
This flag argument must be specified if any of the other arguments
in this group are specified.
--bigquery-dataset=BIGQUERY_DATASET
The id of the BigQuery dataset. To set the bigquery-dataset
attribute:
▫ provide the argument --bigquery-table on the command line with
a fully specified name;
▫ provide the argument --bigquery-dataset on the command line.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
@ -80,5 +155,7 @@ NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist.
access allowlist. This variant is also available:
$ gcloud beta asset query