Use this data source to get the ID of an OpenStack endpoint.
data "openstack_identity_endpoint_v3" "endpoint_1" {
service_name = "demo"
}
The following arguments are supported:
region
- (Optional) The region in which to obtain the V3 Keystone client.
If omitted, the region
argument of the provider is used.
name
- (Optional) The name of the endpoint.
endpoint_region
- (Optional) The region the endpoint is assigned to. The
region
and endpoint_region
can be different.
service_id
- (Optional) The service id this endpoint belongs to.
service_name
- (Optional) The service name of the endpoint.
service_type
- (Optional) The service type of the endpoint.
interface
- (Optional) The endpoint interface. Valid values are public
,
internal
, and admin
. Default value is public
id
is set to the ID of the found endpoint. In addition, the following attributes
are exported:
region
- See Argument Reference above.name
- See Argument Reference above.endpoint_region
- See Argument Reference above.service_id
- See Argument Reference above.service_name
- See Argument Reference above.service_type
- See Argument Reference above.interface
- See Argument Reference above.url
- The endpoint URL.