Retrieves the temporary authentication information for a specified DSW instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidsw:GetToken |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v2/tokens HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. For information about how to obtain an instance ID, see ListInstances. |
dsw-730xxxxxxxxxx |
| ExpireTime |
integer |
No |
The time-to-live (TTL). Unit: seconds. |
60 |
| Type |
string |
No |
The type of token to issue.
|
Access |
| Audience |
string |
No |
Specifies the intended recipient (audience) of the token. If you access the DSW page from a self-built web application, set this parameter to ThirdParty. |
Aliyun |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Indicates whether the request was successful. Possible values:
Valid values:
|
true |
| Message |
string |
The error message. |
"XXX" |
| Code |
string |
The status code. Possible values:
|
ValidationError |
| Token |
string |
The temporary authentication information used to access the DSW instance. |
******* |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"XXX\"",
"Code": "ValidationError",
"Token": "*******"
}
Error codes
See for a complete list.
Release notes
See Release Notes for a complete list.