All Products
Search
Document Center

Data Security Center:CreateDataLimit

Last Updated:Nov 27, 2025

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: MaxCompute

  • 2: OSS

  • 3: ADS

  • 4: OTS

  • 5: RDS

1

ServiceRegionId

string

No

The region where the data asset is located. 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

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:

  • 0: Do not enable auditing.

  • 1: Enable auditing.

1

AutoScan

integer

No

Specifies whether to automatically trigger a rescan when a rule changes. Valid values:

  • 0: Do not trigger an automatic scan.

  • 1: Trigger an automatic scan.

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

  • 90

  • 180

  • 365

30

EngineType

string

No

The database engine type. Valid values:

  • MySQL

  • SQLServer

MySQL

Port

integer

No

The database connection port.

3306

OcrStatus

integer

No

Specifies whether to enable Optical Character Recognition (OCR). Valid values:

  • 1: Enabled.

  • 0: Disabled.

0

EventStatus

integer

No

Specifies whether to enable anomalous activity detection. Valid values:

  • 0: Disabled.

  • 1: Enabled. This is the default value.

1

Enable

integer

No

Specifies whether to enable sensitive data detection. Valid values:

  • 1: Enabled.

  • 0: Disabled.

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:

  • 0

  • 5

  • 10

Note

The default value is 10.

0

CertificatePermission

string

No

The permission level of the credential. Valid values:

  • ReadOnly: Read-only permissions.

  • ReadWrite: Read and write permissions.

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: Do not scan immediately.

  • true: Scan immediately.

false

Lang

string

No

The language of the content that is returned in the response. Default value: zh_cn. Valid values:

  • zh_cn: Chinese

  • en_us: English

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.