OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi
openstack.identity.getEndpoint
Explore with Pulumi AI
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:
- Endpoint
Region string - The region the endpoint is assigned to. The
region
andendpoint_region
can 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
region
argument 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
region
andendpoint_region
can 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
region
argument 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
region
andendpoint_region
can 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
region
argument 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
region
andendpoint_region
can 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
region
argument 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
region
andendpoint_region
can 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
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.
- endpoint
Region String - The region the endpoint is assigned to. The
region
andendpoint_region
can 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
region
argument 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.
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 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.
- 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.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.