gcloud alpha resource-manager folders search Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha resource-manager folders search - search folders matching the specified query
- SYNOPSIS
gcloud alpha resource-manager folders search[--query=QUERY][--limit=LIMIT][--page-size=PAGE_SIZE][--sort-by=[FIELD,…]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)You can specify the maximum number of folders to return inthe result using the--limit`flag.- EXAMPLES
- The following command lists the folders that have been marked for deletion:
gcloudalpharesource-managerfolderssearch--query='state:DELETE_REQUESTED'Folders with their displayNames starting with sun like sunflower-folder,sunburn-folder etc. can be listed using the below command
gcloudalpharesource-managerfolderssearch--query='displayName:sun*' - FLAGS
--query=QUERY- A boolean expression for the search criteria used to select the folders toreturn. If no search criteria is specified then all accessible projects will bereturned. Query expressions can be used to restrict results based upondisplayName, state and parent, where the operators
=(:)NOT,ANDandORcan beused along with the suffix wildcard symbol*. ThedisplayNamefield in a query expression should use escaped quotesfor values that include whitespace to prevent unexpected behavior.For more details and fields supported by the query expression please refer queryparameters section
[here](https://cloud.google.com/resource-manager/reference/rest/v3/folders/search#query-parameters)
- LIST COMMAND FLAGS
--limit=LIMIT- Maximum number of resources to list. The default is
unlimited. Thisflag 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 folders per page.
--sort-by=[FIELD,…]- Comma-separated list of resource field key names to sort by. The default orderis ascending. Prefix a field with ``~´´ for descending order on thatfield. 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 helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.