全部文档
当前文档

暂无内容

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

文档中心

修改镜像属性信息

请求参数

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

待修改属性的镜像ID。
16f55e1d-8ab3-4026-ba4d-5ae9e6f083db

Name String

新镜像的名称。
2-64个字符,支持中文、字母、数字以及-_@#.字符

OsVersion String

版本名称

CloudInitSupport Boolean

客户自行安装cloudinit后,需要将该值修改为true,本接口取值:true,false

返回参数

参数名称
类型
描述
RequestId String
示例值:bd8a024-9f23-43ba-bfd7-402da9027004
Return Boolean
示例值:true

请求示例

curl -X GET|POST
'http://kec.api.ksyun.com/?Action=ModifyImageAttribute&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=xxx&Name=xxx&OsVersion=xxx&CloudInitSupport=xxx'

返回示例

JSON格式

{
"RequestId":"bd8a024-9f23-43ba-bfd7-402da9027004",
"Return":true
}

错误码

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

错误码
错误信息
Http状态码
描述
UnauthorizedOperationThe Operation is unauthorized400操作未经授权
ImageIdInvalidParameterValueAn invalid or out-of-range value was supplied for the "ImageId" parameter.400“镜像ID”参数的取值无效或者超出有效范围
ModifyImageLimitModifications are not allowed during the image creation process, please try again later.400镜像制作过程中不允许修改,请稍后再试
InternalError{"RequestId":"52c58bdd-e87d-438e-a9bd-efa8cce91040001","Error":{"Code":"InternalError","Message":"region not config"}}400
纯净模式常规模式

纯净模式

点击可全屏预览文档内容