昇腾社区首页
中文
注册

修改模板镜像

接口功能

修改一个模板中一个或多个组件使用的镜像。

接口格式

操作类型:PATCH

URL:https://{ip}:{port}/icsmanager/v1/inclearning/template

请求参数

参数

是否必选

说明

取值要求

name

必选

模板名。

系统中内置的模板,目前仅支持“ics-center”。

componentImages

必选

组件镜像字典。

组件名必须是系统中已有的组件名称。镜像名为形如“name:tag”的字符串,总长不超过384个字符。其中name部分支持大小写字母、数字和其他字符(:-._/),且只能以大小写字母或数字开头。tag部分支持大小写字母、数字和其他字符(-._),但不允许设置为latest,且只能以大小写字母、数字或下划线开头。

使用样例

请求样例:

PATCH https://<ip>:<port>/icsmanager/v1/inclearning/template

请求消息体:

{
    "template": "ics-center",
    "componentImages": {
        "componentName": "image:tag",
        "componentName": "image:tag",
    }
}

响应样例:

{
    "status": "00000000",
    "msg": "success"
}

响应状态码:200

输出说明

参数

类型

说明

status

string

状态码。

msg

string

状态描述。