调用AssociateACL接口关联访问控制实例和智能接入网关实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AssociateACL |
系统规定参数。取值:AssociateACL。 |
RegionId | String | 是 | cn-shanghai |
访问控制实例所属的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
AclId | String | 是 | acl-ohlexqptfhy**** |
访问控制实例ID。 |
SmartAGId | String | 是 | sag-4yr0p2xa6o3k**** |
需要与访问控制实例关联的智能接入网关实例ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | C9A75915-0260-4335-851A-D866A7ED396C |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=AssociateACL
&RegionId=cn-shanghai
&AclId=acl-ohlexqptfhy****
&SmartAGId=sag-4yr0p2xa6o3k****
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<AssociateACLResponse>
<RequestId>C9A75915-0260-4335-851A-D866A7ED396C</RequestId>
</AssociateACLResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C9A75915-0260-4335-851A-D866A7ED396C"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SAG.SoftwareNotSupport | The specified SAG software edition instance does not support ACL. | 智能接入网关软件版实例不支持ACL。 |
403 | Forbidden | User not authorized to operate on the specified resource. | 用户没有操作此资源的权限。 |
403 | MissingParameter | The input parameter is missing, please check your input. | 输入参数缺失,请检查您的输入。 |
403 | InvalidId.SMARTAG | The specified smart access gateway instance id is invalid. | 无效的智能接入网关实例ID。 |
403 | FeatureNotSupport | The current edition of the smart access gateway does not support this feature. | 智能接入网关当前版本不支持该功能特性。 |
403 | FeatureNotSupportForActiveSmartAG | The current edition of the active smart access gateway does not support this feature. | 主智能接入网关的当前版本不支持该功能特性。 |
403 | FeatureNotSupportForStandBySmartAG | The current edition of the standby smart access gateway does not support this feature. | 备智能接入网关的当前版本不支持该功能特性。 |
403 | SmartAGAlreadyAssociateAcl | The specified smart access gateway has already been associated with the specified ACL. | 您选择的智能接入网关已经绑定了acl。 |
403 | AclPerSmartagAmountLimit | No more ACL can be associated with this smart access gateway. | 该智能接入网关所关联的ACL组数量已经达到限额。 |
403 | InternalError | An internal server error occurred. | 内部服务错误。 |
403 | InvalidId.ACL | The specified ACL ID is invalid. | 无效的ACL组ID。 |
访问错误中心查看更多错误码。