BindSmartAccessGateway - 将智能接入网关绑定到指定的云连接网中

更新时间:
复制 MD 格式

调用BindSmartAccessGateway接口将智能接入网关绑定到指定的云连接网中。 。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

smartag:BindSmartAccessGateway

*CloudConnectNetwork

acs:smartag:{#regionId}:{#accountId}:ccn/{#CcnId}

请求参数

名称

类型

必填

描述

示例值

CcnId

string

要绑定的云连接网 ID。

ccn-isdjvvkexkrpk*****

SmartAGId

string

智能接入网关 ID。

sag-m7ez44zpayma*****

RegionId

string

智能接入网关的所属区域 ID。

cn-hangzhou

SmartAGUid

integer

智能接入网关实例的用户 ID。

1250123456123456

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

8A3FF8DD-B27D-4ED2-B032-5EF90B38195D

示例

正常返回示例

JSON格式

{
  "RequestId": "8A3FF8DD-B27D-4ED2-B032-5EF90B38195D"
}

错误码

HTTP status code

错误码

错误信息

描述

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。
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. 当前实例已经存在专线备份。
400 TunnelIdDistributeError Tunnel id distribute error.
400 UpdateError.SMARTAG Update smart access gateway error.
400 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. 该智能接入网关已经到期停服,请续费。
400 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. 该智能接入网关尚未激活,请先激活该实例。
400 CcnNotSupportNewAgw The specified cloud connect network does not support this operation. CCN不支持该操作,请刷新页面后重试。
400 UnBinding The specified instance id unbinding. 智能接入网关实例正在解绑中,请稍后重试。
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. 该智能接入网关已经绑定。
403 TunnelIdNotEnough Tunnel id is not enough. 隧道ID不足。
403 Forbidden User not authorized to operate on the specified resource. 用户没有操作此资源的权限。
403 VbrConflict.ChangeSubnet The subnet of the gateway conflicts with the VBR. Modify the subnet first. 该智能接入网关的子网网段与VBR有冲突,请修改子网网段。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情