Queries the data assets such as instances, databases, or buckets that Data Security Center (DSC) is authorized to access.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Valid values:
| zh |
PageSize | integer | No | The number of entries to return on each page. | 10 |
CurrentPage | integer | No | The number of the page to return. | 1 |
ResourceType | integer | No | The type of the service to which the data asset to be queried belongs. Valid values:
| 1 |
ParentId | string | No | The parent ID of the data asset to be queried. Valid values:
| 1112 |
ServiceRegionId | string | No | The region in which the data asset resides. | cn-hangzhou |
CheckStatus | integer | No | The data detection status. Valid values:
| 3 |
AuditStatus | integer | No | Specifies whether to enable the security audit feature. Valid values:
| 1 |
EngineType | string | No | The type of the database engine. Valid values include MySQL, SQLServer, Oracle, PostgreSQL, and MongoDB. | MySQL |
DatamaskStatus | integer | No | Specifies whether DSC has the data de-identification permissions on the data asset. Valid values:
| 1 |
Enable | integer | No | Specifies whether DSC has the data detection permissions on the data asset. Valid values:
| 1 |
StartTime | long | No | The beginning of the time range to query The value is a UNIX timestamp. Unit: milliseconds. | 1616068534877 |
EndTime | long | No | The end of the time range to query The value is a UNIX timestamp. Unit: milliseconds. | 1616068534877 |
FeatureType | integer | No | This parameter is deprecated. | 2 |
Response parameters
Examples
Sample success responses
JSON
format
{
"CurrentPage": 1,
"RequestId": "769FB3C1-F4C9-42DF-9B72-7077A8989***",
"PageSize": 10,
"TotalCount": 200,
"Items": [
{
"SupportEvent": true,
"ErrorMessage": "The password is invalid.\n",
"CheckStatus": 3,
"LocalName": "China (Hangzhou)\n",
"TenantName": "insta_gram",
"NextStartTime": 1676620236000,
"Port": 3306,
"CheckStatusName": "Connectivity test status\n",
"SamplingSize": 5,
"ParentId": "project",
"DatamaskStatus": 1,
"ProcessTotalCount": 100,
"ResourceType": 5,
"ErrorCode": "connect_network_error",
"OcrStatus": 1,
"LogStoreDay": 30,
"EventStatus": 1,
"SupportScan": true,
"LastFinishedTime": 145600000,
"UserName": "tsts",
"AuditStatus": 1,
"SupportOcr": true,
"EngineType": "MySQL",
"InstanceId": "12332",
"TotalCount": 100,
"InstanceDescription": "123",
"DbVersion": "2.0",
"RegionId": "cn-hangzhou",
"GmtCreate": 145600000,
"SupportAudit": true,
"AutoScan": 1,
"ResourceTypeCode": "RDS",
"SupportDatamask": true,
"ProcessStatus": 3,
"Id": 1,
"Enable": 1,
"SecurityGroupIdList": [
"sg-bp113yf20quxkvy****"
],
"VSwitchIdList": [
"vsw-bp1kk2mtrtey7o4ju****"
],
"VpcId": "vpc-2zevcqke6hh09c41****"
}
]
}
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 | see changesets | ||||
| ||||||
2022-07-18 | API Description Update. The response structure of the API has changed | see changesets | ||||
|