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:
- Endpoint
Region string The region the endpoint is assigned to. The
regionandendpoint_regioncan be different.- Interface string
The endpoint interface. Valid values are
public,internal, andadmin. Default value ispublic- Name string
The name of the endpoint.
- Region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used.- Service
Id string The service id this endpoint belongs to.
- Service
Name string The service name of the endpoint.
- Service
Type string The service type of the endpoint.
- Endpoint
Region string The region the endpoint is assigned to. The
regionandendpoint_regioncan be different.- Interface string
The endpoint interface. Valid values are
public,internal, andadmin. Default value ispublic- Name string
The name of the endpoint.
- Region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used.- Service
Id string The service id this endpoint belongs to.
- Service
Name string The service name of the endpoint.
- Service
Type string The service type of the endpoint.
- endpoint
Region string The region the endpoint is assigned to. The
regionandendpoint_regioncan be different.- interface string
The endpoint interface. Valid values are
public,internal, andadmin. Default value ispublic- name string
The name of the endpoint.
- region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used.- service
Id string The service id this endpoint belongs to.
- service
Name string The service name of the endpoint.
- service
Type string The service type of the endpoint.
- endpoint_
region str The region the endpoint is assigned to. The
regionandendpoint_regioncan be different.- interface str
The endpoint interface. Valid values are
public,internal, andadmin. Default value ispublic- name str
The name of the endpoint.
- region str
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument 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.
- Endpoint
Region string See Argument Reference above.
- Interface string
See Argument Reference above.
- Name string
See Argument Reference above.
- Service
Id string See Argument Reference above.
- Service
Name string See Argument Reference above.
- Service
Type 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.
- Endpoint
Region string See Argument Reference above.
- Interface string
See Argument Reference above.
- Name string
See Argument Reference above.
- Service
Id string See Argument Reference above.
- Service
Name string See Argument Reference above.
- Service
Type 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.
- endpoint
Region string See Argument Reference above.
- interface string
See Argument Reference above.
- name string
See Argument Reference above.
- service
Id string See Argument Reference above.
- service
Name string See Argument Reference above.
- service
Type 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
openstackTerraform Provider.