Call SetupDrdsParams to configure instance parameters.

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 SetupDrdsParams The parameter specified by the system. Value: SetupDrdsParams.
DrdsInstanceId String Yes drds*********** The ID of the instance.
ParamLevel String Yes DB The level of the parameter. Valid values:
  • INSTANCE: INSTANCE
  • DB: The database type.
RegionId String No cn-hangzhou The region ID of the destination instance.
Data.N.ParamVariableName String No FORBID_EXECUTE_DML_ALL The name of the parameter variable.
Data.N.ParamValue String No true The value of the parameter.
Data.N.DbName String No test_db The database name corresponding to the parameter.
Note This parameter is valid only for database-level parameters.
Data.N.ParamType String No ATOM The type of the parameter. Valid values:
  • ATOM: the configuration item in the layer-3 data source.
  • CONFIG: the configuration item in ConfigServer.
  • DIAMOND: the configuration item in Diamond.
Data.N.ParamRanges String No [true|false] The range of the parameter value.

Response parameters

Parameter Type Example Description
Data Boolean true

Indicates whether SQL audit was disabled for the DRDS database.

RequestId String A3140FC7-B78B-4D8E-B0C8-926D28******

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://drds.aliyuncs.com/? Action=SetupDrdsParams
&DrdsInstanceId=drds***********
&ParamLevel=DB
&<Common request parameters>

Sample success responses

XML format

<RequestId>A3140FC7-B78B-4D8E-B0C8-926D28******</RequestId>
<Data>true</Data>
<Success>true</Success>

JSON format

{
    "RequestId":"A3140FC7-B78B-4D8E-B0C8-926D28******",
    "Data":true,
    "Success":true
}

Error codes

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