v4 API: Create Prism Central Image

November 23, 2022

by Chris Rasmussen

Intended Audience Level: Beginner/Intro

Code Sample Type: Snippet

Nutanix Technologies: Prism Central

Minimum Product Version: pc.2022.6

Script/Code Language: JSON Payload

REST API Sample? Yes

REST API Version: v4

This JSON payload is an example of a payload used to create a Prism Central image. This request is specific to the Nutanix v4 APIs and is not backwards compatible with v1, v2.0 or v3 APIs.

To use this code sample, replace {{centos7_url}} with the URL of the disk image you’d like to use and {{cluster_uuid}} with the ext_id of the image’s destination cluster, if required.

Code Sample Details

This section may be empty if additional code sample details are not available.
{
  "name": "centos7minimal",
  "type": "DISK_IMAGE",
  "description": "CentOS 7 x86_64 Minimal from v4 APIs",
  "source": {
    "url": "{{centos7_url}}",
    "allowInsecure": false,
    "$objectType": "vmm.v4.images.UrlSource"
  },
  "initialClusterLocations": [
    {
      "extId": "{{cluster_uuid}}"
    }
  ]
}

Related Resources