projects

PATCH /v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}

Changed on

Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

Request

  • Base URL
    https://redis.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/redis.read-write
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/redis.read-write

Path parameters

projectsId, string required
locationsId, string required
clustersId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

requestId, string

Optional. Idempotent request UUID.

updateMask, string google-fieldmask

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster: * size_gb * replica_count * cluster_endpoints

Request body

Cluster required

A cluster instance.

aclPolicy, string

Optional. The ACL policy to be applied to the cluster.

aclPolicyInSync, boolean

Optional. Output only. Deprecated: Indicates whether the ACL rules applied to the cluster are in sync.

aclPolicyInfo, AclPolicyInfo

Details of the applied ACL policy.

allowFewerZonesDeployment, boolean

Optional. Immutable. Deprecated, do not use.

asyncClusterEndpointsDeletionEnabled, boolean

Optional. If true, cluster endpoints that are created and registered by customers can be deleted asynchronously. That is, such a cluster endpoint can be de-registered before the forwarding rules in the cluster endpoint are deleted.

authorizationMode, 'AUTH_MODE_UNSPECIFIED' | 'AUTH_MODE_IAM_AUTH' | 'AUTH_MODE_DISABLED' | 'AUTH_MODE_TOKEN_AUTH'

Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster.

automatedBackupConfig, AutomatedBackupConfig

The automated backup config for a cluster.

availableMaintenanceVersions, string[]

Output only. This field is used to determine the available maintenance versions for the self service update.

backupCollection, string

Optional. Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}

clusterEndpoints, ClusterEndpoint[]

Optional. A list of cluster endpoints.

createTime, string google-datetime

Output only. The timestamp associated with the cluster creation request.

crossClusterReplicationConfig, CrossClusterReplicationConfig

Cross cluster replication config.

deletionProtectionEnabled, boolean

Optional. The delete operation will fail when the value is set to true.

discoveryEndpoints, DiscoveryEndpoint[]

Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported.

effectiveMaintenanceVersion, string

Output only. This field represents the actual maintenance version of the cluster.

encryptionInfo, EncryptionInfo

EncryptionInfo describes the encryption information of a cluster or a backup.

gcsSource, GcsBackupSource

Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the clusters.

kmsKey, string

Optional. The KMS key used to encrypt the at-rest data of the cluster.

labels, object

Optional. Labels to represent user-provided metadata.

maintenancePolicy, ClusterMaintenancePolicy

Maintenance policy per cluster.

maintenanceSchedule, ClusterMaintenanceSchedule

Upcoming maintenance schedule.

maintenanceVersion, string

Optional. This field can be used to trigger self service update to indicate the desired maintenance version. The input to this field can be determined by the available_maintenance_versions field.

managedBackupSource, ManagedBackupSource

Backups that generated and managed by memorystore.

name, string

Required. Identifier. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id}

nodeType, 'NODE_TYPE_UNSPECIFIED' | 'REDIS_SHARED_CORE_NANO' | 'REDIS_HIGHMEM_MEDIUM' | 'REDIS_HIGHMEM_XLARGE' | 'REDIS_STANDARD_SMALL' | 'REDIS_HIGHCPU_MEDIUM' | 'REDIS_STANDARD_LARGE' | 'REDIS_HIGHMEM_2XLARGE'

Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node.

ondemandMaintenance, boolean

Optional. Input only. Ondemand maintenance for the cluster. This field can be used to trigger ondemand critical update on the cluster.

persistenceConfig, ClusterPersistenceConfig

Configuration of the persistence functionality.

preciseSizeGb, number double

Output only. Precise value of redis memory size in GB for the entire cluster.

pscConfigs, PscConfig[]

Optional. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported.

pscConnections, PscConnection[]

Output only. The list of PSC connections that are auto-created through service connectivity automation.

pscServiceAttachments, PscServiceAttachment[]

Output only. Service attachment details to configure Psc connections

redisConfigs, object

Optional. Key/Value pairs of customer overrides for mutable Redis Configs

replicaCount, integer

Optional. The number of replica nodes per shard.

rotateServerCertificate, boolean

Optional. Input only. Rotate the server certificates.

satisfiesPzi, boolean

Optional. Output only. Reserved for future use.

satisfiesPzs, boolean

Optional. Output only. Reserved for future use.

serverCaMode, 'SERVER_CA_MODE_UNSPECIFIED' | 'SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA' | 'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA' | 'SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA'

Optional. Server CA mode for the cluster.

serverCaPool, string

Optional. Customer-managed CA pool for the cluster. Only applicable for BYOCA i.e. if server_ca_mode is SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA. Format: "projects/{project}/locations/{region}/caPools/{ca_pool}".

shardCount, integer

Optional. Number of shards for the Redis cluster.

simulateMaintenanceEvent, boolean

Optional. Input only. Simulate a maintenance event.

sizeGb, integer

Output only. Redis memory size in GB for the entire cluster rounded up to the next integer.

state, 'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'UPDATING' | 'DELETING'

Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED

stateInfo, StateInfo

Represents additional information about the state of the cluster.

transitEncryptionMode, 'TRANSIT_ENCRYPTION_MODE_UNSPECIFIED' | 'TRANSIT_ENCRYPTION_MODE_DISABLED' | 'TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION'

Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.

uid, string

Output only. System assigned, unique identifier for the cluster.

zoneDistributionConfig, ZoneDistributionConfig

Zone distribution config for allocation of cluster resources.

Response

Successful response

Operation required

This resource represents a long-running operation that is the result of a network API call.

done, boolean

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

error, Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

metadata, object

{ createTime: The time the operation was created. endTime: The time the operation finished running. target: Server-defined resource path for the target of the operation. verb: Name of the verb executed by the operation. statusDetail: Human-readable status of the operation, if any. cancelRequested: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED. apiVersion: API version used to start the operation. }

name, string

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

response, object

The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/redis.read-write was removed from the endpoint's security scheme Oauth2

    1 more change in this revision