A Windows or Linux ECS can be used to create a private image.
If you use a token for authentication, you must obtain the token and add X-Auth-Token to the request header of the IMS API when making an API call.
{
"name": "ims_test", //Image name (mandatory, string)
"description": "Image creation from an ECS", //Image description (optional, string)
"instance_id": "877a2cda-ba63-4e1e-b95f-e67e48b6129a", //ECS ID (mandatory, string)
"tags": [
"aaa.111",
"bbb.333",
"ccc.444"
] //Image tag list (optional, array of objects)
}
If the job status is SUCCESS, the private image is successfully created.
For details about status codes for request exceptions, see Status Codes.