- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- InputConfig
- GcsSource
- Examples
- Try it!
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 |
Required. Redis instance resource name using the form: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"inputConfig": {
object ( |
Fields | |
---|---|
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 |
Fields | |
---|---|
Union field source . Required. Specify source location of input data source can be only one of the following: |
|
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 |
Required. Source data URI. (e.g. 'gs://my_bucket/my_object'). |