Getting an OCI Cache Cluster's Connection Details
View an OCI Cache cluster's primary, replica, and node endpoints.
Use the oci redis redis-cluster redis-cluster get command and required parameter to get the details for a cluster:
oci redis redis-cluster redis-cluster get --redis-cluster-id <cluster_OCID> [OPTIONS]For information about using the CLI, see Command Line Interface (CLI). For a complete list of flags and options available for CLI commands, see the CLI Command Reference.Run the GetRedisCluster operation to get a cluster's details.
The
GetRedisClusterresponse includes the following endpoint address fields:- Non-sharded clusters
- IPv4:
primary_endpoint_ip_address,replicas_endpoint_ip_address - IPv6:
primary_endpoint_ipv6address,replicas_endpoint_ipv6address
- IPv4:
- Sharded clusters
- IPv4:
discovery_endpoint_ip_address - IPv6:
discovery_endpoint_ipv6address
- IPv4:
For a non-sharded cluster, use the primary endpoint for write traffic and the replicas endpoint for read traffic.
- Non-sharded clusters