All Products
Search
Document Center

Key Management Service:DeleteNetworkRule

更新時間:Jan 08, 2024

Deletes a network access rule.

Before you delete a network access rule, make sure that the network access rule is not bound to permission policies. Otherwise, related applications cannot access Key Management Service (KMS).

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 DeleteNetworkRule

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

Name String Yes networkrule_test

The name of the network access rule that you want to delete.

Response parameters

Parameter

Type

Example

Description

RequestId String 3bf02f7a-015b-4f93-be0f-cc043fda2d4

The ID of the request, which is used to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteNetworkRule
&Name=networkrule_test
&<Common request parameters>

Sample success responses

XML format

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

<DeleteNetworkRuleResponse>
    <RequestId>3bf02f7a-015b-4f93-be0f-cc043fda2d4</RequestId>
</DeleteNetworkRuleResponse>

JSON format

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

{
  "RequestId" : "3bf02f7a-015b-4f93-be0f-cc043fda2d4"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter is not valid. The specified parameter is invalid.

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