GetStsToken
Retrieves the Wuying STS token (temporary identity credential).
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientId |
string |
No |
The unique ID generated by the client. |
eac19bef-1e45-4190-a03a-4ea74b69**** |
| ClientOS |
string |
No |
The client operating system. |
windows_\"Windows 10 Enterprise\" 10.0 (Build 14393) |
| ClientVersion |
string |
No |
The client version number. |
6.3.0-R-20231106.210000 |
| ClientIp |
string |
No |
The client IP address. |
22.21.2.** |
| Uuid |
string |
No |
The device UUID. |
2943802884B27030B6759F9132B2**** |
| AuthCode |
string |
Yes |
The authorization code. The authorization code is valid for 3 minutes and can be used only once, regardless of whether the verification succeeds or fails. If multiple authorization codes are generated for a user, only the last generated code is valid. You can obtain the authorization code by calling the GetAuthCode operation and setting TokenType to StsToken. The returned AuthCode is the value of this parameter. |
e4e169bea1cc48e8afac53********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
CCF92035-6231-5ABB-930E-1E003C32**** |
| StsTokenModel |
object |
The details of the temporary identity credential. |
|
| SessionId |
string |
The logon session ID. |
be4be09e-cd00-4b4c-add7-11b4d8**** |
| StsToken |
string |
The temporary identity credential. |
sts**** |
| TenantId |
integer |
The tenant ID (Alibaba Cloud account UID). |
105552640689**** |
| LoginToken |
string |
The logon token. |
v185fdd7f6d39fa7861981639366085772e150a390a5bb7b43c4e62440d94fc392b945770e1596cebe90085ce0af4d**** |
| EndUserId |
string |
The end user ID. |
alice |
| ProfileRegion |
string |
The region where the user profile is stored. |
cn_hangzhou |
Examples
Success response
JSON format
{
"RequestId": "CCF92035-6231-5ABB-930E-1E003C32****",
"StsTokenModel": {
"SessionId": "be4be09e-cd00-4b4c-add7-11b4d8****",
"StsToken": "sts****",
"TenantId": 0,
"LoginToken": "v185fdd7f6d39fa7861981639366085772e150a390a5bb7b43c4e62440d94fc392b945770e1596cebe90085ce0af4d****",
"EndUserId": "alice",
"ProfileRegion": "cn_hangzhou"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.