Queries a list of data assets.
Operation description
Queries the list of authorized or unauthorized data assets based on the AuthStatus parameter to help you understand the authorization status of your data assets.
This operation is no longer used in the new console.
QPS limit
Each user can call this operation up to 10 times per second. If this limit is exceeded, API calls are throttled, which may affect your business.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeInstanceSources |
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 |
| PageSize |
integer |
No |
The number of entries per page in a paginated query. Default value: 10. |
10 |
| CurrentPage |
integer |
No |
The page number. Default value: 1. |
1 |
| ServiceRegionId |
string |
No |
The region where the asset is located. For more information, see Supported regions. |
cn-hangzhou |
| EngineType |
string |
No |
The database engine type. Valid values:
|
MySQL |
| InstanceId |
string |
No |
The instance ID. |
instance-demo-**** |
| ProductId |
integer |
No |
The product type ID to query. Valid values:
|
1 |
| ProductCode |
string |
No |
The name of the product to query. Valid values: MaxCompute, OSS, ADS, OTS, and RDS. |
MaxCompute |
| AuditStatus |
integer |
No |
The audit status. Valid values:
|
1 |
| SearchType |
string |
No |
The type of the fuzzy search for data assets. Valid values:
|
InstanceId |
| SearchKey |
string |
No |
The keyword for the fuzzy search of data assets. |
1 |
| AuthStatus |
integer |
No |
The authorization status of the data asset instance.
|
0 |
| FeatureType |
integer |
No |
This parameter is deprecated. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
5A7E8FB9-5011-5A90-97D9-AE587047**** |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of assets. |
2 |
| Items |
array<object> |
A list of assets. |
|
|
object |
A list of assets. |
||
| LastModifyUserId |
string |
The ID of the account that last modified the asset. |
demo |
| PasswordStatus |
integer |
The status of the password. Valid values:
|
1 |
| EngineType |
string |
The database engine type. Valid values:
|
MySQL |
| TenantName |
string |
The name of the tenant. |
user1 |
| InstanceId |
string |
The instance ID. |
rm-**** |
| InstanceDescription |
string |
The description of the instance. |
instance test |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DbName |
string |
The name of the database to which the asset belongs. |
demo |
| LastModifyTime |
integer |
The timestamp when the asset was last modified. Unit: milliseconds. |
1625587423000 |
| RegionName |
string |
The name of the region. |
cn-hangzhou |
| CanModifyUserName |
boolean |
Indicates whether the username and password can be modified. Valid values:
|
true |
| LogStoreDay |
integer |
The storage duration of raw logs. Unit: days. |
30 |
| GmtCreate |
integer |
The time when the asset was created. This value is a UNIX timestamp. Unit: milliseconds. |
1625587423000 |
| AutoScan |
integer |
Indicates whether automatic scanning for sensitive data is enabled. Valid values:
|
0 |
| ProductId |
integer |
The product type ID. Valid values:
|
2 |
| InstanceSize |
integer |
The size of the instance. This parameter is valid only for OSS assets. Unit: bytes. |
409600 |
| UserName |
string |
The username of the account. |
User01 |
| AuditStatus |
integer |
The audit authorization status. Valid values:
|
1 |
| Id |
integer |
The unique ID of the asset. |
1 |
| TenantId |
string |
The tenant ID. |
11 |
| Enable |
integer |
Indicates whether sensitive data detection is enabled for the asset. Valid values:
|
1 |
| CheckStatus |
integer |
The data check status. Valid values:
|
3 |
| DatamaskStatus |
integer |
The status of data masking authorization. Valid values:
|
1 |
| ErrorMessage |
string |
The reason for the failure. |
password error |
| SamplingSize |
integer |
The sensitive data sampling size. Valid values: 0, 5, and 10. Unit: number of entries. |
10 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "5A7E8FB9-5011-5A90-97D9-AE587047****",
"PageSize": 10,
"TotalCount": 2,
"Items": [
{
"LastModifyUserId": "demo",
"PasswordStatus": 1,
"EngineType": "MySQL",
"TenantName": "user1",
"InstanceId": "rm-****",
"InstanceDescription": "instance test",
"RegionId": "cn-hangzhou",
"DbName": "demo",
"LastModifyTime": 1625587423000,
"RegionName": "cn-hangzhou",
"CanModifyUserName": true,
"LogStoreDay": 30,
"GmtCreate": 1625587423000,
"AutoScan": 0,
"ProductId": 2,
"InstanceSize": 409600,
"UserName": "User01",
"AuditStatus": 1,
"Id": 1,
"TenantId": "11",
"Enable": 1,
"CheckStatus": 3,
"DatamaskStatus": 1,
"ErrorMessage": "password error",
"SamplingSize": 10
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.