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 helps you understand the authorization status of your data assets.
This operation is no longer used in the new console.
QPS limit
The queries per second (QPS) limit for a single user is 10 calls per second. If you exceed this limit, your API calls are throttled. This may affect your business. Make sure to call this operation at a reasonable rate.
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 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. The default value is 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 ID of the product. Valid values:
|
1 |
| ProductCode |
string |
No |
The name of the product. 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 fuzzy search for data assets.
|
InstanceId |
| SearchKey |
string |
No |
The keyword for the fuzzy search. |
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 unique ID of the request, which is used to locate and troubleshoot issues. |
5A7E8FB9-5011-5A90-97D9-AE587047**** |
| PageSize |
integer |
The number of assets on the current 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. |
测试使用 |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DbName |
string |
The name of the database to which the asset belongs. |
demo |
| LastModifyTime |
integer |
The time when the asset was 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 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 ID of the product. 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": "测试使用",
"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.