全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

自定义镜像预热

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:EnableImageCaching。
Version String
公共参数,本接口取值:2016-03-04。
ImageId.N String

预热的镜像ID。
——

返回参数

参数名称
类型
描述
RequestId String
示例值:3521113a-6cda-41e9-a1b3-e1d272c79501003
Return Boolean
示例值:true

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=EnableImageCaching&Version=2016-03-04'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: kec.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'ImageId.N=xxx'

返回示例

JSON格式

{
"RequestId":"3521113a-6cda-41e9-a1b3-e1d272c79501003",
"Return":"true"
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
HasBeenWarmedUpImageImage [{0}] has been warmed up.400镜像[{0}]已预热.
ImageSizeWarmUpLimitcan`t warm up the image greater than [{0}] G400镜像大于[{0}]G 不能预热.
AssembledImageNotSupportWarmUpAssembledImage Not Support WarmUp.400整机镜像不允许预热
ImageIdInvalidParameterValueAn invalid or out-of-range value was supplied for the "ImageId" parameter.400“镜像ID”参数的取值无效或者超出有效范围
LocalImageNotNeedWarmUpYou can use the local image to quickly start a KEC instance without caching the image.400本地镜像可快速开机,无需预热
WarmUpImageNumLimitThe cloud server supports a maximum of [{0}] warm-up images.400云服务器支持预热镜像的个数最多为[{0}]个.
ImageTypeInvalidParameterValueAn invalid or out-of-range value was supplied for the "ImageType" parameter.400“镜像类型”参数的取值无效或者超出有效范围.
ESSDVolumeImageNotSupportCachingThe specified image made from ESSD volume does not support caching.400ESSD盘制作的镜像不支持预热
纯净模式常规模式

纯净模式

点击可全屏预览文档内容