参数名称 | 类型 | 必填 | 描述 |
---|
Action | String | 是 | 公共参数,本接口取值:ModifyImageAttribute。 |
Version | String | 是 | 公共参数,本接口取值:2016-03-04。 |
ImageId | String | 是 | 待修改属性的镜像ID。 |
Name | String | 否 | 新镜像的名称。 |
OsVersion | String | 否 | 版本名称 |
CloudInitSupport | Boolean | 否 | 客户自行安装cloudinit后,需要将该值修改为true,本接口取值:true,false |
参数名称 | 类型 | 描述 |
---|
RequestId | String | 示例值:bd8a024-9f23-43ba-bfd7-402da9027004 |
Return | Boolean | 示例值:true |
JSON格式
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
错误码 | 错误信息 | Http状态码 | 描述 |
---|
UnauthorizedOperation | The Operation is unauthorized | 400 | 操作未经授权 |
ImageIdInvalidParameterValue | An invalid or out-of-range value was supplied for the "ImageId" parameter. | 400 | “镜像ID”参数的取值无效或者超出有效范围 |
ModifyImageLimit | Modifications 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 |
纯净模式