1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apigateway
  5. getApiIamPolicy
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.apigateway.getApiIamPolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Using getApiIamPolicy

    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 getApiIamPolicy(args: GetApiIamPolicyArgs, opts?: InvokeOptions): Promise<GetApiIamPolicyResult>
    function getApiIamPolicyOutput(args: GetApiIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetApiIamPolicyResult>
    def get_api_iam_policy(api: Optional[str] = None,
                           project: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetApiIamPolicyResult
    def get_api_iam_policy_output(api: Optional[pulumi.Input[str]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetApiIamPolicyResult]
    func LookupApiIamPolicy(ctx *Context, args *LookupApiIamPolicyArgs, opts ...InvokeOption) (*LookupApiIamPolicyResult, error)
    func LookupApiIamPolicyOutput(ctx *Context, args *LookupApiIamPolicyOutputArgs, opts ...InvokeOption) LookupApiIamPolicyResultOutput

    > Note: This function is named LookupApiIamPolicy in the Go SDK.

    public static class GetApiIamPolicy 
    {
        public static Task<GetApiIamPolicyResult> InvokeAsync(GetApiIamPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetApiIamPolicyResult> Invoke(GetApiIamPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApiIamPolicyResult> getApiIamPolicy(GetApiIamPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:apigateway/getApiIamPolicy:getApiIamPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Api string
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
    Api string
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
    api String
    project String
    The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
    api string
    project string
    The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
    api str
    project str
    The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
    api String
    project String
    The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

    getApiIamPolicy Result

    The following output properties are available:

    Api string
    Etag string
    (Computed) The etag of the IAM policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyData string
    (Required only by gcp.apigateway.ApiIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    Project string
    Api string
    Etag string
    (Computed) The etag of the IAM policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyData string
    (Required only by gcp.apigateway.ApiIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    Project string
    api String
    etag String
    (Computed) The etag of the IAM policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyData String
    (Required only by gcp.apigateway.ApiIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project String
    api string
    etag string
    (Computed) The etag of the IAM policy.
    id string
    The provider-assigned unique ID for this managed resource.
    policyData string
    (Required only by gcp.apigateway.ApiIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project string
    api str
    etag str
    (Computed) The etag of the IAM policy.
    id str
    The provider-assigned unique ID for this managed resource.
    policy_data str
    (Required only by gcp.apigateway.ApiIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project str
    api String
    etag String
    (Computed) The etag of the IAM policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyData String
    (Required only by gcp.apigateway.ApiIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project String

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi