GetOssStsToken
Retrieves temporary OSS token credentials.
Operation description
The retrieved SecurityToken is valid for 15 minutes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:GetOssStsToken |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileType |
string |
No |
The file type. Valid values:
|
SKILL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| AccessKeyId |
string |
The AccessKey ID of the user. |
STS.NZeNA1kdCm4QPuAJ9kN****** |
| AccessKeySecret |
string |
The temporary STS AccessKey Secret. |
9EStV7fgkSQsPuBi576EmNQXLxJGddL2EGyX******** |
| SecurityToken |
string |
The Security Token Service (STS) token. |
CAISvAN1q6Ft5B2yfSjIr5n2Bez81ZRTgqOGZn6FkHBnXf9qgI6apjz2IH******* |
| Bucket |
string |
The name of the logical OSS bucket. |
prod-wy-***** |
| OssRegion |
string |
The region of the current OSS bucket. |
oss-cn-hangzhou |
| ObjectKeyPrefix |
string |
The project storage path. |
tmp/skill/tenant/1483****/ |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"AccessKeyId": "STS.NZeNA1kdCm4QPuAJ9kN******",
"AccessKeySecret": "9EStV7fgkSQsPuBi576EmNQXLxJGddL2EGyX********",
"SecurityToken": "CAISvAN1q6Ft5B2yfSjIr5n2Bez81ZRTgqOGZn6FkHBnXf9qgI6apjz2IH*******",
"Bucket": "prod-wy-*****",
"OssRegion": "oss-cn-hangzhou",
"ObjectKeyPrefix": "tmp/skill/tenant/1483****/"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.