1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. iap
  6. getClient
Viewing docs for Google Cloud v9.26.0
published on Tuesday, Jun 9, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.26.0
published on Tuesday, Jun 9, 2026 by Pulumi

    Get information about a Identity-Aware Proxy Client.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = gcp.iap.getClient({
        brand: projectClient.brand,
        clientId: projectClient.clientId,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.iap.get_client(brand=project_client["brand"],
        client_id=project_client["clientId"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/iap"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iap.LookupClient(ctx, &iap.LookupClientArgs{
    			Brand:    projectClient.Brand,
    			ClientId: projectClient.ClientId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Gcp.Iap.GetClient.Invoke(new()
        {
            Brand = projectClient.Brand,
            ClientId = projectClient.ClientId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.iap.IapFunctions;
    import com.pulumi.gcp.iap.inputs.GetClientArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var default = IapFunctions.getClient(GetClientArgs.builder()
                .brand(projectClient.brand())
                .clientId(projectClient.clientId())
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: gcp:iap:getClient
          arguments:
            brand: ${projectClient.brand}
            clientId: ${projectClient.clientId}
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    data "gcp_iap_getclient" "default" {
      brand     = projectClient.brand
      client_id = projectClient.clientId
    }
    

    Using getClient

    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 getClient(args: GetClientArgs, opts?: InvokeOptions): Promise<GetClientResult>
    function getClientOutput(args: GetClientOutputArgs, opts?: InvokeOptions): Output<GetClientResult>
    def get_client(brand: Optional[str] = None,
                   client_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetClientResult
    def get_client_output(brand: pulumi.Input[Optional[str]] = None,
                   client_id: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetClientResult]
    func LookupClient(ctx *Context, args *LookupClientArgs, opts ...InvokeOption) (*LookupClientResult, error)
    func LookupClientOutput(ctx *Context, args *LookupClientOutputArgs, opts ...InvokeOption) LookupClientResultOutput

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

    public static class GetClient 
    {
        public static Task<GetClientResult> InvokeAsync(GetClientArgs args, InvokeOptions? opts = null)
        public static Output<GetClientResult> Invoke(GetClientInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClientResult> getClient(GetClientArgs args, InvokeOptions options)
    public static Output<GetClientResult> getClient(GetClientArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:iap/getClient:getClient
      arguments:
        # arguments dictionary
    data "gcp_iap_getclient" "name" {
        # arguments
    }

    The following arguments are supported:

    Brand string
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    ClientId string
    Output only. Unique identifier of the OAuth client.
    Brand string
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    ClientId string
    Output only. Unique identifier of the OAuth client.
    brand string
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    client_id string
    Output only. Unique identifier of the OAuth client.
    brand String
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    clientId String
    Output only. Unique identifier of the OAuth client.
    brand string
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    clientId string
    Output only. Unique identifier of the OAuth client.
    brand str
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    client_id str
    Output only. Unique identifier of the OAuth client.
    brand String
    Identifier of the brand to which this client is attached to. The format is projects/{project_number}/brands/{brand_id}.
    clientId String
    Output only. Unique identifier of the OAuth client.

    getClient Result

    The following output properties are available:

    Brand string
    ClientId string
    DeletionPolicy string
    DisplayName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secret string
    Brand string
    ClientId string
    DeletionPolicy string
    DisplayName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secret string
    brand string
    client_id string
    deletion_policy string
    display_name string
    id string
    The provider-assigned unique ID for this managed resource.
    secret string
    brand String
    clientId String
    deletionPolicy String
    displayName String
    id String
    The provider-assigned unique ID for this managed resource.
    secret String
    brand string
    clientId string
    deletionPolicy string
    displayName string
    id string
    The provider-assigned unique ID for this managed resource.
    secret string
    brand str
    client_id str
    deletion_policy str
    display_name str
    id str
    The provider-assigned unique ID for this managed resource.
    secret str
    brand String
    clientId String
    deletionPolicy String
    displayName String
    id String
    The provider-assigned unique ID for this managed resource.
    secret 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
    Viewing docs for Google Cloud v9.26.0
    published on Tuesday, Jun 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial