Modifies configuration items for a data asset that you authorize Data Security Center (DSC) to access.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDataLimit

The operation that you want to perform.

Set the value to ModifyDataLimit.

Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese.
  • en: English. This is the default value.
Id Long Yes 11

The unique ID of the data asset for which you want to modify configuration items.

Note You can call the DescribeDataLimits operation to query the ID of the data asset.
ResourceType Integer Yes 5

The type of the 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
ServiceRegionId String No cn-hangzhou

The region ID of the data asset. 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)
UserName String No User01

The username used to log on to the ApsaraDB RDS database that you authorize DSC to access.

Password String No ********

The password used to log on to the ApsaraDB RDS database that you authorize DSC to access.

ModifyPassword Boolean No true

Specifies whether to change the username and password that are used to log on to the database. Valid values:

  • true: yes
  • false: no
AuditStatus Integer No 1

Specifies whether to enable the log auditing feature. Valid values:

  • 0: no
  • 1: yes
LogStoreDay Integer No 30

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

  • 30
  • 90
  • 180
  • 365
EngineType String No MySQL

The type of the database engine. Valid values:

  • MySQL
  • SQLServer
Port Integer No 3306

The port that is used to connect to the database.

AutoScan Integer No 1

Specifies whether to automatically trigger a re-scan after you modify a rule. Valid values:

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

Common request parameters must be included in all DSC API requests. For more information about common request parameters, see Common parameters. For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String 7C3AC882-E5A8-4855-BE77-B6837B695EF1

The ID of the request. You can troubleshoot issues based on the ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyDataLimit
&Lang=zh
&Id=11
&ResourceType=5
&ServiceRegionId=cn-hangzhou
&UserName=User01
&Password=********
&ModifyPassword=true
&AuditStatus=1
&LogStoreDay=30
&EngineType=MySQL
&Port=3306
&AutoScan=1
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDataLimitResponse>
    <RequestId>7C3AC882-E5A8-4855-BE77-B6837B695EF1</RequestId>
</ModifyDataLimitResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

For a list of error codes, visit the API Error Center.