GetIdleInstanceCuller
获取指定实例的闲置自动关机策略
服务地址:
华东1(杭州)
输入参数
只看必填
InstanceId实例ID
插件下载了解更多
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.

请求语法

GET /api/v2/instances/{InstanceId}/idleinstanceculler HTTP/1.1

路径参数

字段名称字段详情
InstanceIdstring

实例 ID。如何获取实例 ID,请参见 ListInstances

示例值:dsw-730xxxxxxxxxx参考取值来源:
    UpdateInstance
    StopInstance
    StartInstance
    ListInstances
    CreateInstance

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:E7D55162-4489-1619-AAF5-3F97D5FCA948
Successboolean

成功标志,可能值:展开详情

示例值:true枚举值:truefalse
Messagestring

错误信息。

示例值:"XXX"
Codestring

状态码,可能值:展开详情

示例值:ValidationError
InstanceIdstring

实例 ID。

示例值:dsw-730xxxxxxxxxx
CpuPercentThresholdinteger<int32>

CPU 使用率阈值,单位是百分比,取值 1~100,低于此值则认为实例当前处于闲置。

示例值:20
GpuPercentThresholdinteger<int32>

GPU 使用率阈值,单位是百分比,取值 1~100。如果实例为 GPU 类型,则此参数生效。CPU 和 GPU 同时低于阈值则认为指定实例处于闲置。

示例值:10
MaxIdleTimeInMinutesinteger<int32>

闲置等待时间阈值,单位是分钟。如果闲置时长超过此值,将自动停止 DSW 实例。

示例值:60
IdleTimeInMinutesinteger<int32>

实例当前闲置时长,单位是分钟。

示例值:30
变更历史
变更时间变更内容概要操作
2022-09-21
新增OpenAPI,获取闲置实例自动关机策略