You need to enable JavaScript to run this app.
导航
查询镜像预热信息 GetImagePreheating
最近更新时间:2024.08.08 14:51:25首次发布时间:2024.08.08 14:51:25
复制全文
我的收藏
有用
有用
无用
无用

查询指定镜像的预热进度。

请求说明

  • 请求方式:GET
  • 请求地址:https://open.volcengineapi.com?Action=GetImagePreheating&Version=2023-10-30

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringGetImagePreheating接口名称。当前 API 的名称为 GetImagePreheating
VersionString2023-10-30接口版本。当前 API 的版本为 2023-10-30
ProductIdString1749281594201xxxxxx业务 ID,可在「云手机控制台-业务管理-业务详情」中获取
ImageIdListStringimg-xxxxx1,img-xxxxx2指定需要查询的镜像 ID 列表。多个镜像 ID 使用英文 "," 分隔。列表最大长度为 100。
DcIdStringgdsz-ctcucm-01-xxxxx机房 ID。用于指定希望查询的镜像所在的特定机房。若该参数置空,系统将默认返回所有机房中的指定镜像的预热数据。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数类型示例值描述
RowArray of ImagePreheating-镜像预热数据。参看 ImagePreheating 数据结构。

ImagePreheating

参数类型示例值描述
ImageIdStringimg-xxxxx1镜像 ID。
PreheatFailedProgressInteger5镜像预热失败的比例,单位为 %。
PreheatSuccessProgressInteger90镜像预热完成的比例,单位为 %

请求示例

GET https://open.volcengineapi.com?Action=GetImagePreheating&Version=2023-10-30&ProductId=1749281594201xxxxxx&ImageIdList=img-xxxxx1,img-xxxxx2&DcId=gdsz-ctcucm-01-xxxxx

返回示例

{
    "ResponseMetadata": {
        "Action": "GetImagePreheating",
        "Region": "cn-north-1",
        "Service": "ACEP",
        "Version": "2023-10-30",
        "RequestId": "20230604110420****100232280022D31"
    },
    "Result": {
        "Row": [
            {
                "ImageId": "img-xxxxx1",
                "PreheatFailedProgress": 5,
                "PreheatSuccessProgress": 90
            },
            {
                "ImageId": "img-xxxxx2",
                "PreheatFailedProgress": 0,
                "PreheatSuccessProgress": 100
            }
        ]
    }
}

错误码

您可访问公共错误码,获取更多错误码信息。