Disassociates a network access control list (ACL) from a VSwitch.

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 UnassociateNetworkAcl

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

NetworkAclId String Yes nacl-a2do9e413e0spxxxxxxxx

The description of the network ACL.

RegionId String Yes cn-hangzhou

The region where the network ACL is deployed. You can call the DescribeRegions operation to query the region IDs.

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 Description
RequestId String AD024BAA-2D91-48FD-810B-8FB7489B6EE6

The ID of the request.

Examples

Sample requests


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

Sample success responses

XML format

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

JSON format

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

Error codes

HttpCode Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. The error message returned because unknown errors have occurred.

For a list of error codes, visit the API Error Center.