All Products
Search
Document Center

Data Security Center:CreateDataLimit

Last Updated:Jul 02, 2024

Authorizes Data Security Center (DSC) to scan data assets. The data assets can be a database, a project, or a bucket.

Operation description

You can call this operation to authorize DSC to scan data assets to ensure the security of the data assets.

Limits

You can call this operation up to 10 times per second per account. If the number of the 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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypeintegerYes

The type of service to which the data asset belongs. Valid values:

  • 1 :MaxCompute
  • 2: Object Storage Service (OSS)
  • 3: AnalyticDB for MySQL
  • 4 :Tablestore
  • 5: ApsaraDB RDS
1
ServiceRegionIdstringNo

The region in which the data asset resides. Valid values:

  • cn-beijing: China (Beijing).
  • cn-zhangjiakou: China (Zhangjiakou)
  • cn-huhehaote: China (Hohhot)
  • cn-hangzhou: China (Hangzhou)
  • cn-shanghai: China (Shanghai)
  • cn-shenzhen: China (Shenzhen)
  • cn-hongkong: China (Hong Kong)
cn-hangzhou
ParentIdstringNo

The name of the data asset.

test-11**
UserNamestringNo

The username that is used to access the database.

yhm
PasswordstringNo

The password that is used to access the database.

passwd
AuditStatusintegerNo

Specifies whether to enable the security audit feature. Valid values:

  • 0: no
  • 1: yes
1
AutoScanintegerNo

Specifies whether to automatically trigger a re-scan after a rule is modified. Valid values:

  • 0: no
  • 1: yes
Note When a re-scan is triggered, DSC scans all data in your data asset.
1
LogStoreDayintegerNo

The retention period of raw logs after you enable the security audit feature. Unit: days. Valid values:

  • 30
  • 90
  • 180
  • 365
30
EngineTypestringNo

The database engine that is run by the instance. Valid values:

  • MySQL
  • SQLServer
MySQL
PortintegerNo

The port that is used to connect to the database.

3306
OcrStatusintegerNo

Specifies whether to enable optical character recognition (OCR). Valid values:

  • 1: yes
  • 0: no
0
EventStatusintegerNo

Specifies whether to enable anomalous event detection. Valid values:

  • 0: no
  • 1: yes (default)
1
EnableintegerNo

Specifies whether to enable sensitive data detection. Valid values:

  • 1: yes
  • 0: no
Note If this is your first time to authorize DSC to access the data asset, the default value is 1. If this is not your first time to authorize DSC to access the data asset, the default value is the same as that used in the last authorization operation. Both 1 and 0 are possible.
1
SamplingSizeintegerNo

The number of sensitive data samples that are collected after sensitive data detection is enabled. Valid values:

  • 0
  • 5
  • 10
0
CertificatePermissionstringNo

The permissions. Valid values:

  • ReadOnly: read-only permissions
  • ReadWrite: read and write permissions
ReadOnly
FeatureTypeintegerNo

This parameter is deprecated.

2
SourceIpstringNo

This parameter is deprecated.

39.170.XX.XX
LangstringNo

The language of the content within the request and response. Default value: zh_cn. Valid values:

  • zh_cn: Chinese
  • en_us: English
zh_cn

Response parameters

ParameterTypeDescriptionExample
object
Idinteger

The ID of the data asset.

1
RequestIdstring

The ID of the request.

7C3AC882-E5A8-4855-BE77-B6837B695EF1

Examples

Sample success responses

JSONformat

{
  "Id": 1,
  "RequestId": "7C3AC882-E5A8-4855-BE77-B6837B695EF1"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-02The request parameters of the API has changedView Change Details
2024-03-25The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details
2023-12-06The request parameters of the API has changedView Change Details