调用ModifySagHa修改智能接入网关设备高可用(HA)配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifySagHa |
系统规定参数。取值:ModifySagHa。 |
RegionId | String | 是 | cn-shanghai |
智能接入网关实例地域ID。 |
SmartAGId | String | 是 | sag-whfn**** |
智能接入网关实例ID。 |
SmartAGSn | String | 是 | sag32a30**** |
绑定的智能接入网关设备序列号。 |
Mode | String | 是 | NONE |
HA模式。取值:
|
PortName | String | 是 | 5 |
端口名称。 说明 如果HA模式选择静态模式,需要输入端口名称。
|
VirtualIp | String | 否 | 192.XX.XX.5 |
虚IP地址。 说明 如果HA模式选择静态模式,需要输入虚IP地址。
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 3200E8A3-563F-4FFC-8BDB-0F1263FA69E8 |
请求ID。 |
示例
请求示例
http(s)://smartag.cn-shanghai.aliyuncs.com/?Action=ModifySagHa
&Mode=NONE
&PortName=5
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifySagHaResponse>
<RequestId>3200E8A3-563F-4FFC-8BDB-0F1263FA69E8</RequestId>
</ModifySagHaResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "3200E8A3-563F-4FFC-8BDB-0F1263FA69E8"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Sag.HaPortExist | The specified port is used by the HA configuration. | 当前端口被HA占用。 |
400 | Sag.HaPortRoleError | The specified port does not support HA configuration. | 当前端口角色不支持HA配置。 |
400 | Sag.HaTypeNotAllow | The specified device does not support the configuration of the specified type. | 当前设备不支持当前类型配置。 |
访问错误中心查看更多错误码。