All Products
Search
Document Center

Data Security Center:CreateDataLimit

Last Updated:Oct 17, 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sddp:CreateDataLimitcreate
  • All Resources
    *
    none
none

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