DescribeModelOssToken
Obtains an OSS upload credential.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
integer |
The status code. A value of 200 indicates success. |
200 |
| Success |
boolean |
Indicates whether the call was successful.
|
true |
| ResultObject |
object |
The returned result. |
|
| AccessId |
string |
The AccessKey ID used to upload files to OSS. |
Lxxxxxxxxxxxxxxxxxxxxx |
| Host |
string |
The OSS domain name. |
https://safxxxxxxxxx.aliyuncs.com |
| Key |
string |
The key required for file upload. |
saf/xxxxxx/xxxxxx |
| Policy |
string |
The access policy for security group rules. |
eyJleHBpcmF0aW9uIjoiMxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Signature |
string |
The OSS signature. |
lUxxxxxxxxxxxxxxxxxxxx |
| XOssSecurityToken |
string |
The temporary OSS authorization token. |
smxxxxxxxxxxx |
| RequestId |
string |
The request ID. |
4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2 |
| AccessId |
string |
The AccessKey ID used to upload files to OSS. |
Lxxxxxxxxxxxxxxxxxxxxx |
| Host |
string |
The OSS domain name. |
https://safxxxxxxxxx.aliyuncs.com |
| Key |
string |
The key required for file upload. |
saf/xxxxxx/xxxxxx |
| Policy |
string |
The access policy for security group rules. |
eyJleHBpcmF0aW9uIjoiMxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Signature |
string |
The OSS signature. |
lUxxxxxxxxxxxxxxxxxxxx |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| XOssSecurityToken |
string |
The temporary OSS authorization token. |
smxxxxxxxxxxx |
Examples
Success response
JSON format
{
"Code": 200,
"Success": true,
"ResultObject": {
"AccessId": "Lxxxxxxxxxxxxxxxxxxxxx",
"Host": "https://safxxxxxxxxx.aliyuncs.com",
"Key": "saf/xxxxxx/xxxxxx",
"Policy": "eyJleHBpcmF0aW9uIjoiMxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Signature": "lUxxxxxxxxxxxxxxxxxxxx",
"XOssSecurityToken": "smxxxxxxxxxxx"
},
"RequestId": "4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2",
"AccessId": "Lxxxxxxxxxxxxxxxxxxxxx",
"Host": "https://safxxxxxxxxx.aliyuncs.com",
"Key": "saf/xxxxxx/xxxxxx",
"Policy": "eyJleHBpcmF0aW9uIjoiMxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Signature": "lUxxxxxxxxxxxxxxxxxxxx",
"HttpStatusCode": 200,
"XOssSecurityToken": "smxxxxxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.