createDatarestore

This API operation and its parameters support the request to create a data restore from a data backup.

Command

POST https://portalapi.commerce.ondemand.com/v2/subscriptions/{subscriptionCode}/environments/{environmentCode}/datarestores

Parameters

Name Required Description

body

(body)

Yes

Example Value | Schema

{
  "databackupCode": "string",
  "sourceEnvironmentCode": "string"
}

databackupCode - the code of the data backup to restore.

sourceEnvironmentCode - the code of the environment where the data backup is located.

subscriptionCode

string

(path)

Yes Customer subscription code.

You can find the subscription code in the Cloud Portal URL. It appears after subscription/ in the URL.

environmentCode

string

(path)

Yes The code of the target environment where the data backup will be restored. You can find the environment code in the Cloud Portal URL. It appears after environments/ in the URL.

Responses

The response content type is application/json.

Code Description
201 Created

Example Value | Schema

{
  "subscriptionCode": "string",
  "environmentCode": "string",
  "datarestoreCode": "string"
}
default Generic error message

Example Value | Schema

{
  "title": "string",
  "detail": "string"
}