You need to enable JavaScript to run this app.
导航

DisassociateNetworkAcl

最近更新时间2024.01.10 10:41:31

首次发布时间2022.04.28 07:34:09

调用 DisassociateNetworkAcl 接口,将网络ACL与子网解除关联。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringDisassociateNetworkAcl要执行的操作。取值:DisassociateNetworkAcl。
VersionString2020-04-01API版本信息,取值为:2020-04-01。

NetworkAclId

String

nacl-bp1fg655nh68xyz9****

网络ACL的ID。
您可以调用 DescribeNetworkAcls 接口,查询网络ACL的ID。

Resource.N.ResourceId

String

Resource.1.ResourceId=subnet-67acfmxazb4p****&Resource.2.ResourceId=subnet-g655nh68xyz9****

待解除关联子网的ID。
您可以调用 DescribeSubnets 接口,查询子网的ID。

  • 参数 - N:表示待关联资源ID的序号,取值范围:1 ~ 100,传入参数时“N”需要按照由小到大的顺序传入。
  • 多个ID之间用&分隔。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=DisassociateNetworkAcl&Version=2020-04-01&NetworkAclId=nacl-bp1fg655nh68xyz9****&Resource.1.ResourceId=subnet-67acfmxazb4p****&Resource.2.ResourceId=subnet-g655nh68xyz9**** HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DisassociateNetworkAcl",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "2021062415303301022514515207C4****",
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidNetworkAcl.InvalidStatusThe specified Network ACL is not in the correct status for the request.指定的网络ACL所处状态无法响应该请求。
400InvalidResource.DisorderThe specified resource index orders are malformed.指定的资源条目的序号不合法。
400InvalidResource.NetworkAclMismatchThe specified resource is not associated with the specified Network ACL.指定的资源未关联网络ACL。
400InvalidSubnet.InvalidStatusThe specified subnet is not in the correct status for the request.指定的子网所处的状态无法响应该请求。
400LimitExceeded.ResourceIdYou've reached the limit on the number of resources that you can operate one time.已达到单次可操作关联资源数量的上限。
404InvalidNetworkAcl.NotFoundThe specified Network ACL does not exist.指定的网络ACL不存在。
404InvalidSubnet.NotFoundThe specified subnet does not exist.指定的子网不存在。