文档

UpdateSmartAccessGatewayVersion - 升级智能接入网关的软件版本

更新时间:

调用UpdateSmartAccessGatewayVersion升级智能接入网关设备的软件版本。

调试

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

授权信息

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

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

请求参数

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

智能接入网关实例 ID。

sag-0ovhf732a9j*******
VersionCodestring

要升级的智能接入网关的版本。

1.0.1
RegionIdstring

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

cn-hangzhou
SerialNumberstring

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

sag233****
VersionTypestring

指定要升级的软件版本类型。取值:

  • Device:表示智能接入网关设备运行的操作系统软件。
  • Dpi:表示智能接入网关设备运行的应用特征库软件。
Device

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

CE6642D4-21EB-4168-9BF9-F217953F9892

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
403ForbiddenUser not authorized to operate on the specified resource.用户没有操作此资源的权限。
403InvalidId.SMARTAGThe specified smart access gateway instance id is invalid.无效的智能接入网关实例ID。
403NotBoundCCNThe specified smart access gateway has not bound CCN; please bind CCN first.该智能接入网关没有绑定CCN;请先绑定CCN。
403SmartAccessGatewayNotOnlineThe specified smart access gateway is not online.该智能接入网关当前不是在线状态,无法完成操作。
403GetSmartAccessGatewayVersionErrorAn error occurred while obtaining the smart access gateway version.获取智能接入网关版本失败。
403GetSmartAccessGatewayStateErrorAn error occurred while obtaining the smart access gateway status.获取智能接入网关状态失败。
403VersionTooOldThe specified version is outdated; please select a newer version.该版本过低,请选择较新的版本。
500SmartAccessGatewayInArrearsThe specified Smart Access Gateway has expired.该智能接入网关已经到期停服,请续费。
500SmartAccessGatewayNotActivatedThe specified Smart Access Gateway has not been activated.该智能接入网关尚未激活,请先激活该实例。
500PermissionErrorNo permission to operate the instance.没有操作该实例的权限。

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

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