cluster_endpoints
~> The resource's API may change in subsequent versions to simplify user experience.
Returns the endpoints of a CelerData cluster.
If your CelerData cluster is deployed under a public subnet, both public and private endpoints will be returned. If your CelerData cluster is deployed under a private subnet, only the private endpoint will be returned.
Example Usage
resource "celerdatabyoc_cluster_endpoints" "endpoints"{
cluster_id = "<cluster_resource_id>"
}
# Output the `endpoints` attribute.
output "endpoints"{
value = celerdatabyoc_cluster_endpoints.endpoints.endpoints
}
Argument Reference
This resource contains the following required arguments:
-
cluster_id
: (String, Forces new resource) The ID of thecelerdatabyoc_classic_cluster
orcelerdatabyoc_elastic_cluster_v2
resource.- If the cluster is a classic cluster, set this argument to
celerdatabyoc_classic_cluster.<cluster_resource_name>.id
, and replace<cluster_resource_name>
with your cluster resource name. - If the cluster is an elastic cluster, set this argument to
celerdatabyoc_elastic_cluster_v2.<cluster_resource_name>.id
, and replace<cluster_resource_name>
with your cluster resource name.
- If the cluster is a classic cluster, set this argument to
Attribute Reference
This resource exports the following attributes:
-
id
: (String) The ID of the cluster. -
endpoints
: (List of String) The list of endpoints. The attributes of an endpoint include:host
: The host of the endpoint.network_method
: The type of the endpoint. Valid values:Public
andPrivate
.port
: The port of the endpoint.nlb_endpoint
: The endpoint of Network Load Balancer, in the format of domain names or IP addresses. For AWS, this field returns a domain name. For Azure and GCP, this field returns an IP address.nlb_endpoint_type
: The type of the Network Load Balancer endpoint. Supported values:IP
andDOMAIN
.