请求参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见
公共请求参数。
Action
|
String
|
是
| 公共参数,本接口取值:SwitchImageType。 |
Version
|
String
|
是
| 公共参数,本接口取值:2016-03-04。 |
ImageId.N
|
String
|
是
| |
返回参数
RequestId
|
String
| 示例值:KEC-d2ac3a04-d7cc-4037-9d81-b0e2c7366317967004 |
ImageErrorResponses
|
Object[]
| |
Result
|
Boolean
| |
Reason
|
String
| 示例值:The snapshot associated with multiple images,does not support switch type . |
ImageId
|
String
| 示例值:899976af-13ee-49c5-baf3-870e530abac1 |
请求示例
curl -X GET|POST
'http://kec.api.ksyun.com/?Action=SwitchImageType&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":"KEC-d2ac3a04-d7cc-4037-9d81-b0e2c7366317967004", "Reason":"The snapshot associated with multiple images,does not support switch type .", "ImageId":"899976af-13ee-49c5-baf3-870e530abac1" "Reason":"The snapshot associated with multiple images,does not support switch type .", "ImageId":"ced80e75-ffee-4c44-bd08-df351486fa74" }

错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码
ImageIdInvalidParameterValue | An invalid or out-of-range value was supplied for the "ImageId" parameter. | 400 | “镜像ID”参数的取值无效或者超出有效范围 |
ParameterLimitExceeded | ParameterLimitExceeded | 400 | 参数数量超过限制 |