Call DeleteQualityRule delete a rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Required | DeleteQualityRule |
The operation that you want to perform. |
ProjectName | String | Required | autotest |
The name of the database engine or data source. |
RegionId | String | Required | cn-shanghai |
The ID of the region where your project resides. |
RuleId | Long | Yes | 1234 |
The ID of the rule. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Boolean | true |
Indicates whether the deletion was successful. |
ErrorCode | String | 401 |
The error code. |
ErrorMessage | String | You have no permission. |
The returned message. |
HttpStatusCode | Integer | 200 |
The HTTP status code. |
RequestId | String | 6d739ef6-098a-47**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call is successful. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DeleteQualityRule
&ProjectName=autotest
&RegionId=cn-shanghai
&RuleId=1234
&<Common request parameters>
Sample success responses
XML
format
<RequestId>6d739ef6-098a-47****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>true</Data>
<ErrorCode>401</ErrorCode>
<ErrorMessage>You have no permission. </ErrorMessage>
<Success>true</Success>
JSON
format
{
"RequestId": "6d739ef6-098a-47****",
"HttpStatusCode": 200,
"Data": true,
"ErrorCode": 401,
"ErrorMessage": "You have no permission.",
"Success": true
}
Errors
For a list of error codes, visit the API Error Center.