Skip to main content

AssociateNetworkAcl

Description

call the AssociateNetworkAcl interface to bind the network ACL to the switch.

Request Method

POST

Request Path

/apsara/route/Vpc/AssociateNetworkAcl

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Resource.N.ResourceTypeBODYstringNoVSwitchThe type of associated resource, value:VSwitch(switch).
NetworkAclIdBODYstringYesnacl-a2do9e413e0spxscd****ID of network ACL.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface.
Resource.N.ResourceIdBODYstringNovsw-bp1de348lntdwbgnh****ID of the associated resource.
ClientTokenBODYstringNo123e4567-e89b-12d3-a456-426655440000Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7request ID.

Example

Successful Response example

{
"RequestId":"4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}