InstallCloudAssistant_云服务器 ECS_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.

接口说明

调用 InstallCloudAssistant 接口后再调用 RebootInstance ,安装云助手 Agent 的操作即可生效。

流控信息

请求速率为1000/60(s)。

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ecs:InstallCloudAssistant
Update
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}

请求参数

字段名称字段详情
RegionIdstring

实例所在地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
InstanceIdarray<string>

实例 ID 列表。列表元素数量为 1~50。

示例值:i-bp1iudwa5b1tqa****子级条数 <= 100

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

返回示例

错误返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
RegionId.ApiNotSupported
The api is not supported in this region.诊断
400
MissingParam.InstanceId
The parameter instanceId is missing or empty.诊断
403
InstanceIds.ExceedLimit
The number of instance IDs exceeds the upper limit.诊断
403
Operation.Forbidden
The operation is not permitted.诊断
403
InvalidInstanceId.OSTypeUnsupported
The OS type of the instance %s corresponding to the parameter InstanceId does not support the operation.诊断
404
InvalidRegionId.NotFound
The RegionId provided does not exist in our records.诊断
404
InvalidInstance.NotFound
The specified instance does not exist.诊断
500
InternalError.Dispatch
An error occurred when you dispatched the request.诊断

变更历史

变更时间变更内容概要操作
2025-01-14
变更错误码403
2022-02-25
变更错误码403
变更错误码404

相关示例

执行云助手命令
2021-01-15