Change the Name of a Network ACL

Last updated: 2019-12-02 11:26:27

PDF

1. API Description

This API (ModifyNetworkAcl) is used to change the name of a network ACL.
API request domain name: vpc.api.qcloud.com

2. Input Parameters

Below is a list of API request parameters. You need to add common request parameters to your request when calling this API. For more information, see the Common Request Parameters page. The Action field for this API is ModifyNetworkAcl.

Parameter name Required Type Description
vpcId Yes String ID of the VPC to which the subnet belongs, which can be the vpcId or unVpcId (recommended), for example vpc-ktom9wg5. You can query this ID through the API DescribeVpcEx.
networkAclId Yes String Network ACL ID assigned by the system, for example acl-cva92t60. You can query this ID through the API DescribeNetworkAcl.
networkAclName Yes String Network ACL name, which cannot exceed 60 characters.

3. Output Parameters

Parameter name Type Description
code Int Error code. 0: Successful; other values: Failed.
message String Error message.

4. Error Codes

The following error codes only include business logic error codes for this API. For additional common error codes, see VPC Error Codes.

Error code Description
InvalidVpc.NotFound Invalid VPC. This error code indicates that the VPC does not exist. In this case, verify whether the resource information that you entered is correct. You can query the VPC through the API DescribeVpcEx.
InvalidNetworkAclID.NotFound Invalid network ACL ID. This error code indicates that the Network ACL ID does not exist. In this case, verify whether the resource information that you entered is correct. You can query this ID through the API DescribeNetworkAcl.
InvalidNetworkAclName Invalid network ACL name. A valid ACL name cannot exceed 60 characters.

5. Sample

Input

  https://vpc.api.qcloud.com/v2/index.php?Action=ModifyNetworkAcl
  &<Common Request Parameters>
  &vpcId=vpc-ktom9wg5
  &networkAclId=acl-cva92t60
  &networkAclName=barrytt

Output


{
    "code": 0,
    "message": ""
}