Queries the Object Storage Service (OSS) URL that is used to upload attachments.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FileName | string | Yes | Name of the uploaded file | 81A0D93D-54D7-4529-ABFA-633ED63223BA.jpg |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 0,
"Message": "success",
"RequestId": "ED195C2C-787F-511C-8204-714456781861",
"Success": true,
"Data": {
"ObjectKey": "cdb5d174-c282-4b2d-9048-e74ea2223127.jpg",
"PutSignedUrl": "https://gts-workorder-pre.oss-cn-beijing.aliyuncs.com\n/20220314/cabb80c3-430b-4079-a9f2-d2a0d1c2a587.png?Expires=1647328689&OSSAccessKeyId=LTAI4FrZPa9N1nGWs6Ny****&Signature=AbSEh26G3oYrJ8ivr4B0xzF89zk%3D",
"GetSignedUrl": "https://gts-workorder-pre.oss-cn-beijing.aliyuncs.com\n/20220314/cabb80c3-430b-4079-a9f2-d2a0d1c2a587.png?Expires=1647328689&OSSAccessKeyId=LTAI4FrZPa9N1nGWs6Ny****&Signature=AbSEh26G3oYrJ8ivr4B0xzF89zk%3D"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | param.illegal | Params illegal. | - |
401 | illegal.auth | You are not authorized to perform the operation. | You are not authorized to perform this operation. |
500 | System.error | An error occurred while processing your request. | An error occurred while processing your request. Please try again. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history