Obtains the download URL of a ticket attachment.
Operation description
仅当工单创建时上传了附件,才可通过此接口获取附件下载地址。
您可通过调用 GetOrderBaseInfo 接口,以 AttachmentKey 参数是否有返回值来判断工单创建时是否上传了附件。
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetOrderAttachmentFile |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderId |
integer |
Yes |
The ticket ID. You can call the ListOrders operation to query the ticket ID. |
51**** |
| Tid |
integer |
No |
The tenant ID. Note
To view the tenant ID, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
FE8EE2F1-4880-46BC-A704-5CF63EAF9A04 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| ErrorMessage |
string |
The error message returned if the request fails. |
UnknownError |
| ErrorCode |
string |
The error code. Note the following rules:
|
UnknownError |
| FileUrl |
string |
The download URL of the attachment. |
https://dmsxxx |
Examples
Success response
JSON format
{
"RequestId": "FE8EE2F1-4880-46BC-A704-5CF63EAF9A04",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"FileUrl": "https://dmsxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.