All Products
Search
Document Center

:DeleteQualityRule

更新時間:May 16, 2024

Deletes a monitoring rule.

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

DeleteQualityRule

The operation that you want to perform. Set the value to DeleteQualityRule.

ProjectName

String

Yes

autotest

The name of the compute engine instance or data source.

RuleId

Long

Yes

1234

The monitoring rule ID.

ProjectId

Long

No

10000

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace Management page to obtain the workspace ID.

Response parameters

Parameter

Type

Example

Description

HttpStatusCode

Integer

200

The HTTP status code.

Data

Boolean

true

Indicates whether the monitoring rule is deleted.

ErrorMessage

String

You have no permission.

The error message.

RequestId

String

6d739ef6-098a-47****

The request ID.

ErrorCode

String

401

The error code.

Success

Boolean

true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteQualityRule
&ProjectName=autotest
&RuleId=1234
&ProjectId=10000
&<Common request parameters>

Sample success responses

XML format

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

<DeleteQualityRuleResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>true</Data>
    <ErrorMessage>You have no permission.</ErrorMessage>
    <RequestId>6d739ef6-098a-47****</RequestId>
    <ErrorCode>401</ErrorCode>
    <Success>true</Success>
</DeleteQualityRuleResponse>

JSON format

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

{
  "HttpStatusCode" : 200,
  "Data" : true,
  "ErrorMessage" : "You have no permission.",
  "RequestId" : "6d739ef6-098a-47****",
  "ErrorCode" : 401,
  "Success" : true
}

Error codes

For a list of error codes, see Service error codes.