文档

UpdateSmartAccessGatewayDns - 修改SAG设备DNS信息

修改SAG设备DNS信息,适用于设备类型为SCG5000或SCG5000-5G的智能接入网关实例,且设备版本为3.4.2及以上。

接口说明

目前仅设备版本为 3.4.2 及以上的 SCG5000 和 SCG5000-5G 设备支持修改智能接入网关设备 DNS 信息。

调试

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

授权信息

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

请求参数

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

智能接入网关实例 ID。

sag-3manef62evrfr6****
SagSnstring

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

sagf4ea****
RegionIdstring

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

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

cn-shanghai
MasterDnsstring

主 DNS 服务器 IP 地址。

10.10.XX.XX
SlaveDnsstring

备 DNS 服务器 IP 地址。

10.10.XX.XX
CrossAccountboolean

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

  • false(默认值):否。

  • true:是。

false
ResourceUidstring

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

147304382796****

返回参数

名称类型描述示例值
object
Codestring

错误码。200 标识查询任务成功。

200
Successboolean

修改是否成功。取值:

  • true:是。
  • false:否。
true
RequestIdstring

请求 ID。

AE9B6C13-86D3-5E56-8C05-BBE58C2BE671
Messagestring

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

Successful

示例

正常返回示例

JSON格式

{
  "Code": "200",
  "Success": true,
  "RequestId": "AE9B6C13-86D3-5E56-8C05-BBE58C2BE671",
  "Message": "Successful"
}

错误码

HTTP status code错误码错误信息描述
400GATEWAY.InvalidSNThe specified gateway serial number does not exist.-
400InternalErrorInternal server error-
400SAG.InstanceNoFoundThe specified SAG instance does not exist.智能接入网关实例不存在。
400SAG.SoftwareNotSupportThe specified software instance does not support ACL.-
400SmartAccessGatewayNotActivatedThe specified Smart Access Gateway has not been activated.该智能接入网关尚未激活,请先激活该实例。
400DeviceNotExistThe specified device does not exist-
400MissParameter.GatewayIdThe input parameter GatewayId that is mandatory for processing this model is not supplied.-
400InvalidParameter.MasterDnsThe input parameter MasterDns is illegal, please check your input.-
400InvalidParameter.SlaveDnsThe input parameter SlaveDns is illegal, please check your input.-
400InvalidSpec.FeatureNotSupportThe current edition of the cloudbranch does not support this feature.-
400FeatureNotSupportThe current edition of the smart access gateway does not support this feature.智能接入网关当前版本不支持该功能特性。

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

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