You can call the CreateDataLimit operation to grant permissions to scan databases, projects, and buckets.
Operation description
You can use this operation to grant permissions to scan your data assets. This helps improve the security of your data assets.
QPS limits
The queries per second (QPS) limit for a single user is 10 calls per second. If you exceed this limit, the system throttles your API calls. This may affect your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:CreateDataLimit |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
integer |
Yes |
The service to which the data asset belongs. Valid values:
|
1 |
| ServiceRegionId |
string |
No |
The region where the data asset is located. Valid values:
|
cn-hangzhou |
| ParentId |
string |
No |
The name of the data asset. The name consists of the instance ID and the database name, separated by a period (.). |
rm-****34.******name |
| UserName |
string |
No |
The username for the database. |
y*****m |
| Password |
string |
No |
The password to access the database. |
p****d |
| AuditStatus |
integer |
No |
Specifies whether to enable auditing. Valid values:
|
1 |
| AutoScan |
integer |
No |
Specifies whether to automatically trigger a rescan when a rule changes. Valid values:
Note
If you enable this feature, a rule change triggers a full scan of all data in the data source. |
1 |
| LogStoreDay |
integer |
No |
The retention period of raw logs after you enable auditing. Unit: days. Valid values:
|
30 |
| EngineType |
string |
No |
The database engine type. Valid values:
|
MySQL |
| Port |
integer |
No |
The database connection port. |
3306 |
| OcrStatus |
integer |
No |
Specifies whether to enable Optical Character Recognition (OCR). Valid values:
|
0 |
| EventStatus |
integer |
No |
Specifies whether to enable anomalous activity detection. Valid values:
|
1 |
| Enable |
integer |
No |
Specifies whether to enable sensitive data detection. Valid values:
Note
The default value is 1 for the first authorization. For later authorizations, the value from the previous authorization is used. Set this parameter to 1 to detect sensitive data. |
1 |
| SamplingSize |
integer |
No |
The number of sensitive data samples to return after a scan. Valid values:
Note
The default value is 10. |
0 |
| CertificatePermission |
string |
No |
The permission level of the credential. Valid values:
|
ReadOnly |
| FeatureType |
integer |
No |
This parameter is deprecated. |
2 |
| SourceIp |
string |
No |
This parameter is deprecated. |
106.11.XX.XX |
| InstantlyScan |
boolean |
No |
Specifies whether to immediately scan the authorized data asset. Valid values:
|
false |
| Lang |
string |
No |
The language of the content that is returned in the response. Default value: zh_cn. Valid values:
|
zh_cn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Id |
integer |
The ID of the authorized data asset. |
1 |
| RequestId |
string |
The ID of the request. |
7C3AC882-E5A8-4855-BE77-B6837B695EF1 |
Examples
Success response
JSON format
{
"Id": 1,
"RequestId": "7C3AC882-E5A8-4855-BE77-B6837B695EF1"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.