UpdateSmartAccessGatewayOspfRoute - 修改SAG设备动态路由协议OSPF的配置

修改SAG设备动态路由协议OSPF的配置,适用于设备类型为SCG5000SCG5000-5G的智能接入网关实例,且设备版本为3.4.2及以上。

接口说明

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

调试

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

调试

授权信息

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

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

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

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

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

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

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

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

操作

访问级别

资源类型

条件关键字

关联操作

smartag:UpdateSmartAccessGatewayOspfRoute

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

SagInsId

string

智能接入网关实例 ID。

sag-3manef62evrfr6****

SagSn

string

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

sagf4dk****

RegionId

string

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

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

cn-shanghai

RouterId

string

OSPF 路由器 ID。

192.XX.XX.1

AreaId

integer

OSPF 区域 ID。

取值范围:1~2147483647

1

DeadTime

integer

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

取值范围:1~65535

40

HelloTime

integer

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

取值范围:1~65535

10

AuthenticationType

string

认证类型。取值:

  • NONE:不开启认证。

  • CLEARTEXT:采用明文认证。

  • MD5:采用 MD5 认证。

MD5

Md5KeyId

integer

MD5 Key 的编号。

取值范围:1~2147483647

说明

该项仅当 AuthenticationTypeMD5 时输入。

7

Md5Key

string

MD5 Key 值。

取值范围:1~47

说明

该项仅当 AuthenticationTypeMD5 时输入。

5

Password

string

明文认证密码。

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

说明

该项仅当 AuthenticationTypeCLEARTEXT 时输入。

duuf****

InterfaceName

string

端口名称。

说明

当前参数暂不生效。

2

OspfNetworkType

string

OSPF 区域类型。

说明

当前参数暂不生效。

NSSA

OspfCost

integer

OSPF 路由开销值。

说明

当前参数暂不生效。

[110/11]

RedistributeProtocol

string

路由重分发协议。

说明

当前参数暂不生效。

OSPF

Networks

string

网段。

说明

当前参数暂不生效。

192.168.10.0/24

CrossAccount

boolean

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

  • false(默认值):否。

  • true:是。

false

ResourceUid

string

资源所属的阿里云账号(主账号)ID。

109790620697****

返回参数

名称

类型

描述

示例值

object

返回结果。

Code

string

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

200

Success

boolean

是否成功。取值:

  • true:是。

  • false:否。

true

RequestId

string

请求 ID。

9CF52A9E-FC3C-5CC8-B5EB-90DC03E9A531

Message

string

响应消息。

successful

示例

正常返回示例

JSON格式

{
  "Code": "200",
  "Success": true,
  "RequestId": "9CF52A9E-FC3C-5CC8-B5EB-90DC03E9A531",
  "Message": "successful"
}

错误码

HTTP status code

错误码

错误信息

描述

400 GATEWAY.InvalidSN The specified gateway serial number does not exist.
400 InternalError Internal server error
400 ParamCommonNotNull Parameter must not be null
400 SAG.InstanceNoFound The specified SAG instance does not exist. 智能接入网关实例不存在。
400 SAG.SoftwareNotSupport The specified software instance does not support ACL.
400 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. 该智能接入网关尚未激活,请先激活该实例。
400 DeviceNotExist The specified device does not exist
400 MissParameter.GatewayId The input parameter GatewayId that is mandatory for processing this model is not supplied.
400 MissParameter.RouterId The input parameter RouterId that is mandatory for processing this model is not supplied.
400 MissParameter.AreaId The input parameter AreaId that is mandatory for processing this model is not supplied.
400 MissParameter.HelloTime The input parameter HelloTime that is mandatory for processing this model is not supplied.
400 MissParameter.DeadTime The input parameter DeadTime that is mandatory for processing this model is not supplied.
400 MissParameter.InterfaceName The input parameter InterfaceName that is mandatory for processing this model is not supplied.
400 MissParameter.OspfCost The input parameter OspfCost that is mandatory for processing this model is not supplied.
400 InvalidParameter.RouterId The input parameter RouterId is illegal, please check your input.
400 InvalidParameter.AreaId The input parameter AreaId is illegal, please check your input.
400 InvalidParameter.HelloTime The input parameter HelloTime is illegal, please check your input.
400 InvalidParameter.DeadTime The input parameter DeadTime is illegal, please check your input.
400 InvalidParameter.AuthenticationType The input parameter AuthenticationType is illegal, please check your input.
400 InvalidParameter.Password The input parameter Password is illegal, please check your input.
400 InvalidParameter.Md5KeyId The input parameter Md5KeyId is illegal, please check your input.
400 InvalidParameter.Md5Key The input parameter Md5Key is illegal, please check your input.
400 InvalidParameter.OspfCost The input parameter OspfCost is illegal, please check your input.
400 MissParameter.AuthenticationType The input parameter AuthenticationType that is mandatory for processing this model is not supplied.
400 InvalidParameter.RedistributeProtocol The input parameter RedistributeProtocol is illegal, please check your input.
400 InvalidParameter.Networks The input parameter Networks is illegal, please check your input.
400 FeatureNotSupport The current edition of the smart access gateway does not support this feature.

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

变更历史

更多信息,参考变更详情