ModifySagPortRole_智能接入网关_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

说明 修改端口角色会删除当前端口关联的原角色配置数据。

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
smartag:ModifySagPortRole
Write
SmartAccessGateway
acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}

请求参数

字段名称字段详情
RegionIdstring

智能接入网关实例地域 ID。展开详情

示例值:cn-shanghai参考取值来源:
    DescribeRegions
SmartAGIdstring

智能接入网关实例 ID。

示例值:sag-whfn****参考取值来源:
    AddSnatEntry
    BindSmartAccessGateway
    ListSmartAGByAccessPoint
    CreateSmartAccessGateway
SmartAGSnstring

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

示例值:sag32a30****参考取值来源:
    ListSmartAGByAccessPoint
PortNamestring

端口名称。

示例值:0参考取值来源:
    DescribeSagPortList
Rolestring

端口角色。取值:展开详情

示例值:NONE

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:3200E8A3-563F-4FFC-8BDB-0F1263FA69E8

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Sag.PortNotExist
The specified port does not exist.诊断
400
Sag.HaPortExist
The specified port is used by the HA configuration.诊断
400
Sag.PortRoleLimit
The maximum number of ports with the specified role is exceeded.诊断
400
Sag.PortMgtError
The role of a management port cannot be changed.诊断
400
Sag.PortRoleInvalid
The port role is invalid.诊断
400
ConfigUnsynchronized
The network configuration is not synchronized.诊断
400
IrRuleOutboundPortInUse.%s
The specified port %s is in use as a outbound port of intelligent routing rule, please free it first.诊断

变更历史

变更时间变更内容概要操作
2022-11-14
变更错误码400

相关示例