调用BindSmartAccessGateway接口将智能接入网关绑定到指定的云连接网中。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | BindSmartAccessGateway |
执行的操作。 取值: BindSmartAccessGateway。 |
CcnId | String | 是 | ccn-isdjvvkexkrpk***** |
要绑定的云连接网ID。 |
SmartAGId | String | 是 | sag-m7ez44zpayma***** |
智能接入网关ID。 |
RegionId | String | 否 | cn-hangzhou |
智能接入网关的所属区域ID。 |
SmartAGUid | Long | 否 | 1688401595963306 |
智能接入网关实例的用户ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 8A3FF8DD-B27D-4ED2-B032-5EF90B38195D |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=BindSmartAccessGateway
&CcnId=ccn-isdjvvkexkrpk*****
&SmartAGId=sag-m7ez44zpayma*****
&<公共请求参数>
正常返回示例
XML
格式
<BindSmartAccessGatewayResponse>
<RequestId>6877D55B-08F7-4DA3-916B-32A6FD402E06</RequestId>
</BindSmartAccessGatewayResponse>
JSON
格式
{
"RequestId":"6877D55B-08F7-4DA3-916B-32A6FD402E06"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | CidrConflict | Cidr is conflict, Please Check your input. | 子网网段冲突,请检查输入 |
403 | MissingParameter | The input parameter is missing, please check your input. | 输入参数缺失,请检查您的输入 |
403 | InvalidId.CCN | Invalid cloud connect network id. | 无效的云连接网ID |
403 | InvalidId.SMARTAG | The specified smart access gateway instance id is invalid. | 无效的智能接入网关ID |
403 | SmartAccessGatewayAlreadyBound | The smart access gateway already bound. | 该智能接入网关已经绑定 |
500 | TunnelIdDistributeError | Tunnel id distribute error. | 隧道ID分配出错 |
403 | TunnelIdNotEnough | Tunnel id is not enough. | 隧道ID不足 |
500 | UpdateError.SMARTAG | Update smart access gateway error. | 更新智能接入网关出错 |
403 | Forbidden | User not authorized to operate on the specified resource. | 用户没有操作此资源的权限 |
500 | SmartAccessGatewayInArrears | The specified Smart Access Gateway has expired. | 该智能接入网关已经到期停服,请续费。 |
500 | SmartAccessGatewayNotActivated | The specified Smart Access Gateway has not been activated. | 该智能接入网关尚未激活,请先激活该实例。 |
400 | SAG.NoBindSN | The specified SAG is not bound with a serial number. Please perform binding first. | 当前智能接入网关实例还未绑定序列号,请先绑定后再操作。 |
400 | SAG.NoBandwidth | Buy bandwidth for the specified SAG instance before binding it to a CCN instance. | 当前SAG实例还未购买带宽,请先购买后再绑定CCN实例。 |
400 | NotBoundCEN | Bind the specified CCN instance to a CEN instance first. | 当前CCN实例还未绑定CEN,请先绑定。 |
400 | SAG.VbrNotBondCen | Bind the specified VBR instance to a CEN instance first. | 当前VBR还未绑定到CEN,请先绑定CEN。 |
403 | VbrConflict.ChangeSubnet | The subnet of the gateway conflicts with the VBR. Modify the subnet first. | 该智能接入网关的子网网段与VBR有冲突,请修改子网网段。 |
400 | AlreadyBound.CCN | The specified SAG instance is bound to another CCN instance. Unbind them first. | 当前SAG实例已经绑定其他CCN实例,请先解绑。 |
400 | LinkLevelBackupExists | The specified SAG instance is already used as a leased line backup. | 当前实例已经存在专线备份。 |
访问错误中心查看更多错误码。