UpdateNetworkRule

Updated at:

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

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

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 for a complete list.

Release notes

See 变更详情 for a complete list.