文档

ModifySmartAccessGateway - 修改智能接入网关的配置

更新时间:

调用ModifySmartAccessGateway修改智能接入网关的配置。

调试

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

授权信息

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

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
smartag:ModifySmartAccessGatewayWrite
  • SmartAccessGateway
    acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}

请求参数

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

智能接入网关实例 ID。

sag-0ovhf732a9j0******
Namestring

智能接入网关的名称。

长度为 2~128 个字符,必须以字母或中文开头,可包含数字,点号(.),下划线(_)和短横线(-)。

SAG
Descriptionstring

智能接入网关的描述。

长度为 2~256 个字符,必须以字母或中文开头,但不能以http:// https://开头。

SAG描述
CidrBlockstring

线下机构客户端用来通信的私网网段,确保各私网网段不冲突。

如果智能接入网关终端设备的 LAN 口配置为动态方式,则线下已开启 DHCP 的客户端使用的 IP 地址会从您指定的第一个私网网段中分配。

172.16.0.0/24
RegionIdstring

智能接入网关的所属区域。

cn-hangzhou
SecurityLockThresholdinteger

离线锁定功能用户设定的阈值,大于等于 0。

单位:秒。

3
RoutingStrategystring

线下路由同步方式:

  • static:静态路由。

  • dynamic:动态路由。

static
Positionstring

智能接入网关所部署的位置。

[ { "adcode":"", "label":"浙江省杭州市xx区xx路xx号", "value":"B0FFGxxxx", "center":"120.190xxxx, 30.182xxxx", "_new":"true" } ]
EnableSoftwareConnectionAuditboolean

是否开启 SAG App 连接日志审计。

  • true:开启 SAG App 连接日志审计。

  • false:关闭 SAG App 连接日志审计。

true

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

CE6642D4-21EB-4168-9BF9-F217953F9892

示例

正常返回示例

JSON格式

{
  "RequestId": "CE6642D4-21EB-4168-9BF9-F217953F9892"
}

错误码

HTTP status code错误码错误信息描述
400SAG.IpCountTooLittleThe number of available IP addresses of the CIDR block is fewer than the number of SslConnectionSpec.地址段可用IP数少于连接数。
400SAG.SslConnectionSpecInvalidThe number of SslConnectionSpec is invalid.连接数非法。
400SAG.CcnCidrNoConfigYou must configure the CIDR block of CCN.绑定的云连接网地址段未配置。
400SAG.CidrEmptyYou must specify the CIDR blocks of SAG.智能网关地址段为空。
400SAG.ConflictCidr.CcnSnatCidrThe SAG CIDR block is in conflict with the CCN CIDR block.智能网关地址段与云连接网地址段冲突。
400SAG.ConflictSnatIpThe specified SNAT IP address is invalid.指定的SNAT IP存在冲突。
400SAG.InstanceIdEmptyYou must specify the SAG instance ID.智能接入网关实例ID为空。
400SAG.InstanceNoFoundThe specified SAG instance does not exist.智能接入网关实例不存在。
400SAG.InvalidCidrThe specified CIDR block is invalid.智能网关地址段非法。
400SAG.InvalidCidr.NoBelongCcnCidrThe specified SAG CIDR block does not belong to the CCN CIDR block.智能网关地址段不属于云接网地址段。
400SAG.InvalidSnatCidrThe specified SNAT CIDR block is invalid.智能网关SNAT CIDR非法。
400SAG.InvalidSnatIpThe specified SNAT IP address is invalid.智能网关SNAT IP非法。
400CCN.CidrEmptyYou must specify the CCN CIDR block.云连接网的地址段为空。
400CCN.SnatCidrConflictThe specified SNAT CIDR block is invalid.指定的SNAT地址段存在冲突。
400ActionNotSupportThe specified instance does not support this action.当前实例不支持此功能。
400CCN.SnatCidrNoConfigYou must configure the SNAT CIDR block of the CCN.云连接网的SNAT地址段尚未配置。
400SAG.CidrUsedByRoutableAddressA routable internal IP address belongs to the specified internal CIDR block. You cannot modify this CIDR block.当前修改的私网地址段已经被私网可路由地址使用,无法修改。
400InvalidNameThe specified name is invalid.您输入的名称不合法。
400SAG.CidrAmountLimitThe maximum number of static routes for the SAG instance is exceeded.智能接入网关实例设置的静态路由已经到达上限。
400SAG.InvalidCidrFormatThe specified CIDR format is invalid.私网地址段格式非法。
400SAG.CidrOverlapThe specified CIDR overlaps with an existing CIDR.存在重叠私网地址段。
400SAG.ArrearageThe specified SAG instance has overdue payments. Renew the instance first.智能接入网关实例已经欠费,请先续费。
400SAG.NoActiveThe specified SAG instance has not been activated.智能接入网关实例还未激活,请先激活。
400SAG.NotAllowConfigCidrYou cannot specify a static CIDR block when the dynamic routing strategy is used.动态路由模式不允许配置静态地址段。
403CidrConflictCidr is conflict, Please Check your input.-
403MissingParameterThe input parameter is missing, please check your input.输入参数缺失,请检查您的输入。
403InvalidId.SMARTAGThe specified smart access gateway instance id is invalid.无效的智能接入网关实例ID。
403InvalidCidrCidr is illegal, please check your input.Cidr不合法,请检查您的输入
403ForbiddenUser not authorized to operate on the specified resource.用户没有操作此资源的权限。
403VbrConflict.ChangeSubnetThe subnet of the gateway conflicts with the VBR. Modify the subnet first.该智能接入网关的子网网段与VBR有冲突,请修改子网网段。
403VbrConflict.CreateBackupThe subnet of the gateway conflicts with the VBR. Create a backup relationship first.该智能接入网关的子网网段与VBR有冲突,请先创建专线备份。
403SmartAccessGatewayNotBindThe instance has not yet been bound.该实例未被绑定。
403FeatureNotSupportThe current edition of the smart access gateway does not support this feature.智能接入网关当前版本不支持该功能特性。
500SmartAccessGatewayInArrearsThe specified Smart Access Gateway has expired.该智能接入网关已经到期停服,请续费。
500SmartAccessGatewayNotActivatedThe specified Smart Access Gateway has not been activated.该智能接入网关尚未激活,请先激活该实例。
500InternalErrorAn error occurred while processing your request.请求失败,发生未知错误。

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

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