Exporting a Task List
Function
This API is used to export a task list.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permissions are required for calling this API.
URI
POST /v5/{project_id}/export-jobs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | No | String | Definition MIME type of the request body. Use the default value application/json. For APIs used to upload objects or images, the value varies depending on the flow type. Constraints N/A Range application/json Default Value application/json |
| X-Auth-Token | Yes | String | Definition User token obtained from IAM. It is a response to the API for obtaining a user token. This API is the only one that does not require authentication. The token is the value of X-Subject-Token in the response header. Constraints N/A Range N/A Default Value N/A |
| X-Language | No | String | Definition Request language type. Constraints Specify the request language type based on the supported languages. Range
Default Value en-us |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| job_type | Yes | String | Definition Service scenario type of DRS tasks, which is used to filter tasks of a specific service type. Constraints N/A Range
Default Value N/A |
| name | No | String | Definition Task name. Constraints N/A Range N/A Default Value N/A |
| status | No | String | Definition Task status. By default, tasks in all statuses are queried. Constraints N/A Range When job_type is migration, sync, or cloudDataGuard: Values:
When job_type is backupMigration: Values:
When job_type is subscription: Values:
Default Value N/A |
| dbs_instance_ids | No | Array of strings | Definition DB instance IDs. Constraints A maximum of 10 DB instance IDs are allowed. Range N/A Default Value N/A |
| description | No | String | Definition Description. Constraints N/A Range N/A Default Value N/A |
| create_at | No | String | Definition Creation time. Constraints When job_type is set to migration, sync, or cloudDataGuard, this parameter indicates the task creation time, for example, "2026-05-25T13:41:00.127Z|2026-05-28T13:41:00.999Z". When job_type is set to backupMigration, this parameter indicates the task creation time, for example, "2026-05-25T13:41:00.127Z|2026-05-28T13:41:00.999Z". When job_type is set to subscription, this parameter indicates the consumption start time, for example, "2026-05-25T13:25:46.383Z|2026-05-28T13:25:46.999Z". Range N/A Default Value N/A |
| completed_at | No | String | Definition Completion time. Constraints When job_type is set to backupMigration, this parameter can be specified, indicating the task completion time, for example, "2026-05-25T13:41:00.127Z|2026-05-28T13:41:00.999Z". Range N/A Default Value N/A |
| enterprise_project_id | No | String | Definition Enterprise project ID. Constraints N/A Range N/A Default Value N/A |
| engine_type | No | String | Definition Engine type. Constraints When job_type is set to backupMigration, the value of this parameter is sqlserver. Range N/A Default Value N/A |
| net_type | No | String | Definition Network type. Constraints This parameter can be set when job_type is set to migration, sync, or cloudDataGuard. Range
Default Value N/A |
| billing_tag | No | String | Definition Billing tag. Constraints This parameter can be set when job_type is set to migration, sync, cloudDataGuard, or subscription. Range
Default Value N/A |
| billing_mode | No | String | Definition Billing mode. Constraints This parameter can be set when job_type is set to migration, sync, cloudDataGuard, or subscription. Range
Default Value N/A |
| public_ip | No | String | Definition EIP bound to the DB instance. Constraints This parameter can be set when job_type is set to migration, sync, or cloudDataGuard. Range N/A Default Value N/A |
| instance_ip | No | String | Definition IP address bound to a DRS task. Constraints This parameter can be set when job_type is set to migration, sync, or cloudDataGuard. Range N/A Default Value N/A |
| inner_ip | No | String | Definition Private IP address bound to a DRS task. Constraints This parameter can be set when job_type is set to migration, sync, or cloudDataGuard. Range N/A Default Value N/A |
| spec_type | No | String | Definition Specification type. Constraints This parameter can be set when job_type is set to migration, sync, or cloudDataGuard. Range
Default Value N/A |
| direction | No | String | Definition Data flow direction. Constraints This parameter can be specified when job_type is set to migration or sync. Values:
This parameter can be specified when job_type is set to cloudDataGuard. Values:
Range
Default Value N/A |
| task_type | No | String | Definition Synchronization type. Constraints This parameter can be specified when job_type is set to migration or sync. Range
Default Value N/A |
| sort_key | No | String | Definition The keyword based on which the returned results are sorted. Constraints N/A Range
Default Value create_time |
| sort_dir | No | String | Definition Descending or ascending order Constraints N/A Range
Default Value desc |
| tag | No | String | Definition Tag Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 202
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Unique ID of an asynchronous task, which is used to query the task execution progress. Constraints N/A Range N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition Error code returned when an error occurs during task execution. Constraints
Range The format is DRS.XXXXXX. |
| error_msg | String | Definition Detailed error description returned when a task fails to be executed. Constraints
Range N/A |
Example Request
Exporting a list of backup migration tasks
https://{endpoint}/v5/054ba152d480d55b2f5dc0069e7ddef0/export-jobs
{
"job_type": backupMigration
} Example Response
Status code: 202
ACCEPTED
{
"id" : "0eacda0b-9422-4535-8b62-537d1833638b"
} Status code: 400
Bad Request
{
"error_code" : "DRS.10000023",
"error_msg" : "program exception"
} Error Code
For details, see Error Code.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot