All Products
Search
Document Center

ApsaraDB RDS:DescribeMigrateTasks

Last Updated:Nov 22, 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rds:DescribeMigrateTasksget
*DBInstance
acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
  • rds:ResourceTag
none

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.

MigrateTaskobject
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
2024-11-20API Description Update. The Error code has changedView Change Details
2022-08-04The Error code has changed. The request parameters of the API has changedView Change Details