Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class SearchOrganizationsRequest.
The request sent to the SearchOrganizations method.
Generated from protobuf message google.cloud.resourcemanager.v3.SearchOrganizationsRequest
Namespace
Google \ Cloud \ ResourceManager \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ page_size
int
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.
↳ page_token
string
Optional. A pagination token returned from a previous call to SearchOrganizations that indicates from where listing should continue.
↳ query
string
Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. | Field | Description | |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | Organizations may be queried by directoryCustomerId or by domain, where the domain is a G Suite domain, for example: * * Query directorycustomerid:123456789 returns Organization resources with owner.directory_customer_id equal to 123456789. * * Query domain:google.com returns Organization resources corresponding to the domain google.com.
getPageSize
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.
Returns
Type
Description
int
setPageSize
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.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Optional. A pagination token returned from a previous call to
SearchOrganizations that indicates from where listing should continue.
Returns
Type
Description
string
setPageToken
Optional. A pagination token returned from a previous call to
SearchOrganizations that indicates from where listing should continue.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getQuery
Optional. An optional query string used to filter the Organizations to
return in the response. Query rules are case-insensitive.
| Field | Description |
|------------------|--------------------------------------------|
| directoryCustomerId, owner.directoryCustomerId | Filters by directory
customer id. |
| domain | Filters by domain. |
Organizations may be queried by directoryCustomerId or by
domain, where the domain is a G Suite domain, for example:
Query directorycustomerid:123456789 returns Organization
resources with owner.directory_customer_id equal to 123456789.
Query domain:google.com returns Organization resources corresponding
to the domain google.com.
Returns
Type
Description
string
setQuery
Optional. An optional query string used to filter the Organizations to
return in the response. Query rules are case-insensitive.
| Field | Description |
|------------------|--------------------------------------------|
| directoryCustomerId, owner.directoryCustomerId | Filters by directory
customer id. |
| domain | Filters by domain. |
Organizations may be queried by directoryCustomerId or by
domain, where the domain is a G Suite domain, for example:
Query directorycustomerid:123456789 returns Organization
resources with owner.directory_customer_id equal to 123456789.
Query domain:google.com returns Organization resources corresponding
to the domain google.com.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
query
string
Optional. An optional query string used to filter the Organizations to
return in the response. Query rules are case-insensitive.
| Field | Description |
|------------------|--------------------------------------------|
| directoryCustomerId, owner.directoryCustomerId | Filters by directory
customer id. |
| domain | Filters by domain. |
Organizations may be queried by directoryCustomerId or by
domain, where the domain is a G Suite domain, for example:
Query directorycustomerid:123456789 returns Organization
resources with owner.directory_customer_id equal to 123456789.
Query domain:google.com returns Organization resources corresponding
to the domain google.com.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Resource Manager V3 Client - Class SearchOrganizationsRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-resource-manager/latest/V3.SearchOrganizationsRequest)\n- [1.0.3](/php/docs/reference/cloud-resource-manager/1.0.3/V3.SearchOrganizationsRequest)\n- [0.8.5](/php/docs/reference/cloud-resource-manager/0.8.5/V3.SearchOrganizationsRequest)\n- [0.7.2](/php/docs/reference/cloud-resource-manager/0.7.2/V3.SearchOrganizationsRequest)\n- [0.6.1](/php/docs/reference/cloud-resource-manager/0.6.1/V3.SearchOrganizationsRequest)\n- [0.5.0](/php/docs/reference/cloud-resource-manager/0.5.0/V3.SearchOrganizationsRequest)\n- [0.4.1](/php/docs/reference/cloud-resource-manager/0.4.1/V3.SearchOrganizationsRequest)\n- [0.3.9](/php/docs/reference/cloud-resource-manager/0.3.9/V3.SearchOrganizationsRequest) \nReference documentation and code samples for the Google Cloud Resource Manager V3 Client class SearchOrganizationsRequest.\n\nThe request sent to the `SearchOrganizations` method.\n\nGenerated from protobuf message `google.cloud.resourcemanager.v3.SearchOrganizationsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ResourceManager \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPageSize\n\nOptional. The maximum number of organizations to return in the response.\n\nThe server can return fewer organizations than requested. If unspecified,\nserver picks an appropriate default.\n\n### setPageSize\n\nOptional. The maximum number of organizations to return in the response.\n\nThe server can return fewer organizations than requested. If unspecified,\nserver picks an appropriate default.\n\n### getPageToken\n\nOptional. A pagination token returned from a previous call to\n`SearchOrganizations` that indicates from where listing should continue.\n\n### setPageToken\n\nOptional. A pagination token returned from a previous call to\n`SearchOrganizations` that indicates from where listing should continue.\n\n### getQuery\n\nOptional. An optional query string used to filter the Organizations to\nreturn in the response. Query rules are case-insensitive. \n\n | Field | Description |\n |------------------|--------------------------------------------|\n | directoryCustomerId, owner.directoryCustomerId | Filters by directory\n customer id. |\n | domain | Filters by domain. |\n\nOrganizations may be queried by `directoryCustomerId` or by\n`domain`, where the domain is a G Suite domain, for example:\n\n- Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`.\n- Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`.\n\n### setQuery\n\nOptional. An optional query string used to filter the Organizations to\nreturn in the response. Query rules are case-insensitive. \n\n | Field | Description |\n |------------------|--------------------------------------------|\n | directoryCustomerId, owner.directoryCustomerId | Filters by directory\n customer id. |\n | domain | Filters by domain. |\n\nOrganizations may be queried by `directoryCustomerId` or by\n`domain`, where the domain is a G Suite domain, for example:\n\n- Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`.\n- Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`.\n\n### static::build"]]