调用ModifySagRouteProtocolOspf修改动态路由协议OSPF配置。

调试

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

请求参数

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

系统规定参数。取值:ModifySagRouteProtocolOspf

RegionId String cn-shanghai

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

SmartAGId String sag-whfn****

智能接入网关实例ID。

SmartAGSn String sag32a30***

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

RouterId String 192.XX.XX.1

OSPF路由器ID。

取值格式为IPv4地址格式。

AreaId Integer 86

OSPF区域ID。

取值范围:1~2147483647

DeadTime Integer 10

OSPF超时时间间隔。单位:秒。

取值范围:1~65535

HelloTime Integer 3

发送Hello报文的时间间隔。单位:秒。

取值范围:1~65535

AuthenticationType String NONE

认证方式。取值:

  • NONE:不开启认证。
  • CLEARTEXT:采用明文认证,需输入明文密码。
  • MD5:采用MD5认证,需输入MD5 Key ID和MD5 Key。
Md5KeyId Integer 7

MD5 Key的编号。

取值范围:1~2147483647

说明 该项仅当AuthenticationTypeMD5时输入。
Md5Key String 5

MD5 Key值。

取值范围:1~47

说明 该项仅当AuthenticationTypeMD5时输入。
Password String 1212****

明文认证密码。

格式要求为1~8位字符,可包含大小写字母、数字、短划线(-)或下划线(_)。

说明 该项仅当AuthenticationTypeCLEARTEXT时输入。

返回数据

名称 类型 示例值 描述
RequestId String 191DC00D-00C0-475C-99B8-ADBB82496405

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=ModifySagRouteProtocolOspf
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30***
&RouterId=192.XX.XX.1
&AreaId=86
&DeadTime=10
&HelloTime=3
&AuthenticationType=NONE
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifySagRouteProtocolOspfResponse>
    <RequestId>191DC00D-00C0-475C-99B8-ADBB82496405</RequestId>
</ModifySagRouteProtocolOspfResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "191DC00D-00C0-475C-99B8-ADBB82496405"
}

错误码

HttpCode 错误码 错误信息 描述
400 SAG.InstanceNoFound The specified SAG instance does not exist. 智能接入网关实例不存在。
400 SAG.SoftwareNotSupport The specified SAG software edition instance does not support ACL. 智能接入网关软件版实例不支持ACL。
400 InstanceNotExit The specified instance does not exist. 指定的实例不存在。
400 ConfigUnsynchronized The network configuration is not synchronized. 网络配置未同步。
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. 该智能接入网关当前不是在线状态,无法完成操作。
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. 智能接入网关当前版本不支持该功能特性。
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. 主智能接入网关的当前版本不支持该功能特性。
403 FeatureNotSupportForStandBySmartAG The current edition of the standby smart access gateway does not support this feature. 备智能接入网关的当前版本不支持该功能特性。
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. 该智能接入网关已经到期停服,请续费。
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. 该智能接入网关尚未激活,请先激活该实例。
500 SmartAccessGatewayOffline The request cannot be completed. The Smart Access Gateway is offline. 智能接入网关离线,请求无法完成。

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