You can call GetUserConfig to query user information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidsw:GetUserConfig |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v2/userconfig HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The user configuration. |
||
| AccountSufficient |
boolean |
Indicates whether the account has a sufficient balance. |
false |
| FreeTierSpecAvailable |
boolean |
Indicates whether free tier instances are available for purchase. |
true |
| FreeTier |
object |
The properties of the free tier. |
|
| IsFreeTierUser |
boolean |
Indicates whether the user has a free tier. |
true |
| StartTime |
string |
The start time of the free tier. |
2020-11-08T15:00:00Z |
| EndTime |
string |
The end time of the free tier. |
2020-11-08T15:00:00Z |
| Status |
string |
The status of the free tier. The value can be `valid` or `invalid`. |
valid |
| InitBaseValue |
number |
The initial value of the free tier resource. |
5000 |
| InitShowValue |
string |
The initial display value of the free tier resource. |
5000 |
| InitBaseUnit |
string |
The unit of the initial value for the free tier resource. |
个 |
| InitShowUnit |
string |
The display unit of the initial value for the free tier resource. |
个 |
| PeriodBaseValue |
number |
The current value of the free tier resource. |
3000 |
| PeriodShowValue |
string |
The current display value of the free tier resource. |
3000 |
| PeriodBaseUnit |
string |
The unit of the current value for the free tier resource. |
个 |
| PeriodShowUnit |
string |
The display unit of the current value for the free tier resource. |
个 |
| EnableEciDisk |
boolean |
Indicates whether eciDisk is enabled. |
true |
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Indicates whether the request was successful. Possible values:
|
true |
| Message |
string |
The message returned. |
"Access denied" |
| Code |
string |
The status code. Possible values:
|
null |
| HttpStatusCode |
integer |
The HTTP status code. Possible values:
|
null |
Examples
Success response
JSON format
{
"AccountSufficient": false,
"FreeTierSpecAvailable": true,
"FreeTier": {
"IsFreeTierUser": true,
"StartTime": "2020-11-08T15:00:00Z",
"EndTime": "2020-11-08T15:00:00Z",
"Status": "valid",
"InitBaseValue": 5000,
"InitShowValue": "5000",
"InitBaseUnit": "个",
"InitShowUnit": "个",
"PeriodBaseValue": 3000,
"PeriodShowValue": "3000",
"PeriodBaseUnit": "个",
"PeriodShowUnit": "个"
},
"EnableEciDisk": true,
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"Access denied\"",
"Code": "null",
"HttpStatusCode": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.