Retrieves a list of authorized MaxCompute, RDS, and OSS data asset instances.
Operation description
When you call the DescribeInstances operation, you can set parameters such as search keywords and the threat level of data asset instances to retrieve a list of instances that meet your requirements.
QPS limit
The queries per second (QPS) limit for a single user for this operation is 10 calls per second. If you exceed this limit, API calls are throttled. This can affect your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeInstances |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Default value: zh_cn. Valid values:
|
zh_cn |
| Name |
string |
No |
The keyword to search for. Fuzzy match is supported. For example, if you enter "data", all data that contains "data" is returned. |
data |
| ProductId |
integer |
No |
The ID of the product to which the data asset instance belongs. You can call the DescribeDataAssets operation to query the product ID. |
1 |
| RiskLevelId |
integer |
No |
The ID of the threat level for the data asset instance. The higher the threat level ID, the more sensitive the data. Valid values:
|
2 |
| RuleId |
integer |
No |
The ID of the sensitive data detection rule that the data asset instance hits. You can call the DescribeRules operation and view the value of the Id parameter in the response to obtain the rule ID. |
1111111 |
| ServiceRegionId |
string |
No |
The region where the data asset instance resides. For more information, see Supported regions. |
cn-hangzhou |
| FeatureType |
integer |
No |
This parameter is deprecated. |
1 |
| ProductCode |
string |
No |
The name of the product to which the data asset instance belongs, such as MaxCompute, OSS, or RDS. For more information about the supported products, see Data assets that can be scanned for sensitive data. |
RDS |
| PageSize |
integer |
No |
The maximum number of data asset instances to return on each page of a paged query. Default value: 10. |
10 |
| CurrentPage |
integer |
No |
The page number of the paged query. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number. |
1 |
| RequestId |
string |
The ID of the request. |
71064826-726F-4ADA-B879-05D8055476FB |
| PageSize |
integer |
The number of data asset instances returned on each page. |
10 |
| TotalCount |
integer |
The total number of data asset instances. |
231 |
| Items |
array<object> |
The details of the data asset instances. |
|
|
array<object> |
|||
| CreationTime |
integer |
The time when the data asset instance was created. The value is a UNIX timestamp. Unit: milliseconds. |
1637226782000 |
| LastFinishTime |
integer |
The time when the last scan of the data asset instance was completed. The value is a UNIX timestamp. Unit: milliseconds. |
1637622793000 |
| Owner |
string |
The Alibaba Cloud account that owns the data asset instance. |
dtdep-239-****** |
| TenantName |
string |
The name of the tenant. |
tenant |
| Protection |
boolean |
The protection status of the data asset instance. Valid values:
|
false |
| DepartName |
string |
The name of the department to which the data asset instance belongs. |
***DemoCenter |
| Labelsec |
boolean |
The security status of the data asset instance. Valid values:
|
true |
| RiskLevelId |
integer |
The ID of the threat level for the data asset instance. The higher the threat level ID, the more sensitive the data.
|
2 |
| ProductId |
string |
The ID of the product to which the data asset instance belongs. |
5 |
| Name |
string |
The name of the data asset instance. |
gxdata |
| TotalCount |
integer |
The total amount of data in the data asset instance. For example, if the data asset is an RDS instance, this parameter indicates the total number of tables in the instance. |
231 |
| InstanceDescription |
string |
The description of the data asset instance. |
instance dscription |
| RuleName |
string |
The name of the sensitive data detection rule that the data asset instance hits. |
*** rule |
| Sensitive |
boolean |
Indicates whether the data asset instance contains sensitive data. Valid values:
|
true |
| RiskLevelName |
string |
The name of the threat level for the data asset instance. |
S1 |
| OdpsRiskLevelName |
string |
This parameter is deprecated. |
1 |
| SensitiveCount |
integer |
The total amount of sensitive data in the data asset instance. For example, if the data asset is an RDS instance, this parameter indicates the total number of sensitive tables in the instance. |
123 |
| Id |
integer |
The unique ID of the data asset instance that is recorded in Data Security Center. |
11111 |
| ProductCode |
string |
The name of the product to which the data asset instance belongs, such as MaxCompute, OSS, or RDS. For more information about the supported products, see Data assets that can be scanned for sensitive data. |
RDS |
| ModelTags |
array<object> |
The list of data labels. |
|
|
object |
The data label object. |
||
| Id |
integer |
The ID of the data label. Valid values:
|
101 |
| Name |
string |
The name of the data label. Valid values:
|
personal sensitive data |
| MemberAliUid |
string |
If multi-account management is enabled and the asset belongs to a member account, this parameter indicates the UID of the member account. |
12567890126 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "71064826-726F-4ADA-B879-05D8055476FB",
"PageSize": 10,
"TotalCount": 231,
"Items": [
{
"CreationTime": 1637226782000,
"LastFinishTime": 1637622793000,
"Owner": "dtdep-239-******",
"TenantName": "tenant",
"Protection": false,
"DepartName": "***DemoCenter",
"Labelsec": true,
"RiskLevelId": 2,
"ProductId": "5",
"Name": "gxdata",
"TotalCount": 231,
"InstanceDescription": "instance dscription",
"RuleName": "*** rule",
"Sensitive": true,
"RiskLevelName": "S1",
"OdpsRiskLevelName": "1",
"SensitiveCount": 123,
"Id": 11111,
"ProductCode": "RDS",
"ModelTags": [
{
"Id": 101,
"Name": "personal sensitive data"
}
],
"MemberAliUid": "12567890126"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.