Resource: Instance
A Google Cloud Redis instance.
JSON representation | |
---|---|
{ "name": string, "displayName": string, "labels": { string: string, ... }, "locationId": string, "alternativeLocationId": string, "redisVersion": string, "reservedIpRange": string, "host": string, "port": number, "currentLocationId": string, "createTime": string, "state": enum ( |
Fields | |
---|---|
name |
Required. Unique name of the resource in this scope including project and location using the form: Note: Redis instances are managed and addressed at regional level so locationId here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to |
displayName |
An arbitrary and optional user-provided name for the instance. |
labels |
Resource labels to represent user provided metadata An object containing a list of |
locationId |
Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If |
alternativeLocationId |
Optional. Only applicable to STANDARD_HA tier which protects the instance against zonal failures by provisioning it across two zones. If provided, it must be a different zone from the one provided in |
redisVersion |
Optional. The version of Redis software. If not provided, latest supported version will be used. Updating the version will perform an upgrade/downgrade to the new version. Currently, the supported values are:
|
reservedIpRange |
Optional. The CIDR range of internal addresses that are reserved for this instance. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets in an authorized network. |
host |
Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service. |
port |
Output only. The port number of the exposed Redis endpoint. |
currentLocationId |
Output only. The current zone where the Redis endpoint is placed. For Basic Tier instances, this will always be the same as the |
createTime |
Output only. The time the instance was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: |
state |
Output only. The current state of this instance. |
statusMessage |
Output only. Additional information about the current status of this instance, if available. |
redisConfigs |
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis 3.2 and above:
Redis 4.0 and above:
An object containing a list of |
tier |
Required. The service tier of the instance. |
memorySizeGb |
Required. Redis memory size in GiB. |
authorizedNetwork |
Optional. The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the |
persistenceIamIdentity |
Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount: |
State
Represents the different states of a Redis instance.
Enums | |
---|---|
STATE_UNSPECIFIED |
Not set. |
CREATING |
Redis instance is being created. |
READY |
Redis instance has been created and is fully usable. |
UPDATING |
Redis instance configuration is being updated. Certain kinds of updates may cause the instance to become unusable while the update is in progress. |
DELETING |
Redis instance is being deleted. |
REPAIRING |
Redis instance is being repaired and may be unusable. |
MAINTENANCE |
Maintenance is being performed on this Redis instance. |
IMPORTING |
Redis instance is importing data (availability may be affected). |
FAILING_OVER |
Redis instance is failing over (availability may be affected). |
Tier
Available service tiers to choose from
Enums | |
---|---|
TIER_UNSPECIFIED |
Not set. |
BASIC |
BASIC tier: standalone instance |
STANDARD_HA |
STANDARD_HA tier: highly available primary/replica instances |
Methods |
|
---|---|
|
Creates a Redis instance based on the specified tier and memory size. |
|
Deletes a specific Redis instance. |
|
Export Redis instance data into a Redis RDB format file in Cloud Storage. |
|
Initiates a failover of the master node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance. |
|
Gets the details of a specific Redis instance. |
|
Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. |
|
Lists all Redis instances owned by a project in either the specified location (region) or all locations. |
|
Updates the metadata and configuration of a specific Redis instance. |