1. Packages
  2. Openstack Provider
  3. API Docs
  4. identity
  5. getEndpoint
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

openstack.identity.getEndpoint

Explore with Pulumi AI

openstack logo
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

    Use this data source to get the ID of an OpenStack endpoint.

    Note: This usually requires admin privileges.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const endpoint1 = openstack.identity.getEndpoint({
        serviceName: "demo",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    endpoint1 = openstack.identity.get_endpoint(service_name="demo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/identity"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := identity.GetEndpoint(ctx, &identity.GetEndpointArgs{
    			ServiceName: pulumi.StringRef("demo"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var endpoint1 = OpenStack.Identity.GetEndpoint.Invoke(new()
        {
            ServiceName = "demo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.identity.IdentityFunctions;
    import com.pulumi.openstack.identity.inputs.GetEndpointArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 endpoint1 = IdentityFunctions.getEndpoint(GetEndpointArgs.builder()
                .serviceName("demo")
                .build());
    
        }
    }
    
    variables:
      endpoint1:
        fn::invoke:
          Function: openstack:identity:getEndpoint
          Arguments:
            serviceName: demo
    

    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_region: Optional[str] = None,
                     interface: Optional[str] = None,
                     name: Optional[str] = None,
                     region: Optional[str] = None,
                     service_id: Optional[str] = None,
                     service_name: Optional[str] = None,
                     service_type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetEndpointResult
    def get_endpoint_output(endpoint_region: Optional[pulumi.Input[str]] = None,
                     interface: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     region: Optional[pulumi.Input[str]] = None,
                     service_id: Optional[pulumi.Input[str]] = None,
                     service_name: Optional[pulumi.Input[str]] = None,
                     service_type: Optional[pulumi.Input[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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:identity/getEndpoint:getEndpoint
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndpointRegion string
    The region the endpoint is assigned to. The region and endpoint_region can be different.
    Interface string
    The endpoint interface. Valid values are public, internal, and admin. Default value is public
    Name string
    The name of the endpoint.
    Region string
    The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.
    ServiceId string
    The service id this endpoint belongs to.
    ServiceName string
    The service name of the endpoint.
    ServiceType string
    The service type of the endpoint.
    EndpointRegion string
    The region the endpoint is assigned to. The region and endpoint_region can be different.
    Interface string
    The endpoint interface. Valid values are public, internal, and admin. Default value is public
    Name string
    The name of the endpoint.
    Region string
    The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.
    ServiceId string
    The service id this endpoint belongs to.
    ServiceName string
    The service name of the endpoint.
    ServiceType string
    The service type of the endpoint.
    endpointRegion String
    The region the endpoint is assigned to. The region and endpoint_region can be different.
    interface_ String
    The endpoint interface. Valid values are public, internal, and admin. Default value is public
    name String
    The name of the endpoint.
    region String
    The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.
    serviceId String
    The service id this endpoint belongs to.
    serviceName String
    The service name of the endpoint.
    serviceType String
    The service type of the endpoint.
    endpointRegion string
    The region the endpoint is assigned to. The region and endpoint_region can be different.
    interface string
    The endpoint interface. Valid values are public, internal, and admin. Default value is public
    name string
    The name of the endpoint.
    region string
    The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.
    serviceId string
    The service id this endpoint belongs to.
    serviceName string
    The service name of the endpoint.
    serviceType string
    The service type of the endpoint.
    endpoint_region str
    The region the endpoint is assigned to. The region and endpoint_region can be different.
    interface str
    The endpoint interface. Valid values are public, internal, and admin. Default value is public
    name str
    The name of the endpoint.
    region str
    The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.
    service_id str
    The service id this endpoint belongs to.
    service_name str
    The service name of the endpoint.
    service_type str
    The service type of the endpoint.
    endpointRegion String
    The region the endpoint is assigned to. The region and endpoint_region can be different.
    interface String
    The endpoint interface. Valid values are public, internal, and admin. Default value is public
    name String
    The name of the endpoint.
    region String
    The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used.
    serviceId String
    The service id this endpoint belongs to.
    serviceName String
    The service name of the endpoint.
    serviceType String
    The service type of the endpoint.

    getEndpoint Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    See Argument Reference above.
    Url string
    The endpoint URL.
    EndpointRegion string
    See Argument Reference above.
    Interface string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    ServiceId string
    See Argument Reference above.
    ServiceName string
    See Argument Reference above.
    ServiceType string
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    See Argument Reference above.
    Url string
    The endpoint URL.
    EndpointRegion string
    See Argument Reference above.
    Interface string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    ServiceId string
    See Argument Reference above.
    ServiceName string
    See Argument Reference above.
    ServiceType string
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    See Argument Reference above.
    url String
    The endpoint URL.
    endpointRegion String
    See Argument Reference above.
    interface_ String
    See Argument Reference above.
    name String
    See Argument Reference above.
    serviceId String
    See Argument Reference above.
    serviceName String
    See Argument Reference above.
    serviceType String
    See Argument Reference above.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    See Argument Reference above.
    url string
    The endpoint URL.
    endpointRegion string
    See Argument Reference above.
    interface string
    See Argument Reference above.
    name string
    See Argument Reference above.
    serviceId string
    See Argument Reference above.
    serviceName string
    See Argument Reference above.
    serviceType string
    See Argument Reference above.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    See Argument Reference above.
    url str
    The endpoint URL.
    endpoint_region str
    See Argument Reference above.
    interface str
    See Argument Reference above.
    name str
    See Argument Reference above.
    service_id str
    See Argument Reference above.
    service_name str
    See Argument Reference above.
    service_type str
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    See Argument Reference above.
    url String
    The endpoint URL.
    endpointRegion String
    See Argument Reference above.
    interface String
    See Argument Reference above.
    name String
    See Argument Reference above.
    serviceId String
    See Argument Reference above.
    serviceName String
    See Argument Reference above.
    serviceType String
    See Argument Reference above.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi