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
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Resource.N.ResourceType | BODY | string | No | VSwitch | The type of associated resource, value:VSwitch(switch). |
NetworkAclId | BODY | string | Yes | nacl-a2do9e413e0spxscd**** | ID of network ACL. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface. |
Resource.N.ResourceId | BODY | string | No | vsw-bp1de348lntdwbgnh**** | ID of the associated resource. |
ClientToken | BODY | string | No | 123e4567-e89b-12d3-a456-426655440000 | Ensure 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. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7 | request ID. |
Example
Successful Response example
{
"RequestId":"4CF20CC7-D1FC-425B-A15B-DF7C8E2131A7"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}