1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apigateway
  5. getGatewayIamPolicy
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

gcp.apigateway.getGatewayIamPolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Using getGatewayIamPolicy

    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 getGatewayIamPolicy(args: GetGatewayIamPolicyArgs, opts?: InvokeOptions): Promise<GetGatewayIamPolicyResult>
    function getGatewayIamPolicyOutput(args: GetGatewayIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetGatewayIamPolicyResult>
    def get_gateway_iam_policy(gateway: Optional[str] = None,
                               project: Optional[str] = None,
                               region: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetGatewayIamPolicyResult
    def get_gateway_iam_policy_output(gateway: Optional[pulumi.Input[str]] = None,
                               project: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetGatewayIamPolicyResult]
    func LookupGatewayIamPolicy(ctx *Context, args *LookupGatewayIamPolicyArgs, opts ...InvokeOption) (*LookupGatewayIamPolicyResult, error)
    func LookupGatewayIamPolicyOutput(ctx *Context, args *LookupGatewayIamPolicyOutputArgs, opts ...InvokeOption) LookupGatewayIamPolicyResultOutput

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

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

    The following arguments are supported:

    Gateway 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.
    Region string
    The region of the gateway for the API. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.
    Gateway 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.
    Region string
    The region of the gateway for the API. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.
    gateway 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.
    region String
    The region of the gateway for the API. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.
    gateway 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.
    region string
    The region of the gateway for the API. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.
    gateway 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.
    region str
    The region of the gateway for the API. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.
    gateway 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.
    region String
    The region of the gateway for the API. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.

    getGatewayIamPolicy Result

    The following output properties are available:

    Etag string
    (Computed) The etag of the IAM policy.
    Gateway string
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyData string
    (Required only by gcp.apigateway.GatewayIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    Project string
    Region string
    Etag string
    (Computed) The etag of the IAM policy.
    Gateway string
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyData string
    (Required only by gcp.apigateway.GatewayIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    Project string
    Region string
    etag String
    (Computed) The etag of the IAM policy.
    gateway String
    id String
    The provider-assigned unique ID for this managed resource.
    policyData String
    (Required only by gcp.apigateway.GatewayIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project String
    region String
    etag string
    (Computed) The etag of the IAM policy.
    gateway string
    id string
    The provider-assigned unique ID for this managed resource.
    policyData string
    (Required only by gcp.apigateway.GatewayIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project string
    region string
    etag str
    (Computed) The etag of the IAM policy.
    gateway str
    id str
    The provider-assigned unique ID for this managed resource.
    policy_data str
    (Required only by gcp.apigateway.GatewayIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project str
    region str
    etag String
    (Computed) The etag of the IAM policy.
    gateway String
    id String
    The provider-assigned unique ID for this managed resource.
    policyData String
    (Required only by gcp.apigateway.GatewayIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project String
    region 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.20.0 published on Wednesday, Apr 24, 2024 by Pulumi