mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-17 14:26:34 +00:00
gcloud: Wed Aug 3 09:18:38 UTC 2022
This commit is contained in:
parent
3513fd1c11
commit
3b2f526372
151 changed files with 4150 additions and 308 deletions
|
|
@ -57,6 +57,9 @@ COMMANDS
|
|||
remove-iam-policy-binding
|
||||
(ALPHA) Remove IAM policy binding for a project.
|
||||
|
||||
search
|
||||
(ALPHA) Search for projects matching the given query.
|
||||
|
||||
set-iam-policy
|
||||
(ALPHA) Set IAM policy for a project.
|
||||
|
||||
|
|
|
|||
63
gcloud/alpha/projects/search
Normal file
63
gcloud/alpha/projects/search
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
NAME
|
||||
gcloud alpha projects search - search for projects matching the given query
|
||||
|
||||
SYNOPSIS
|
||||
gcloud alpha projects search [--query=QUERY] [--limit=LIMIT]
|
||||
[--page-size=PAGE_SIZE] [--sort-by=[FIELD,...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(ALPHA) You can specify the maximum number of projects to list using the
|
||||
--limit flag.
|
||||
|
||||
EXAMPLES
|
||||
The following command lists the last five created projects with names
|
||||
starting with z, sorted by the project number (now called name) with 2
|
||||
projects listed on each page
|
||||
|
||||
$ gcloud alpha projects search --query="name:z*" --sort-by=name \
|
||||
--limit=5 --page-size=2
|
||||
|
||||
To list projects that have been marked for deletion:
|
||||
|
||||
$ gcloud alpha projects search --query='state:DELETE_REQUESTED'
|
||||
|
||||
FLAGS
|
||||
--query=QUERY
|
||||
A boolean expression for the search criteria used to select the
|
||||
projects to return. If no search criteria is specified then all
|
||||
accessible projects will be returned. Query expressions can be used to
|
||||
restrict results based upon displayName, state and parent, where the
|
||||
operators = (:) NOT, AND and OR can be used along with the suffix
|
||||
wildcard symbol *. The displayName field in a query expression should
|
||||
use escaped quotes for values that include whitespace to prevent
|
||||
unexpected behavior.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
This flag specifies the maximum number of projects per page.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue