1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. endpoints
  5. getServiceConsumersIamPolicy
Google Cloud v8.27.1 published on Friday, Apr 25, 2025 by Pulumi

gcp.endpoints.getServiceConsumersIamPolicy

Explore with Pulumi AI

Google Cloud v8.27.1 published on Friday, Apr 25, 2025 by Pulumi

Retrieves the current IAM policy data for serviceconsumers

Using getServiceConsumersIamPolicy

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 getServiceConsumersIamPolicy(args: GetServiceConsumersIamPolicyArgs, opts?: InvokeOptions): Promise<GetServiceConsumersIamPolicyResult>
function getServiceConsumersIamPolicyOutput(args: GetServiceConsumersIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetServiceConsumersIamPolicyResult>
Copy
def get_service_consumers_iam_policy(consumer_project: Optional[str] = None,
                                     service_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetServiceConsumersIamPolicyResult
def get_service_consumers_iam_policy_output(consumer_project: Optional[pulumi.Input[str]] = None,
                                     service_name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetServiceConsumersIamPolicyResult]
Copy
func GetServiceConsumersIamPolicy(ctx *Context, args *GetServiceConsumersIamPolicyArgs, opts ...InvokeOption) (*GetServiceConsumersIamPolicyResult, error)
func GetServiceConsumersIamPolicyOutput(ctx *Context, args *GetServiceConsumersIamPolicyOutputArgs, opts ...InvokeOption) GetServiceConsumersIamPolicyResultOutput
Copy

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

public static class GetServiceConsumersIamPolicy 
{
    public static Task<GetServiceConsumersIamPolicyResult> InvokeAsync(GetServiceConsumersIamPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceConsumersIamPolicyResult> Invoke(GetServiceConsumersIamPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServiceConsumersIamPolicyResult> getServiceConsumersIamPolicy(GetServiceConsumersIamPolicyArgs args, InvokeOptions options)
public static Output<GetServiceConsumersIamPolicyResult> getServiceConsumersIamPolicy(GetServiceConsumersIamPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ConsumerProject
This property is required.
Changes to this property will trigger replacement.
string
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
ConsumerProject
This property is required.
Changes to this property will trigger replacement.
string
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
consumerProject
This property is required.
Changes to this property will trigger replacement.
String
serviceName
This property is required.
Changes to this property will trigger replacement.
String
consumerProject
This property is required.
Changes to this property will trigger replacement.
string
serviceName
This property is required.
Changes to this property will trigger replacement.
string
consumer_project
This property is required.
Changes to this property will trigger replacement.
str
service_name
This property is required.
Changes to this property will trigger replacement.
str
consumerProject
This property is required.
Changes to this property will trigger replacement.
String
serviceName
This property is required.
Changes to this property will trigger replacement.
String

getServiceConsumersIamPolicy Result

The following output properties are available:

ConsumerProject 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.endpoints.ConsumersIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
ServiceName string
ConsumerProject 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.endpoints.ConsumersIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
ServiceName string
consumerProject 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.endpoints.ConsumersIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
serviceName String
consumerProject 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.endpoints.ConsumersIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
serviceName string
consumer_project 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.endpoints.ConsumersIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
service_name str
consumerProject 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.endpoints.ConsumersIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
serviceName 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.
Google Cloud v8.27.1 published on Friday, Apr 25, 2025 by Pulumi