调用UpdateSmartAGAccessPoint切换智能接入网关的接入点。

前提条件

在您调用本接口前,请先调用ListAccessPoints接口查看目标实例可以切换的接入点信息。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String UpdateSmartAGAccessPoint

要执行的操作。

取值:UpdateSmartAGAccessPoint

AccessPointId Integer 10

要切换到的接入点ID。

RegionId String cn-shanghai

智能接入网关实例所属地域ID。

SmartAGId String sag-far8v6owtdxlua****

智能接入网关实例ID。

返回数据

名称 类型 示例值 描述
RequestId String E26DBAAE-A796-4A48-98B4-B45AFCD1F299

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=UpdateSmartAGAccessPoint
&AccessPointId=10
&RegionId=cn-shanghai
&SmartAGId=sag-far8v6owtdxlua****
&<公共请求参数>

正常返回示例

XML 格式

<UpdateSmartAGAccessPointResponse>
  <RequestId>0EEFB09A-208D-4063-A839-F49F3367A073</RequestId>
</UpdateSmartAGAccessPointResponse>

JSON 格式

{
	"RequestId": "0EEFB09A-208D-4063-A839-F49F3367A073"
}

错误码

HttpCode 错误码 错误信息 描述
400 SAG.InstanceNoFound The specified SAG instance does not exist. 智能网关实例不存在。
400 SAG.SoftwareNotSupportFeature The specified SAG Software instance does not support this feature. 智能接入网关软件版实例不支持当前特性。
400 SAG.NoActive The specified SAG instance has not been activated. 智能接入网关实例还未激活,请先激活。
403 InvalidId.SMARTAG The specified smart access gateway instance id is invalid. 无效的智能接入网关ID
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. 该智能接入网关当前不是在线状态,无法完成操作。
403 NotBoundCCN The specified smart access gateway has not bound CCN; please bind CCN first. 该智能接入网关没有绑定CCN;请先绑定CCN。
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. 智能接入网关当前版本不支持该功能特性
500 Upgrading The specified Smart Access Gateway is being upgraded. 该智能接入网关正在升级中,请稍后操作。

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