Method: projects.locations.instances.import

Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.

Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file.

The returned operation is automatically deleted after a few hours, so there is no need to call operations.delete.

HTTP request

POST https://redis.googleapis.com/v1/{name=projects/*/locations/*/instances/*}:import

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Redis instance resource name using the form: projects/{projectId}/locations/{locationId}/instances/{instanceId} where locationId refers to a GCP region.

Request body

The request body contains data with the following structure:

JSON representation
{
  "inputConfig": {
    object (InputConfig)
  }
}
Fields
inputConfig

object (InputConfig)

Required. Specify data to be imported.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

InputConfig

The input content

JSON representation
{
  "gcsSource": {
    object (GcsSource)
  }
}
Fields
gcsSource

object (GcsSource)

Google Cloud Storage location where input content is located.

GcsSource

The Cloud Storage location for the input content

JSON representation
{
  "uri": string
}
Fields
uri

string

Required. Source data URI. (e.g. 'gs://my_bucket/my_object').

Kunde den här sidan hjälpa dig? Berätta:

Skicka feedback om ...

Google Cloud Memorystore for Redis