All Products
Search
Document Center

Security Center:DeleteContainerDefenseRule

Last Updated:Feb 20, 2024

Deletes a rule for non-image program defense.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleIdsarrayNo

The IDs of the rules that you want to delete.

Note You can call the ListContainerDefenseRule operation to query the rule IDs.
longNo

The rule ID.

214

Response parameters

ParameterTypeDescriptionExample
object

PlainResult

Datalong

The number of deleted rules.

1
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The status code that is returned. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.

200
Messagestring

The returned message.

successful
RequestIdstring

The request ID.

47365EC5-**-6DEA1788EB11
HttpStatusCodeinteger

The HTTP status code. The value 200 indicates that the request was successful.

200

Examples

Sample success responses

JSONformat

{
  "Data": 1,
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "47365EC5-**-6DEA1788EB11",
  "HttpStatusCode": 200
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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

Change history

Change timeSummary of changesOperation
2023-11-10The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 500