You need to enable JavaScript to run this app.
导航

查看镜像详情

最近更新时间2023.07.03 16:32:41

首次发布时间2022.11.23 10:27:19

本接口用于获取镜像详情。

请求方法

GET

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

名称

类型

是否必选

示例值

描述

Action

String

GetImage

公共参数。该参数表示接口名称。取值:GetImage。

Version

String

2021-04-30

公共参数。该参数表示接口版本。取值:2021-04-30。

image_id

String

imagespnwnf****

镜像 ID。您可以通过 ListImages 接口查询镜像 ID。

返回数据

名称

类型

示例值

描述

image

Image

请参见返回示例

镜像详情。

请求示例

GET https://veenedge.volcengineapi.com/?Action=GetImage&Version=2021-04-30
&image_id=imagespnwnf****
&<其他公共参数>

返回示例

{
  "ResponseMetadata": {
    "RequestId": "202110222135390102250842170003****",
    "Action": "GetImage",
    "Version": "2021-04-30",
    "Service": "veenedge",
    "Region": "cn-north-1"
  },
  "Result": {
    "image": {
      "id": "imagespnwnf****",
      "name": "helloworld",
      "description": "test",
      "system_arch": "Linux",
      "system_bit": "64位",
      "system_type": "CentOS",
      "system_version": "8.3",
      "disk_size": 50,
      "property": "UrlImage",
      "status": "Online",
      "is_enable": false,
      "label": null,
      "create_time": "2021-05-26T06:15:50+08:00",
      "update_time": "2021-09-22T16:55:39+08:00"
    }
  }
}

错误码

如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码