删除镜像预热
此接口用于删除节点上预热的镜像,支持指定要删除的容器 Bundles 数量。
接口描述
通信协议:HTTP
URL: DELETE /api/v1/image/:id/warm-up/nodes
传参方式:body、path
请求参数
字段名 | 类型 | 是否必填 | 说明 | 位置 |
---|---|---|---|---|
id | string | 是 | 镜像 ID | path |
nodes | Nodes[ ] | 是 | 要删除镜像预热的节点 ID 信息 | body |
Nodes
字段名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
id | string | 是 | 节点 ID |
bundles | number | 是 | 需要删除的预热 Bundles 数量 |
响应参数
删除成功,则响应体 message 字段返回“success”。
请求示例
curl --location --request delete 'http://localhost:3001/api/v1/image/7e166ab837224ce492b6accf86cce5cd/warm-up/nodes' \
--header 'Content-Type: application/json' \
--data-raw '
{
"nodes": [{
"id": "7054aed81002169111495241115e69f5c",
"bundles": 10
}]
}'
响应示例
{
"status": 200,
"message": "success",
"fieldErrors": null,
"data": {}
}
错误码
具体请参见 错误码说明。