All Products
Search
Document Center

ApsaraDB RDS:DescribeMigrateTasks

Last Updated:Jul 05, 2024

Queries the tasks that are created to migrate the backup data of an ApsaraDB RDS for SQL Server instance.

Operation description

Supported database engine

  • SQL Server

Usage notes

This operation allows you to query the migration tasks that are created for the instance over the last week.

Precautions

  • This operation is supported only for migration tasks that are created to migrate full backup files.
  • This operation is not supported for instances that run SQL Server 2017 on RDS Cluster Edition.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The instance ID. You can call the DescribeDBInstances operation to query the instance ID.

rm-uf6wjk5xxxxxxx
StartTimestringYes

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2017-10-20T01:00Z
EndTimestringYes

The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2017-10-25T01:00Z
PageSizeintegerNo

The number of entries to return on each page. Valid values: 30 to 100. Default value: 30.

30
PageNumberintegerNo

The page number. Valid values: any non-zero positive integer.

Default value: 1.

1
ResourceGroupIdstringNo

The resource group ID.

rg-acfmy*****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

DBInstanceIdstring

The instance ID.

rm-uf6wjk5xxxxxxx
PageNumberinteger

The page number of the returned page.

1
RequestIdstring

The ID of the request.

4E356DDF-6B83-45DB-99D5-4B1E8A0D286B
PageRecordCountinteger

The number of entries returned per page.

10
TotalRecordCountinteger

The total number of entries returned.

30
Itemsarray<object>

The details of the migration task.

object
EndTimestring

The time when the migration task was completed. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2017-05-30T13:11:04Z
Statusstring

The status of the migration task. Valid values:

  • NoStart: The task is not started.
  • Running:The task is in progress.
  • Success: The task is successful.
  • Failed: The task failed.
  • Waiting: The task is waiting for an incremental backup file to be imported.
Success
Descriptionstring

The description of the migration task.

Api description
CreateTimestring

The time when the migration task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2017-05-30T12:11:04Z
DBNamestring

The database name.

testDB
BackupModestring

The migration task type. Valid values:

  • FULL: The migration task migrates full backup files that can be used to restore the full data of the instance.
  • UPDF: The migration task migrates incremental or log backup files that can be used to restore the incremental data of the instance.
FULL
MigrateTaskIdstring

The migration task ID.

564522545
IsDBReplacedstring

Indicates whether the imported data overwrites the existing data.

True

Examples

Sample success responses

JSONformat

{
  "DBInstanceId": "rm-uf6wjk5xxxxxxx",
  "PageNumber": 1,
  "RequestId": "4E356DDF-6B83-45DB-99D5-4B1E8A0D286B",
  "PageRecordCount": 10,
  "TotalRecordCount": 30,
  "Items": {
    "MigrateTask": [
      {
        "EndTime": "2017-05-30T13:11:04Z",
        "Status": "Success",
        "Description": "Api description",
        "CreateTime": "2017-05-30T12:11:04Z",
        "DBName": "testDB",
        "BackupMode": "FULL",
        "MigrateTaskId": "564522545",
        "IsDBReplaced": "True"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidStartTimeAndEndTime.MalformedThe end time must be greater than the start timeThe end time must be later than the start time.
403InvalidInstanceStateThe DB instance state does not support this operation.The operation failed. The RDS instance is unavailable.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-08-04The Error code has changed. The request parameters of the API has changedView Change Details