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
| 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 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| report_type | Yes | String | Definition Type of the SQL file to export. Constraints N/A Range
Default Value N/A |
Request 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
Default Value en-us |
Response Parameters
Status code: 200
| 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. |
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"
} ]
} 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