Class OrganizationsResource.SearchRequest
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 or has super admin privileges.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class OrganizationsResource.SearchRequest : CloudResourceManagerBaseServiceRequest<SearchOrganizationsResponse>, IClientServiceRequest<SearchOrganizationsResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
Optional. A pagination token returned from a previous call to SearchOrganizations that indicates from
where listing should continue.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Query
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.
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes Search parameter list.
Declaration
protected override void InitParameters()