Queries a list of data assets.
Operation description
You can call this operation to query a list of authorized or unauthorized data assets based on the value of the AuthStatus parameter. This lets you track the authorization status of your data assets.
This operation is no longer used in the new console.
QPS limits
The queries per second (QPS) limit for this operation is 10 for each user. If you exceed this limit, your calls are throttled, which can affect your business. We recommend that you plan your calls to stay within this limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeInstanceSources |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:
|
zh_cn |
| PageSize |
integer |
No |
The number of entries to return on each page. The default value is 10. |
10 |
| CurrentPage |
integer |
No |
The page number of the page to return. The default value is 1. |
1 |
| ServiceRegionId |
string |
No |
The region where the asset resides. For more information, see Supported regions. |
cn-hangzhou |
| EngineType |
string |
No |
The type of the database engine. Valid values:
|
MySQL |
| InstanceId |
string |
No |
The ID of the instance. |
instance-demo-**** |
| ProductId |
integer |
No |
The ID of the product to which the data asset belongs. Valid values:
|
1 |
| ProductCode |
string |
No |
The name of the product to which the data asset belongs. Valid values include MaxCompute, OSS, ADS, OTS, and RDS. |
MaxCompute |
| AuditStatus |
integer |
No |
The audit status. Valid values:
|
1 |
| SearchType |
string |
No |
The type of the search for a fuzzy match. Valid values:
|
InstanceId |
| SearchKey |
string |
No |
The keyword for a fuzzy search. |
1 |
| AuthStatus |
integer |
No |
The authorization status of the data asset instance. Valid values:
|
0 |
| FeatureType |
integer |
No |
This parameter is deprecated. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number of the returned page. |
1 |
| RequestId |
string |
The ID of the request. |
5A7E8FB9-5011-5A90-97D9-AE587047**** |
| PageSize |
integer |
The number of assets returned on each page. |
10 |
| TotalCount |
integer |
The total number of assets that are queried. |
2 |
| Items |
array<object> |
A list of the queried assets. |
|
|
object |
A list of the queried assets. |
||
| LastModifyUserId |
string |
The ID of the account that last modified the settings. |
demo |
| PasswordStatus |
integer |
The status of the password. Valid values:
|
1 |
| EngineType |
string |
The type of the database engine. Valid values:
|
MySQL |
| TenantName |
string |
The name of the tenant. |
user1 |
| InstanceId |
string |
The ID of the instance. |
rm-**** |
| InstanceDescription |
string |
The description of the instance. |
测试使用 |
| RegionId |
string |
The ID of the region. |
cn-hangzhou |
| DbName |
string |
The name of the database to which the asset belongs. |
demo |
| LastModifyTime |
integer |
The time when the settings were last modified. This value is a UNIX timestamp. Unit: milliseconds. |
1625587423000 |
| RegionName |
string |
The name of the region. |
杭州 |
| CanModifyUserName |
boolean |
Indicates whether the username and password can be changed. Valid values:
|
true |
| LogStoreDay |
integer |
The retention period 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 ID of the product to which the data asset belongs. 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 ID of the tenant. |
11 |
| Enable |
integer |
Indicates whether sensitive data detection is enabled for the asset. Valid values:
|
1 |
| CheckStatus |
integer |
The data detection status. Valid values:
|
3 |
| DatamaskStatus |
integer |
The status of the data masking permission. Valid values:
|
1 |
| ErrorMessage |
string |
The reason for the failure. |
password error |
| SamplingSize |
integer |
The number of sensitive data samples. Valid values: 0, 5, and 10. Unit: 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": "测试使用",
"RegionId": "cn-hangzhou",
"DbName": "demo",
"LastModifyTime": 1625587423000,
"RegionName": "杭州",
"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.