Queries a list of data assets.
Operation description
You can query a list of unauthorized or authorized data assets based on the value of AuthStatus.
This operation is no longer used for the KMS console of the new version.
QPS limits
This operation can be called up to 10 times per second for each Alibaba Cloud account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sddp:DescribeInstanceSources | get |
|
| 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. Default value: 10. | 10 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
ServiceRegionId | string | No | The region in which the data asset resides. For more information, see Supported regions. | cn-hangzhou |
EngineType | string | No | The type of the database engine. Valid values: MySQL, MariaDB, Oracle, PostgreSQL, and SQLServer. | MySQL |
InstanceId | string | No | The ID of the instance. | instance-demo-**** |
ProductId | long | No | The ID of the service to which the data asset to query belongs. Valid values: 1, 2, 3, 4, and 5. The value 1 indicates MaxCompute. The value 2 indicates Object Storage Service (OSS). The value indicates AnalyticDB for MySQL. The value 4 indicates Tablestore. The value 5 indicates ApsaraDB RDS. | 1 |
ProductCode | string | No | The name of the service to which the data asset to query belongs. Valid values: MaxCompute, OSS, ADS, OTS, and RDS. | MaxCompute |
AuditStatus | integer | No | Specifies whether to enable the security audit feature. Valid values:
| 1 |
SearchType | string | No | The data asset type based on which a fuzzy search is performed.
| InstanceId |
SearchKey | string | No | The content based on which a fuzzy search is performed. | 1 |
AuthStatus | integer | No | Specifies whether DSC is authorized to access the data asset.
| 0 |
FeatureType | integer | No | This parameter is deprecated. | 2 |
Response parameters
Examples
Sample success responses
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": "Test\n",
"RegionId": "cn-hangzhou",
"DbName": "demo",
"LastModifyTime": 1625587423000,
"RegionName": "China (Hangzhou)\n",
"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": "The password is invalid.\n",
"SamplingSize": 10
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-03-25 | The request parameters of the API has changed | View Change Details |