Searches organization resources that are visible to the user and satisfy
the specified filter. This method returns organizations in an
unspecified order. New organizations do not necessarily appear at the
end of the results, and may take a small amount of time to appear.
Search will only return organizations on which the user has the
permission resourcemanager.organizations.get
Arguments
Parameters | |
---|---|
pageSize |
Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. |
pageToken |
Optional. A pagination token returned from a previous call to |
query |
Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. |
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of SearchOrganizationsResponse
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- search: call: googleapis.cloudresourcemanager.v3.organizations.search args: pageSize: ... pageToken: ... query: ... result: searchResult
JSON
[ { "search": { "call": "googleapis.cloudresourcemanager.v3.organizations.search", "args": { "pageSize": "...", "pageToken": "...", "query": "..." }, "result": "searchResult" } } ]