Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.cloudasset/v1.getSavedQuery
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets details about a saved query.
Using getSavedQuery
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSavedQuery(args: GetSavedQueryArgs, opts?: InvokeOptions): Promise<GetSavedQueryResult>
function getSavedQueryOutput(args: GetSavedQueryOutputArgs, opts?: InvokeOptions): Output<GetSavedQueryResult>
def get_saved_query(saved_query_id: Optional[str] = None,
v1_id: Optional[str] = None,
v1_id1: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSavedQueryResult
def get_saved_query_output(saved_query_id: Optional[pulumi.Input[str]] = None,
v1_id: Optional[pulumi.Input[str]] = None,
v1_id1: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSavedQueryResult]
func LookupSavedQuery(ctx *Context, args *LookupSavedQueryArgs, opts ...InvokeOption) (*LookupSavedQueryResult, error)
func LookupSavedQueryOutput(ctx *Context, args *LookupSavedQueryOutputArgs, opts ...InvokeOption) LookupSavedQueryResultOutput
> Note: This function is named LookupSavedQuery
in the Go SDK.
public static class GetSavedQuery
{
public static Task<GetSavedQueryResult> InvokeAsync(GetSavedQueryArgs args, InvokeOptions? opts = null)
public static Output<GetSavedQueryResult> Invoke(GetSavedQueryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSavedQueryResult> getSavedQuery(GetSavedQueryArgs args, InvokeOptions options)
public static Output<GetSavedQueryResult> getSavedQuery(GetSavedQueryArgs args, InvokeOptions options)
fn::invoke:
function: google-native:cloudasset/v1:getSavedQuery
arguments:
# arguments dictionary
The following arguments are supported:
- Saved
Query Id This property is required. string - V1Id
This property is required. string - V1Id1
This property is required. string
- Saved
Query Id This property is required. string - V1Id
This property is required. string - V1Id1
This property is required. string
- saved
Query Id This property is required. String - v1Id
This property is required. String - v1Id1
This property is required. String
- saved
Query Id This property is required. string - v1Id
This property is required. string - v1Id1
This property is required. string
- saved_
query_ id This property is required. str - v1_
id This property is required. str - v1_
id1 This property is required. str
- saved
Query Id This property is required. String - v1Id
This property is required. String - v1Id1
This property is required. String
getSavedQuery Result
The following output properties are available:
- Content
Pulumi.
Google Native. Cloud Asset. V1. Outputs. Query Content Response - The query content.
- Create
Time string - The create time of this saved query.
- Creator string
- The account's email address who has created this saved query.
- Description string
- The description of this saved query. This value should be fewer than 255 characters.
- Labels Dictionary<string, string>
- Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
- Last
Update stringTime - The last update time of this saved query.
- Last
Updater string - The account's email address who has updated this saved query most recently.
- Name string
- The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
- Content
Query
Content Response - The query content.
- Create
Time string - The create time of this saved query.
- Creator string
- The account's email address who has created this saved query.
- Description string
- The description of this saved query. This value should be fewer than 255 characters.
- Labels map[string]string
- Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
- Last
Update stringTime - The last update time of this saved query.
- Last
Updater string - The account's email address who has updated this saved query most recently.
- Name string
- The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
- content
Query
Content Response - The query content.
- create
Time String - The create time of this saved query.
- creator String
- The account's email address who has created this saved query.
- description String
- The description of this saved query. This value should be fewer than 255 characters.
- labels Map<String,String>
- Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
- last
Update StringTime - The last update time of this saved query.
- last
Updater String - The account's email address who has updated this saved query most recently.
- name String
- The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
- content
Query
Content Response - The query content.
- create
Time string - The create time of this saved query.
- creator string
- The account's email address who has created this saved query.
- description string
- The description of this saved query. This value should be fewer than 255 characters.
- labels {[key: string]: string}
- Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
- last
Update stringTime - The last update time of this saved query.
- last
Updater string - The account's email address who has updated this saved query most recently.
- name string
- The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
- content
Query
Content Response - The query content.
- create_
time str - The create time of this saved query.
- creator str
- The account's email address who has created this saved query.
- description str
- The description of this saved query. This value should be fewer than 255 characters.
- labels Mapping[str, str]
- Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
- last_
update_ strtime - The last update time of this saved query.
- last_
updater str - The account's email address who has updated this saved query most recently.
- name str
- The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
- content Property Map
- The query content.
- create
Time String - The create time of this saved query.
- creator String
- The account's email address who has created this saved query.
- description String
- The description of this saved query. This value should be fewer than 255 characters.
- labels Map<String>
- Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
- last
Update StringTime - The last update time of this saved query.
- last
Updater String - The account's email address who has updated this saved query most recently.
- name String
- The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
Supporting Types
AccessSelectorResponse
- Permissions
This property is required. List<string> - Optional. The permissions to appear in result.
- Roles
This property is required. List<string> - Optional. The roles to appear in result.
- Permissions
This property is required. []string - Optional. The permissions to appear in result.
- Roles
This property is required. []string - Optional. The roles to appear in result.
- permissions
This property is required. List<String> - Optional. The permissions to appear in result.
- roles
This property is required. List<String> - Optional. The roles to appear in result.
- permissions
This property is required. string[] - Optional. The permissions to appear in result.
- roles
This property is required. string[] - Optional. The roles to appear in result.
- permissions
This property is required. Sequence[str] - Optional. The permissions to appear in result.
- roles
This property is required. Sequence[str] - Optional. The roles to appear in result.
- permissions
This property is required. List<String> - Optional. The permissions to appear in result.
- roles
This property is required. List<String> - Optional. The roles to appear in result.
ConditionContextResponse
- Access
Time This property is required. string - The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
- Access
Time This property is required. string - The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
- access
Time This property is required. String - The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
- access
Time This property is required. string - The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
- access_
time This property is required. str - The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
- access
Time This property is required. String - The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned.
IamPolicyAnalysisQueryResponse
- Access
Selector This property is required. Pulumi.Google Native. Cloud Asset. V1. Inputs. Access Selector Response - Optional. Specifies roles or permissions for analysis. This is optional.
- Condition
Context This property is required. Pulumi.Google Native. Cloud Asset. V1. Inputs. Condition Context Response - Optional. The hypothetical context for IAM conditions evaluation.
- Identity
Selector This property is required. Pulumi.Google Native. Cloud Asset. V1. Inputs. Identity Selector Response - Optional. Specifies an identity for analysis.
- Options
This property is required. Pulumi.Google Native. Cloud Asset. V1. Inputs. Options Response - Optional. The query options.
- Resource
Selector This property is required. Pulumi.Google Native. Cloud Asset. V1. Inputs. Resource Selector Response - Optional. Specifies a resource for analysis.
- Scope
This property is required. string - The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .
- Access
Selector This property is required. AccessSelector Response - Optional. Specifies roles or permissions for analysis. This is optional.
- Condition
Context This property is required. ConditionContext Response - Optional. The hypothetical context for IAM conditions evaluation.
- Identity
Selector This property is required. IdentitySelector Response - Optional. Specifies an identity for analysis.
- Options
This property is required. OptionsResponse - Optional. The query options.
- Resource
Selector This property is required. ResourceSelector Response - Optional. Specifies a resource for analysis.
- Scope
This property is required. string - The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .
- access
Selector This property is required. AccessSelector Response - Optional. Specifies roles or permissions for analysis. This is optional.
- condition
Context This property is required. ConditionContext Response - Optional. The hypothetical context for IAM conditions evaluation.
- identity
Selector This property is required. IdentitySelector Response - Optional. Specifies an identity for analysis.
- options
This property is required. OptionsResponse - Optional. The query options.
- resource
Selector This property is required. ResourceSelector Response - Optional. Specifies a resource for analysis.
- scope
This property is required. String - The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .
- access
Selector This property is required. AccessSelector Response - Optional. Specifies roles or permissions for analysis. This is optional.
- condition
Context This property is required. ConditionContext Response - Optional. The hypothetical context for IAM conditions evaluation.
- identity
Selector This property is required. IdentitySelector Response - Optional. Specifies an identity for analysis.
- options
This property is required. OptionsResponse - Optional. The query options.
- resource
Selector This property is required. ResourceSelector Response - Optional. Specifies a resource for analysis.
- scope
This property is required. string - The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .
- access_
selector This property is required. AccessSelector Response - Optional. Specifies roles or permissions for analysis. This is optional.
- condition_
context This property is required. ConditionContext Response - Optional. The hypothetical context for IAM conditions evaluation.
- identity_
selector This property is required. IdentitySelector Response - Optional. Specifies an identity for analysis.
- options
This property is required. OptionsResponse - Optional. The query options.
- resource_
selector This property is required. ResourceSelector Response - Optional. Specifies a resource for analysis.
- scope
This property is required. str - The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .
- access
Selector This property is required. Property Map - Optional. Specifies roles or permissions for analysis. This is optional.
- condition
Context This property is required. Property Map - Optional. The hypothetical context for IAM conditions evaluation.
- identity
Selector This property is required. Property Map - Optional. Specifies an identity for analysis.
- options
This property is required. Property Map - Optional. The query options.
- resource
Selector This property is required. Property Map - Optional. Specifies a resource for analysis.
- scope
This property is required. String - The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .
IdentitySelectorResponse
- Identity
This property is required. string - The identity appear in the form of principals in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.
- Identity
This property is required. string - The identity appear in the form of principals in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.
- identity
This property is required. String - The identity appear in the form of principals in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.
- identity
This property is required. string - The identity appear in the form of principals in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.
- identity
This property is required. str - The identity appear in the form of principals in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.
- identity
This property is required. String - The identity appear in the form of principals in IAM policy binding. The examples of supported forms are: "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com". Notice that wildcard characters (such as * and ?) are not supported. You must give a specific identity.
OptionsResponse
- Analyze
Service Account Impersonation This property is required. bool - Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: *
iam.serviceAccounts.actAs
*iam.serviceAccounts.signBlob
*iam.serviceAccounts.signJwt
*iam.serviceAccounts.getAccessToken
*iam.serviceAccounts.getOpenIdToken
*iam.serviceAccounts.implicitDelegation
Default is false. - Expand
Groups This property is required. bool - Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
- Expand
Resources This property is required. bool - Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
- Expand
Roles This property is required. bool - Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
- Output
Group Edges This property is required. bool - Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
- Output
Resource Edges This property is required. bool - Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
- Analyze
Service Account Impersonation This property is required. bool - Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: *
iam.serviceAccounts.actAs
*iam.serviceAccounts.signBlob
*iam.serviceAccounts.signJwt
*iam.serviceAccounts.getAccessToken
*iam.serviceAccounts.getOpenIdToken
*iam.serviceAccounts.implicitDelegation
Default is false. - Expand
Groups This property is required. bool - Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
- Expand
Resources This property is required. bool - Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
- Expand
Roles This property is required. bool - Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
- Output
Group Edges This property is required. bool - Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
- Output
Resource Edges This property is required. bool - Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
- analyze
Service Account Impersonation This property is required. Boolean - Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: *
iam.serviceAccounts.actAs
*iam.serviceAccounts.signBlob
*iam.serviceAccounts.signJwt
*iam.serviceAccounts.getAccessToken
*iam.serviceAccounts.getOpenIdToken
*iam.serviceAccounts.implicitDelegation
Default is false. - expand
Groups This property is required. Boolean - Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
- expand
Resources This property is required. Boolean - Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
- expand
Roles This property is required. Boolean - Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
- output
Group Edges This property is required. Boolean - Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
- output
Resource Edges This property is required. Boolean - Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
- analyze
Service Account Impersonation This property is required. boolean - Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: *
iam.serviceAccounts.actAs
*iam.serviceAccounts.signBlob
*iam.serviceAccounts.signJwt
*iam.serviceAccounts.getAccessToken
*iam.serviceAccounts.getOpenIdToken
*iam.serviceAccounts.implicitDelegation
Default is false. - expand
Groups This property is required. boolean - Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
- expand
Resources This property is required. boolean - Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
- expand
Roles This property is required. boolean - Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
- output
Group Edges This property is required. boolean - Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
- output
Resource Edges This property is required. boolean - Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
- analyze_
service_ account_ impersonation This property is required. bool - Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: *
iam.serviceAccounts.actAs
*iam.serviceAccounts.signBlob
*iam.serviceAccounts.signJwt
*iam.serviceAccounts.getAccessToken
*iam.serviceAccounts.getOpenIdToken
*iam.serviceAccounts.implicitDelegation
Default is false. - expand_
groups This property is required. bool - Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
- expand_
resources This property is required. bool - Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
- expand_
roles This property is required. bool - Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
- output_
group_ edges This property is required. bool - Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
- output_
resource_ edges This property is required. bool - Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
- analyze
Service Account Impersonation This property is required. Boolean - Optional. If true, the response will include access analysis from identities to resources via service account impersonation. This is a very expensive operation, because many derived queries will be executed. We highly recommend you use AssetService.AnalyzeIamPolicyLongrunning RPC instead. For example, if the request analyzes for which resources user A has permission P, and there's an IAM policy states user A has iam.serviceAccounts.getAccessToken permission to a service account SA, and there's another IAM policy states service account SA has permission P to a Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Another example, if the request analyzes for who has permission P to a Google Cloud folder F, and there's an IAM policy states user A has iam.serviceAccounts.actAs permission to a service account SA, and there's another IAM policy states service account SA has permission P to the Google Cloud folder F, then user A potentially has access to the Google Cloud folder F. And those advanced analysis results will be included in AnalyzeIamPolicyResponse.service_account_impersonation_analysis. Only the following permissions are considered in this analysis: *
iam.serviceAccounts.actAs
*iam.serviceAccounts.signBlob
*iam.serviceAccounts.signJwt
*iam.serviceAccounts.getAccessToken
*iam.serviceAccounts.getOpenIdToken
*iam.serviceAccounts.implicitDelegation
Default is false. - expand
Groups This property is required. Boolean - Optional. If true, the identities section of the result will expand any Google groups appearing in an IAM policy binding. If IamPolicyAnalysisQuery.identity_selector is specified, the identity in the result will be determined by the selector, and this flag is not allowed to set. If true, the default max expansion per group is 1000 for AssetService.AnalyzeIamPolicy][]. Default is false.
- expand
Resources This property is required. Boolean - Optional. If true and IamPolicyAnalysisQuery.resource_selector is not specified, the resource section of the result will expand any resource attached to an IAM policy to include resources lower in the resource hierarchy. For example, if the request analyzes for which resources user A has permission P, and the results include an IAM policy with P on a Google Cloud folder, the results will also include resources in that folder with permission P. If true and IamPolicyAnalysisQuery.resource_selector is specified, the resource section of the result will expand the specified resource to include resources lower in the resource hierarchy. Only project or lower resources are supported. Folder and organization resources cannot be used together with this option. For example, if the request analyzes for which users have permission P on a Google Cloud project with this option enabled, the results will include all users who have permission P on that project or any lower resource. If true, the default max expansion per resource is 1000 for AssetService.AnalyzeIamPolicy][] and 100000 for AssetService.AnalyzeIamPolicyLongrunning][]. Default is false.
- expand
Roles This property is required. Boolean - Optional. If true, the access section of result will expand any roles appearing in IAM policy bindings to include their permissions. If IamPolicyAnalysisQuery.access_selector is specified, the access section of the result will be determined by the selector, and this flag is not allowed to set. Default is false.
- output
Group Edges This property is required. Boolean - Optional. If true, the result will output the relevant membership relationships between groups and other groups, and between groups and principals. Default is false.
- output
Resource Edges This property is required. Boolean - Optional. If true, the result will output the relevant parent/child relationships between resources. Default is false.
QueryContentResponse
- Iam
Policy Analysis Query This property is required. Pulumi.Google Native. Cloud Asset. V1. Inputs. Iam Policy Analysis Query Response - An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
- Iam
Policy Analysis Query This property is required. IamPolicy Analysis Query Response - An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
- iam
Policy Analysis Query This property is required. IamPolicy Analysis Query Response - An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
- iam
Policy Analysis Query This property is required. IamPolicy Analysis Query Response - An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
- iam_
policy_ analysis_ query This property is required. IamPolicy Analysis Query Response - An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
- iam
Policy Analysis Query This property is required. Property Map - An IAM Policy Analysis query, which could be used in the AssetService.AnalyzeIamPolicy RPC or the AssetService.AnalyzeIamPolicyLongrunning RPC.
ResourceSelectorResponse
- Full
Resource Name This property is required. string - The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of supported resource types.
- Full
Resource Name This property is required. string - The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of supported resource types.
- full
Resource Name This property is required. String - The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of supported resource types.
- full
Resource Name This property is required. string - The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of supported resource types.
- full_
resource_ name This property is required. str - The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of supported resource types.
- full
Resource Name This property is required. String - The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format) of a resource of supported resource types.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi