All Products
Search
Document Center

Key Management Service:UpdateNetworkRule

Last Updated:Sep 23, 2025

Updates a network control rule.

Operation description

  • For more information about the access policy required for a Resource Access Management (RAM) user or RAM role to call this operation, see Access control.

  • You can only modify the private IP addresses and description of a network control rule. The name and network type cannot be modified.

  • When you update a network control rule, the access policies attached to it are also updated. Proceed with caution.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

The name of the network control rule that you want to update.

networkrule_test

Description

string

No

The updated description.

Create by kst-hzz62ee817bvyyr5****

SourcePrivateIp

string

No

The updated private IP addresses or private CIDR blocks. Separate multiple IP addresses or private CIDR blocks with a comma (,).

["192.10.XX.XX","192.168.XX.XX/24"]

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot issues.

3bf02f7a-015b-4f34-be0f-cc043fda2d85

Examples

Success response

JSON format

{
  "RequestId": "3bf02f7a-015b-4f34-be0f-cc043fda2d85"
}

Error codes

HTTP status code

Error code

Error message

Description

400

InvalidParameter

The specified parameter is not valid.

An invalid value is specified for the parameter.

404

InvalidAccessKeyId.NotFound

The Access Key ID provided does not exist in our records.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.