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/v1beta1/{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
{

  // Union field source can be only one of the following:
  "gcsSource": {
    object (GcsSource)
  }
  // End of list of possible types for union field source.
}
Fields
Union field source. Required. Specify source location of input data source can be only one of the following:
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').