Start an RDS backup logical query.
Start a database backup query with the query statement provided in user input. If the query preview flag is set in the input then the result will be returned in the response otherwise the query will run in background and a task id will be returned.
Query Parameters
- embed string
Embeds the details of each associated resource. Set the parameter to one of the following embeddable links to include additional details associated with the resource.
For more information about embedded links, refer to the Embedding Referenced Resources section of this guide.Embeddable Link Description read-task Embeds the associated task in the response. For example, ?embed=read-task
- application/json
Request Body
source object required
target object required
- 200
- 202
- default
Preview Success
- application/api.clumio.aws-rds-resource-restored-records=v1+json
- Schema
- Example (from schema)
Schema
_links object
preview_result object
{
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
}
},
"preview_result": {
"columns": [
{
"name": "string",
"type": "string"
}
],
"rows": [
[
"string"
]
]
}
}
Success
- application/api.clumio.aws-rds-resource-restored-records=v1+json
- Schema
- Example (from schema)
Schema
_embedded object
_links object
- task_id string
The Clumio-assigned ID of the task generated by this request. The requested records will be available for asynchronous download when the Task completes. Use the GET /restores/aws/rds-resources/records endpoint to list the records available for download.
If"preview":true
was set in the request, then a preview of the result will be given instead of a Task ID.
{
"_embedded": {},
"_links": {
"_self": {
"href": "string",
"templated": true,
"type": "string"
},
"read-task": {
"href": "string",
"templated": true,
"type": "string"
}
},
"task_id": "string"
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}
POST /restores/aws/rds-resources/records
Authorization
Request
Request
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'
curl -L -X POST 'https://us-west-2.api.clumio.com/restores/aws/rds-resources/records' \
-H 'Content-Type: application/json' \
-H 'Accept: application/api.clumio.aws-rds-resource-restored-records=v1+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}'