Class IamPoliciesResource.SearchAllRequest
Searches all the IAM policies within a given accessible Resource Manager scope
(project/folder/organization). This RPC gives callers especially administrators the ability to search all
the IAM policies within a scope, even if they don't have .getIamPolicy
permission of all the IAM policies.
Callers should have cloudasset.assets.searchAllIamPolicies
permission on the requested scope, otherwise
the request will be rejected.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudAsset.v1p1beta1
Assembly: Google.Apis.CloudAsset.v1p1beta1.dll
Syntax
public class IamPoliciesResource.SearchAllRequest : CloudAssetBaseServiceRequest<SearchAllIamPoliciesResponse>, IClientServiceRequest<SearchAllIamPoliciesResponse>, IClientServiceRequest
Constructors
SearchAllRequest(IClientService, string)
Constructs a new SearchAll request.
Declaration
public SearchAllRequest(IClientService service, string scope)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | scope |
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 page size for search result pagination. Page size is capped at 500 even if a larger value
is given. If set to zero, server will pick an appropriate default. Returned results may be fewer than
requested. When this happens, there could be more results as long as next_page_token
is returned.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
Optional. If present, retrieve the next batch of results from the preceding call to this method.
page_token
must be the value of next_page_token
from the previous response. The values of all other
method parameters must be identical to those in the previous call.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Query
Optional. The query statement. Examples: * "policy:myuser@mydomain.com" * "policy:(myuser@mydomain.com viewer)"
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
Scope
Required. The relative name of an asset. The search is limited to the resources within the scope
. The
allowed value must be: * Organization number (such as "organizations/123") * Folder number (such as
"folders/1234") * Project number (such as "projects/12345") * Project ID (such as "projects/abc")
Declaration
[RequestParameter("scope", RequestParameterType.Path)]
public virtual string Scope { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes SearchAll parameter list.
Declaration
protected override void InitParameters()