getWorkloadIdentityPool

Get a IAM workload identity pool from Google Cloud by its id.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Gcp.Iam.GetWorkloadIdentityPool.InvokeAsync(new Gcp.Iam.GetWorkloadIdentityPoolArgs
        {
            WorkloadIdentityPoolId = "foo-pool",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iam.LookupWorkloadIdentityPool(ctx, &iam.LookupWorkloadIdentityPoolArgs{
			WorkloadIdentityPoolId: "foo-pool",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_gcp as gcp

foo = gcp.iam.get_workload_identity_pool(workload_identity_pool_id="foo-pool")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const foo = pulumi.output(gcp.iam.getWorkloadIdentityPool({
    workloadIdentityPoolId: "foo-pool",
}, { async: true }));

Using getWorkloadIdentityPool

function getWorkloadIdentityPool(args: GetWorkloadIdentityPoolArgs, opts?: InvokeOptions): Promise<GetWorkloadIdentityPoolResult>
def get_workload_identity_pool(project: Optional[str] = None,
                               workload_identity_pool_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetWorkloadIdentityPoolResult
func LookupWorkloadIdentityPool(ctx *Context, args *LookupWorkloadIdentityPoolArgs, opts ...InvokeOption) (*LookupWorkloadIdentityPoolResult, error)

Note: This function is named LookupWorkloadIdentityPool in the Go SDK.

public static class GetWorkloadIdentityPool {
    public static Task<GetWorkloadIdentityPoolResult> InvokeAsync(GetWorkloadIdentityPoolArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

WorkloadIdentityPoolId string
The id of the pool which is the final component of the resource name.
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
WorkloadIdentityPoolId string
The id of the pool which is the final component of the resource name.
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
workloadIdentityPoolId string
The id of the pool which is the final component of the resource name.
project string
The project in which the resource belongs. If it is not provided, the provider project is used.
workload_identity_pool_id str
The id of the pool which is the final component of the resource name.
project str
The project in which the resource belongs. If it is not provided, the provider project is used.

getWorkloadIdentityPool Result

The following output properties are available:

Description string
Disabled bool
DisplayName string
Id string
The provider-assigned unique ID for this managed resource.
Name string
State string
WorkloadIdentityPoolId string
Project string
Description string
Disabled bool
DisplayName string
Id string
The provider-assigned unique ID for this managed resource.
Name string
State string
WorkloadIdentityPoolId string
Project string
description string
disabled boolean
displayName string
id string
The provider-assigned unique ID for this managed resource.
name string
state string
workloadIdentityPoolId string
project string
description str
disabled bool
display_name str
id str
The provider-assigned unique ID for this managed resource.
name str
state str
workload_identity_pool_id str
project str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.