Redis - Import Data

Import data into Redis cache.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/import?api-version=2016-04-01

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupName
path True
  • string

The name of the resource group.

name
path True
  • string

The name of the Redis cache.

api-version
query True
  • string

Client Api Version.

Request Body

Name Required Type Description
files True
  • string[]

files to import.

format
  • string

File format.

Responses

Name Type Description
200 OK

Import operation succeeded.

202 Accepted

Import operation successfully enqueued; follow the Location header to poll for final outcome.

204 No Content

Import operation succeeded.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

RedisCacheImport

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/Redis/cache1/import?api-version=2016-04-01
{
  "format": "RDB",
  "files": [
    "http://fileuris.contoso.com/pathtofile1"
  ]
}

Sample Response

location: https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult...

Definitions

ImportRDBParameters

Parameters for Redis import operation.

Name Type Description
files
  • string[]

files to import.

format
  • string

File format.