partitionTableDiskPartition_create

POST users/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions

Creates a new physical partition in a disk.

Please refer to partition for a complete list of all the partition attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • uid (required): the user name (login name) of the user that has created the appliance
  • ptid (required): the id of the partitionTable
  • aid (required): the id of the appliance
  • did (required): the id of the disk

HTTP Request Body Parameters

A partition object

Example Request

curl "https://uforge.example.com/apiusers/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<partition xmlns:ns0="http://www.usharesoft.com/uforge">
        <fstype>lvm2</fstype>
</partition>