Help Center/ Data Replication Service/ API Reference/ APIs V5.0/ Workload Replay/ Querying the Download Links of Workload Replay Reports
Updated on 2026-09-07 GMT+08:00

Querying the Download Links of Workload Replay Reports

Function

This API is used to obtain the temporary OBS links for downloadable files.

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

GET /v5/{project_id}/jobs/{job_id}/export/obs-uris

Table 1 URI parameters

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

job_id

Yes

String

Definition

Task ID, which uniquely identifies a data replication task and serves as the identifier for operations such as query, modification, and deletion.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 2 Query parameters

Parameter

Mandatory

Type

Description

report_type

Yes

String

Definition

Type of the SQL file to export.

Constraints

N/A

Range

  • abnormal_sql: abnormal SQL statement list
  • abnormal_sql_detail: abnormal SQL statement details
  • slow_sql: slow SQL statement list
  • slow_sql_detail: slow SQL statement details

Default Value

N/A

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

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

N/A

Range

  • en-us: English
  • zh-cn: Chinese

Default Value

en-us

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

count

Integer

Definition

Total number of downloadable files.

Constraints

N/A

Range

N/A

export_report_obs_files

Array of objects

Definition

List of downloadable files.

For details, see ExportReportObsTmpFileUrlResp.

Table 5 ExportReportObsTmpFileUrlResp

Parameter

Type

Description

file_name

String

Definition

File name.

Constraints

N/A

Range

N/A

obs_temp_uri

String

Definition

Temporary URI of the OBS file.

Constraints

N/A

Range

N/A

Example Request

Obtaining the temporary OBS links for downloadable files

https://{endpoint}/v5/246765b9f59445c3919fce121ea801f4/jobs/70e22c43-79e0-426a-8c97-0054efdjb60a/export/obs-uris?file_type=abnormal_sql

Example Response

Status code: 200

OBS file download set

{
  "count" : 1,
  "export_report_obs_files" : [ {
    "file_name" : "88eb497d-4953-4ac8-8c8f-5ef4962jb60y_abnormalSql_1.zip",
    "obs_temp_uri" : "https://abnormalsql-b471842642a24a38b0d86c574825eeb0-cn-southwest-244.obs.cn-southwest-244.ulanqab.huawei.com:443/drs-replay-flow-88eb497d-4953-4ac8-8c8f-5ef4962jb60y/88eb497d-4953-4ac8-8c8f-5ef4962jb60y_abnormalSql_1.zip?AWSAccessKeyId=LFFVMXPDCBUBH0NZ9JMB&Expires=1781695613&response-cache-control=no-cache%2Cno-store&Signature=mQ49%2FRa9jg%2FGni9qAr7jerHzOJQ%3D"
  } ]
}

Status Code

Status Code

Description

200

OK

For other statuses, see Status Code.

Error Code

For details, see Error Code.