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

编辑镜像

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

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

本接口用于编辑镜像的名称。

请求方法

POST

请求参数

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

名称

类型

是否必选

示例值

描述

Action

String

UpdateImage

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

Version

String

2021-04-30

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

image_id

String

imagespnwnf****

镜像 ID。

image_name

String

myimage

镜像名称。

description

String

test

镜像的描述信息。

返回数据


请求示例

POST https://veenedge.volcengineapi.com/?Action=UpdateImage&Version=2021-04-30
&<其他公共参数>
{
  "image_id":"imagespnwnf****",
  "image_name":"myimage"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202305301952125CB33303249FA388****",
        "Action": "UpdateImage",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    }
}

错误码

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