文档

UpdateSmartAccessGatewayPortRouteProtocol - 修改SAG设备端口路由协议

修改SAG设备端口路由协议,适用于设备类型为SCG5000或SCG5000-5G的智能接入网关实例,且设备版本为3.4.2及以上。

接口说明

目前仅设备版本为 3.4.2 及以上的 SCG5000 和 SCG5000-5G 设备支持修改智能接入网关设备端口路由协议。

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
SagInsIdstring

智能接入网关实例 ID。

sag-3manef62evrfr6****
SagSnstring

智能接入网关设备序列号。

sagf4dk****
RegionIdstring

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

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-shanghai
PortNamestring

端口名称。

0
Vlanstring

VLAN 编号。

10
RouteProtocolstring

路由协议。取值:

  • STATIC:静态路由协议。
  • OSPF:OSPF 动态路由协议。
  • BGP:BGP 动态路由协议。
STATIC
RemoteIpstring

对端 IP 地址。

说明 启用 BGP 路由协议时需输入。
192.XX.XX.1
RemoteAsstring

对端 BGP 自治系统编号。

说明 启用 BGP 路由协议时需输入。
65535
CrossAccountboolean

是否只查询跨账号所属的智能接入网关实例。取值:

  • false(默认值):否。

  • true:是。

false
ResourceUidstring

智能接入网关实例所属的阿里云账号(主账号)ID。

109790620697****

返回参数

名称类型描述示例值
object
Codestring

响应码。200 标识查询任务成功。

200
Successboolean

修改是否成功。取值:

  • true:调用成功。

  • false:调用失败。

true
RequestIdstring

请求 ID。

A7DB1241-17CB-5457-83A9-638162A514C6
Messagestring

响应消息。Successful 标识查询任务成功。

Successful

示例

正常返回示例

JSON格式

{
  "Code": "200",
  "Success": true,
  "RequestId": "A7DB1241-17CB-5457-83A9-638162A514C6",
  "Message": "Successful"
}

错误码

HTTP status code错误码错误信息
400GATEWAY.InvalidSNThe specified gateway serial number does not exist.
400InternalErrorInternal server error
400MissParameter.GatewayIdThe input parameter GatewayId that is mandatory for processing this model is not supplied.
400MissParameter.PortNameThe input parameter PortName that is mandatory for processing this model is not supplied.
400MissParameter.RouteTypeThe input parameter RouteType that is mandatory for processing this model is not supplied.
400InvalidParameter.VlanThe input parameter Vlan is illegal, please check your input.
400InvalidParameter.RouteTypeThe input parameter RouteType is illegal, please check your input.
400InvalidParameter.RemoteIpThe input parameter RemoteIp is illegal, please check your input.
400InvalidParameter.RemoteAsThe input parameter RemoteAs is illegal, please check your input.
400InvalidSpec.FeatureNotSupportThe current edition of the cloudbranch does not support this feature.
400SMARTAG.PORT.ROLE.INVALIDInvalid port role
400DeviceNotExistThe specified device does not exist

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

  • 本页导读 (1)
文档反馈