1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. agentregistry
  6. getEndpoint
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi

    Get information about an Agent Registry Endpoint.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = gcp.agentregistry.getEndpoint({
        location: "us-central1",
        endpointId: "apphub-00000000-0000-0000-0000-000000000000",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.agentregistry.get_endpoint(location="us-central1",
        endpoint_id="apphub-00000000-0000-0000-0000-000000000000")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/agentregistry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := agentregistry.GetEndpoint(ctx, &agentregistry.GetEndpointArgs{
    			Location:   "us-central1",
    			EndpointId: pulumi.StringRef("apphub-00000000-0000-0000-0000-000000000000"),
    		}, 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.AgentRegistry.GetEndpoint.Invoke(new()
        {
            Location = "us-central1",
            EndpointId = "apphub-00000000-0000-0000-0000-000000000000",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.agentregistry.AgentregistryFunctions;
    import com.pulumi.gcp.agentregistry.inputs.GetEndpointArgs;
    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 = AgentregistryFunctions.getEndpoint(GetEndpointArgs.builder()
                .location("us-central1")
                .endpointId("apphub-00000000-0000-0000-0000-000000000000")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: gcp:agentregistry:getEndpoint
          arguments:
            location: us-central1
            endpointId: apphub-00000000-0000-0000-0000-000000000000
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    data "gcp_agentregistry_getendpoint" "default" {
      location    = "us-central1"
      endpoint_id = "apphub-00000000-0000-0000-0000-000000000000"
    }
    

    Using getEndpoint

    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 getEndpoint(args: GetEndpointArgs, opts?: InvokeOptions): Promise<GetEndpointResult>
    function getEndpointOutput(args: GetEndpointOutputArgs, opts?: InvokeOptions): Output<GetEndpointResult>
    def get_endpoint(endpoint_id: Optional[str] = None,
                     filter: Optional[str] = None,
                     location: Optional[str] = None,
                     project: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetEndpointResult
    def get_endpoint_output(endpoint_id: pulumi.Input[Optional[str]] = None,
                     filter: pulumi.Input[Optional[str]] = None,
                     location: pulumi.Input[Optional[str]] = None,
                     project: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetEndpointResult]
    func GetEndpoint(ctx *Context, args *GetEndpointArgs, opts ...InvokeOption) (*GetEndpointResult, error)
    func GetEndpointOutput(ctx *Context, args *GetEndpointOutputArgs, opts ...InvokeOption) GetEndpointResultOutput

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

    public static class GetEndpoint 
    {
        public static Task<GetEndpointResult> InvokeAsync(GetEndpointArgs args, InvokeOptions? opts = null)
        public static Output<GetEndpointResult> Invoke(GetEndpointInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEndpointResult> getEndpoint(GetEndpointArgs args, InvokeOptions options)
    public static Output<GetEndpointResult> getEndpoint(GetEndpointArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:agentregistry/getEndpoint:getEndpoint
      arguments:
        # arguments dictionary
    data "gcp_agentregistry_get_endpoint" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    The location of the resource.


    EndpointId string
    The unique identifier for the Endpoint. This or filter must be set.
    Filter string
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    Project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    The location of the resource.


    EndpointId string
    The unique identifier for the Endpoint. This or filter must be set.
    Filter string
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    Project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The location of the resource.


    endpoint_id string
    The unique identifier for the Endpoint. This or filter must be set.
    filter string
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The location of the resource.


    endpointId String
    The unique identifier for the Endpoint. This or filter must be set.
    filter String
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    project String
    The project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The location of the resource.


    endpointId string
    The unique identifier for the Endpoint. This or filter must be set.
    filter string
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    project string
    The project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    The location of the resource.


    endpoint_id str
    The unique identifier for the Endpoint. This or filter must be set.
    filter str
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    project str
    The project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The location of the resource.


    endpointId String
    The unique identifier for the Endpoint. This or filter must be set.
    filter String
    A filter string that identifies a unique Endpoint. This or endpointId must be set.
    project String
    The project in which the resource belongs. If it is not provided, the provider project is used.

    getEndpoint Result

    The following output properties are available:

    Attributes Dictionary<string, string>
    Attributes of the Endpoint.
    CreateTime string
    Create time.
    Description string
    The description of the Endpoint.
    DisplayName string
    The display name of the Endpoint.
    EndpointId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Interfaces List<GetEndpointInterface>
    The connection details for the Endpoint.
    Location string
    Project string
    UpdateTime string
    Update time.
    Urn string
    The URN of the Endpoint.
    Filter string
    Attributes map[string]string
    Attributes of the Endpoint.
    CreateTime string
    Create time.
    Description string
    The description of the Endpoint.
    DisplayName string
    The display name of the Endpoint.
    EndpointId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Interfaces []GetEndpointInterface
    The connection details for the Endpoint.
    Location string
    Project string
    UpdateTime string
    Update time.
    Urn string
    The URN of the Endpoint.
    Filter string
    attributes map(string)
    Attributes of the Endpoint.
    create_time string
    Create time.
    description string
    The description of the Endpoint.
    display_name string
    The display name of the Endpoint.
    endpoint_id string
    id string
    The provider-assigned unique ID for this managed resource.
    interfaces list(object)
    The connection details for the Endpoint.
    location string
    project string
    update_time string
    Update time.
    urn string
    The URN of the Endpoint.
    filter string
    attributes Map<String,String>
    Attributes of the Endpoint.
    createTime String
    Create time.
    description String
    The description of the Endpoint.
    displayName String
    The display name of the Endpoint.
    endpointId String
    id String
    The provider-assigned unique ID for this managed resource.
    interfaces List<GetEndpointInterface>
    The connection details for the Endpoint.
    location String
    project String
    updateTime String
    Update time.
    urn String
    The URN of the Endpoint.
    filter String
    attributes {[key: string]: string}
    Attributes of the Endpoint.
    createTime string
    Create time.
    description string
    The description of the Endpoint.
    displayName string
    The display name of the Endpoint.
    endpointId string
    id string
    The provider-assigned unique ID for this managed resource.
    interfaces GetEndpointInterface[]
    The connection details for the Endpoint.
    location string
    project string
    updateTime string
    Update time.
    urn string
    The URN of the Endpoint.
    filter string
    attributes Mapping[str, str]
    Attributes of the Endpoint.
    create_time str
    Create time.
    description str
    The description of the Endpoint.
    display_name str
    The display name of the Endpoint.
    endpoint_id str
    id str
    The provider-assigned unique ID for this managed resource.
    interfaces Sequence[GetEndpointInterface]
    The connection details for the Endpoint.
    location str
    project str
    update_time str
    Update time.
    urn str
    The URN of the Endpoint.
    filter str
    attributes Map<String>
    Attributes of the Endpoint.
    createTime String
    Create time.
    description String
    The description of the Endpoint.
    displayName String
    The display name of the Endpoint.
    endpointId String
    id String
    The provider-assigned unique ID for this managed resource.
    interfaces List<Property Map>
    The connection details for the Endpoint.
    location String
    project String
    updateTime String
    Update time.
    urn String
    The URN of the Endpoint.
    filter String

    Supporting Types

    GetEndpointInterface

    ProtocolBinding string
    The protocol binding of the interface.
    Url string
    The destination URL.
    ProtocolBinding string
    The protocol binding of the interface.
    Url string
    The destination URL.
    protocol_binding string
    The protocol binding of the interface.
    url string
    The destination URL.
    protocolBinding String
    The protocol binding of the interface.
    url String
    The destination URL.
    protocolBinding string
    The protocol binding of the interface.
    url string
    The destination URL.
    protocol_binding str
    The protocol binding of the interface.
    url str
    The destination URL.
    protocolBinding String
    The protocol binding of the interface.
    url String
    The destination URL.

    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.32.1
    published on Wednesday, Jul 29, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial