You can call this operation to authorize Sensitive Data Discovery and Protection (SDDP) to scan a data asset, such as a MaxCompute project, a Relational Database Service (RDS) database, or an Object Storage Service (OSS) bucket.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateDataLimit |
The operation that you want to perform. Set the value to CreateDataLimit. |
ResourceType | Integer | Yes | 1 |
The type of the service to which the data asset belongs. Valid values:
|
Lang | String | No | zh |
The language of the request and response. Valid values:
|
ServiceRegionId | String | No | cn-hangzhou |
The region ID of the data asset. Valid values:
|
ParentId | String | No | test-11** |
The name of the data asset. |
UserName | String | No | yhm |
The username used to connect to the database. |
Password | String | No | passwd |
The password used to connect to the database. |
AuditStatus | Integer | No | 1 |
Specifies whether to enable the log auditing feature. Valid values:
|
AutoScan | Integer | No | 1 |
Specifies whether to automatically trigger a re-scan after you modify a rule.
Note When a re-scan is triggered, SDDP scans all data in your data asset and charges you
for a full scan.
|
LogStoreDay | Integer | No | 30 |
The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values:
|
EngineType | String | No | MySQL |
The type of the database. Valid values:
|
Port | Integer | No | 3306 |
The port used to connect to the database. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Id | Integer | 1 |
The ID of the data asset. |
RequestId | String | 7C3AC882-E5A8-4855-BE77-B6837B695EF1 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateDataLimit
&ResourceType=1
&<Common request parameters>
Sample success responses
XML
format
<CreateDataLimitResponse>
<Id>1</Id>
<RequestId>7C3AC882-E5A8-4855-BE77-B6837B695EF1</RequestId>
</CreateDataLimitResponse>
JSON
format
{
"Id":1,
"RequestId":"7C3AC882-E5A8-4855-BE77-B6837B695EF1"
}
Error codes
For a list of error codes, visit the API Error Center.