All Products
Search
Document Center

ApsaraDB RDS:DescribeOssDownloads

Last Updated:May 29, 2023

You can call the DescribeOssDownloads operation to query the backup file details of a backup data migration task for an ApsaraDB RDS for SQL Server instance.

Operation Description

NoteThis operation is not supported for instances that run SQL Server 2017 EE or SQL Server 2019 EE.

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:DescribeOssDownloadsREAD
  • RDS
    acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
  • rds:ResourceTag
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

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

rm-uf6wjk5xxxxxxx
MigrateTaskIdstringYes

The ID of the backup data migration task. You can call the DescribeMigrateTasks operation to query the ID of the migration task.

5625458541
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmy*****

Response parameters

ParameterTypeDescriptionExample
object
DBInstanceIdstring

The ID of the instance.

rm-uf6wjk5xxxxxxx
RequestIdstring

The ID of the request.

A5409D02-D661-4BF3-8F3D-0A814D0574E7
MigrateTaskIdstring

The ID of the migration task.

562154852
Itemsobject []

Details of the backup file.

EndTimestring

The end of the time range. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2017-08-27T12:45:15Z
Statusstring

The state of the backup file. Valid values:

  • NoStart:
  • Downloading
  • Finished
  • DownloadFailed
  • VerifyFailed
  • Deleted
  • DeleteFailed
  • CheckSuccess
  • CheckFailed
  • Restoring
  • Restored
  • RestoredFailed
Finished
Descriptionstring

The description of the file.

App description
CreateTimestring

The time when the backup file was created in the download list. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2017-08-17T12:45:15Z
BackupModestring

The backup type. Valid values:

  • Database: full backup file
  • Differential_Database: incremental backup file
  • Transaction_Log: log backup file
Database
IsAvailablestring

Indicates whether the backup file is available. Valid values: True and False.

True
FileNamestring

The name of the backup file stored in the Object Storage Service (OSS) bucket.

test
FileSizestring

The size of the backup file. Unit: MB

2

Examples

Sample success responses

JSONformat

{
  "DBInstanceId": "rm-uf6wjk5xxxxxxx",
  "RequestId": "A5409D02-D661-4BF3-8F3D-0A814D0574E7",
  "MigrateTaskId": "562154852",
  "Items": {
    "OssDownload": [
      {
        "EndTime": "2017-08-27T12:45:15Z",
        "Status": "Finished",
        "Description": "App description",
        "CreateTime": "2017-08-17T12:45:15Z",
        "BackupMode": "Database",
        "IsAvailable": "True",
        "FileName": "test",
        "FileSize": "2"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-08-04The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: ResourceGroupId