Skip to main content

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.

    Embeddable LinkDescription
    read-taskEmbeds the associated task in the response. For example, ?embed=read-task
    For more information about embedded links, refer to the Embedding Referenced Resources section of this guide.
Request Body
  • source object required

    The RDS database backup to be queried.

  • backup_id string required

    Performs the operation on a database within the specified backup. Use the GET /backups/aws/rds-resources endpoint to fetch valid values.

  • database_name string required

    Performs the operation on the database with the specified name. Use the GET /backups/aws/rds-resources endpoint to fetch valid values.

  • target object required

    The query to perform on the source RDS database.

  • preview boolean

    Determines whether the query is preview only. If true, a preview of the query results will be provided in the response immediately. If false or omitted, a task will be queued to make the result of the query available for asynchronous download.

  • query_statement string required

    The SQL statement that is to be executed on the target database. For example, "SELECT * FROM employee WHERE id > 100"

Responses

Preview Success


Schema
  • _links object

    HateoasCommonLinks are the common fields for HATEOAS response.

  • _self object

    The HATEOAS link to this resource.

  • href string

    The URI for the referenced operation.

  • templated boolean

    Determines whether the "href" link is a URI template. If set to true, the "href" link is a URI template.

  • type string

    The HTTP method to be used with the "href" link for the referenced operation.

  • preview_result object

    The preview of the query result, if preview:true in the request. If preview was not set to true in the request, then the result of the query will be available for download asynchronously.

  • columns object[]

    The columns of the previewed query result.

  • name string

    The name of the column.

  • type string

    The Hive data type of the column. Possible values include int, bigint, string, and boolean.

  • rows array[]

    The rows of the previewed query result.

POST /restores/aws/rds-resources/records    

Authorization

Request

Click Edit to configure Base URL
https://us-west-2.api.clumio.com
Bearer Token
embed — query
Body
{
"source": {
"backup_id": "string",
"database_name": "string"
},
"target": {
"preview": true,
"query_statement": "string"
}
}
Accept
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"
}
}'