JSON payload to create a CentOS 7 disk image from the publicly available CentOS 7 Cloud Image.
Request Parameters
The below parameters should be used with the sample payload.
Please note you will need to alter {{placeholder}} values to match your environment, e.g. subnet name and UUID, cluster name and UUID.
Request URL:
https://[prism_central_ip_address]:9440/api/nutanix/v3/images
Request method:
POST
Payload
{
"spec": {
"name": "CentOS Cloud Image from centos.org",
"resources": {
"image_type": "DISK_IMAGE",
"source_uri": "https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1905.qcow2"
},
"description": "Image created from CentOS cloud imaged, hosted on centos.org"
},
"api_version": "3.1.0",
"metadata": {
"kind": "image",
"categories": {},
"name": "CentOS Cloud Image from centos.org"
}
}