Adding a User to an OCI Cache Cluster
Assign an OCI Cache user to an OCI Cache cluster.
When assigning a cache user to a cluster, OCI Cache considers the following lifecycle states:
When adding users, note the following points: - Users can only be added when their status is
Active
. Users in theUpdating
orFailed
states aren't eligible for inclusion. - Users not in an
Active
state don't appear in the Console or Terraform configurations.
- Adding a user with the username "default" to a cluster overrides the system-defined default user created during the initial setup.
- You can't add more than one user with the same username to a cluster.
The cache users you added are included in the cluster's Users list. Use the oci redis redis-cluster redis-cluster attach command and required parameters to assign a cache user to a cluster:
oci redis redis-cluster redis-cluster attach --oci-cache-users <json_file_or_string> --redis-cluster-id <cluster_OCID> [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the AttachOciCacheUsers operation to assign a cache user to a cluster.