Getting a Cluster's Connection Details
Get a cluster's primary, replica, and node endpoints to connect to the cluster.
Open the navigation menu and click Databases. Under OCI Cache, click Clusters.
Under List scope, select the compartment that contains the cluster.
-
In the Clusters list, click the name of the cluster that you want to connect to.
-
For the primary and replica nodes, the following fields on the cluster details page contain the endpoints to use when connecting to the cluster:
- Primary endpoint
- Replicas endpoint
For the direct endpoint to individual cluster nodes, regardless of the node type, under Resource, in the Cluster nodes list, click the name of the node you want to connect to.
-
Click Show to display the full value for a field in the Console, and click Copy to copy the value.
Use the oci redis redis-cluster get command and required parameter to get the details for a cluster:
oci 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.- For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
Run the GetRedisCluster operation to get a cluster's details.