DescribeUserStatus queries the status of a user account.
Operation description
Call this operation to get a comprehensive overview of your DSC usage and information about the current account.
QPS limit
The QPS limit for this operation is 10 queries per second per user. Exceeding this limit results in API call throttling, which can impact your business.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeUserStatus |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh_cn |
| FeatureType |
integer |
No |
This parameter is deprecated. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
769FB3C1-F4C9-42DF-9B72-7077A8989C13 |
| UserStatus |
object |
The details of the current account. |
|
| UseOssSize |
integer |
The storage space used in Object Storage Service (OSS). Unit: bytes. |
234 |
| UseInstanceNum |
integer |
The number of used instances. |
125 |
| InstanceNum |
integer |
The number of instances in the current account. |
32 |
| ChargeType |
string |
The billing method for the DSC service for the current account. Valid values:
|
PREPAY |
| Authed |
boolean |
Specifies whether the account has authorized DSC through Resource Access Management (RAM). Valid values:
|
true |
| LabStatus |
integer |
Specifies whether the Asset Lab feature is enabled. Valid values:
|
1 |
| RemainDays |
integer |
The number of days remaining in the protection period for assets in the current account. |
131 |
| Trail |
boolean |
Specifies whether the account is using a trial of the DSC service. Valid values:
|
true |
| InstanceId |
string |
The ID of the DSC instance purchased by the Alibaba Cloud account. |
sddp-cn-**** |
| AccessKeyId |
string |
The AccessKey ID that is authorized to access DSC. |
yourAccessKeyID |
| Purchased |
boolean |
Specifies whether the account has purchased the DSC service. Valid values:
|
true |
| DataManagerRole |
integer |
The data manager role of the account. Valid values:
|
1 |
| ReleaseDays |
integer |
The number of days from service expiration to service release. Unit: days. |
15 |
| AuditClosable |
boolean |
Specifies whether SQL Insights can be disabled. Valid values:
|
true |
| AuditReleasable |
boolean |
Specifies whether SQL Insights can be released. Valid values:
|
true |
| ReleaseTime |
integer |
The timestamp when the service is released. Unit: milliseconds. |
15000 |
| InstanceTotalCount |
integer |
The total number of instances. |
10 |
| OssTotalSize |
integer |
The total storage capacity of Object Storage Service (OSS). Unit: bytes. |
2048 |
| UseAgentAudit |
boolean |
Specifies whether the agent audit feature has been used. Valid values:
|
1 |
| ProtectionDays |
integer |
The total number of days that assets have been protected. |
22 |
| AssetRoleAuthed |
boolean |
Specifies whether the account has granted DSC the service role required for asset synchronization. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "769FB3C1-F4C9-42DF-9B72-7077A8989C13",
"UserStatus": {
"UseOssSize": 234,
"UseInstanceNum": 125,
"InstanceNum": 32,
"ChargeType": "PREPAY",
"Authed": true,
"LabStatus": 1,
"RemainDays": 131,
"Trail": true,
"InstanceId": "sddp-cn-****",
"AccessKeyId": "yourAccessKeyID",
"Purchased": true,
"DataManagerRole": 1,
"ReleaseDays": 15,
"AuditClosable": true,
"AuditReleasable": true,
"ReleaseTime": 15000,
"InstanceTotalCount": 10,
"OssTotalSize": 2048,
"UseAgentAudit": true,
"ProtectionDays": 22,
"AssetRoleAuthed": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.