Disassociates a network ACL from a VSwitch.

Debug

Use API Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes UnassociateNetworkAcl

The name of this action. Value: UnassociateNetworkAcl.

NetworkAclId String Yes nacl-a2do9e413e0spxxxxxxxx

The ID of the network ACL.

RegionId String Yes cn-hangzhou

The region to which the network ACL belongs.

To query the region ID, call DescribeRegions.

Resource.N.ResourceId String No vsw-bp1de348lntdwxxxxxxxx

The ID of the associated resource.

Resource.N.ResourceType String No VSwitch

The type of the associated resource.

Response parameters

Parameter Type Example value Description
RequestId String AD024BAA-2D91-48FD-810B-8FB7489B6EE6

The ID of the request.

Examples

Request example


        https://vpc.aliyuncs.com/?Action=UnassociateNetworkAcl
        &NetworkAclId=nacl-a2do9e413e0spxxxxxxxx
        &RegionId=cn-hangzhou
        &<CommonParameters>
      

Response example

XML format

<UnassociateNetworkAclResponse>
        <RequestId>AD024BAA-2D91-48FD-810B-8FB7489B6EE6</RequestId>
        </UnassociateNetworkAclResponse>
      

JSON format

{
        "RequestId":"AD024BAA-2D91-48FD-810B-8FB7489B6EE6"
        }

Error codes

HTTP status code Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. An error occurred while the request was being processed.

See common error codes