All Products
Search
Document Center

Database Autonomy Service:DisableAutoThrottleRules

最終更新日:Dec 23, 2024

Disables the automatic SQL throttling feature for multiple database instances at a time.

Operation description

If you use an SDK to call operations of Database Autonomy Service (DAS), you must set the region ID to cn-shanghai.

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
hdm:DisableAutoThrottleRulesnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ConsoleContextstringNo

The reserved parameter.

None
InstanceIdsstringYes

The database instance IDs.

Note Set this parameter to a JSON array that consists of multiple instance IDs. Separate instance IDs with commas (,). Example: ['Instance ID1','Instance ID2'].
['rm-2ze8g2am97624****','rm-2ze9xrhze0709****']

Response parameters

ParameterTypeDescriptionExample
object
Codelong

The HTTP status code returned.

200
Messagestring

The returned message.

Note If the request was successful, Successful is returned. If the request failed, an error message such as an error code is returned.
Successful
Dataobject

The returned data.

TotalInstanceCountlong

The total number of database instances.

2
ConfigSuccessInstanceCountlong

The number of database instances for which the automatic SQL throttling feature is disabled.

1
ConfigFailInstanceCountlong

The number of database instances for which the automatic SQL throttling feature failed to be disabled.

1
ConfigSuccessInstanceListarray<object>

The database instances for which the automatic SQL throttling feature is disabled.

configSuccessInstanceListobject
ConfigSuccessboolean

Indicates whether the automatic SQL throttling feature is disabled. Valid values:

  • true

  • false

true
InstanceIdstring

The database instance ID.

rm-2ze8g2am97624****
ConfigFailInstanceListarray<object>

The database instances for which the automatic SQL throttling feature failed to be disabled.

configFailInstanceListobject
ConfigSuccessboolean

Indicates whether the automatic SQL throttling feature is disabled. Valid values:

  • true

  • false

false
InstanceIdstring

The database instance ID.

rm-2ze9xrhze0709****
ErrorMessagestring

The error message returned.

cannot found instance by rm-2ze9xrhze0709****
RequestIdstring

The request ID.

B6D17591-B48B-4D31-9CD6-9B9796B2****
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "Successful",
  "Data": {
    "TotalInstanceCount": 2,
    "ConfigSuccessInstanceCount": 1,
    "ConfigFailInstanceCount": 1,
    "ConfigSuccessInstanceList": [
      {
        "ConfigSuccess": true,
        "InstanceId": "rm-2ze8g2am97624****"
      }
    ],
    "ConfigFailInstanceList": [
      {
        "ConfigSuccess": false,
        "InstanceId": "rm-2ze9xrhze0709****",
        "ErrorMessage": "cannot found instance by rm-2ze9xrhze0709****"
      }
    ]
  },
  "RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Success": true
}

Error codes

HTTP status codeError codeError message
400InvalidParamsThe request parameters are invalid.
403NoPermissionYou are not authorized to do this action.

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

Change history

Change timeSummary of changesOperation
2023-11-17The Error code has changedView Change Details