GetEndpoint

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

Note: This usually requires admin privileges.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var endpoint1 = Output.Create(OpenStack.Identity.GetEndpoint.InvokeAsync(new OpenStack.Identity.GetEndpointArgs
        {
            ServiceName = "demo",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

endpoint1 = openstack.identity.get_endpoint(service_name="demo")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const endpoint1 = pulumi.output(openstack.identity.getEndpoint({
    serviceName: "demo",
}, { async: true }));

Using GetEndpoint

function getEndpoint(args: GetEndpointArgs, opts?: InvokeOptions): Promise<GetEndpointResult>
function  get_endpoint(endpoint_region=None, interface=None, name=None, region=None, service_id=None, service_name=None, service_type=None, opts=None)
func GetEndpoint(ctx *Context, args *GetEndpointArgs, opts ...InvokeOption) (*GetEndpointResult, error)
public static class GetEndpoint {
    public static Task<GetEndpointResult> InvokeAsync(GetEndpointArgs args, InvokeOptions? opts = null)
}

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.

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.

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 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.

Package Details

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