POST users/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions
Summary
- Method:
POST
- Response Code:
201
- Response Formats:
application/xml
application/json
- Since:
UForge 2.1
Creates a new physical partition in a disk.
Please refer to partition-object
for a complete list of all the partition
attributes.
- Requires Authentication:
true
- Entitlements Required:
appliance_create
uid
(required): the user name (login name) of theuser-object
that has created the applianceptid
(required): the id of thepartitiontable-object
aid
(required): the id of theappliance-object
did
(required): the id of thedisk-object
A partition-object
object
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"-H "Content-type: 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>
appliance-object
appliancepartitiontablediskpartition-api-resources
appliancepartitiontablelogicalgroup-api-resources
appliancepartitiontablelogicalvolume-api-resources
partition-object
partitionTableDiskLogicalPartition-create
partitionTableDiskLogicalPartition-delete
partitionTableDiskLogicalPartition-deleteAll
partitionTableDiskLogicalPartition-get
partitionTableDiskLogicalPartition-getAll
partitionTableDiskLogicalPartition-update
partitionTableDiskPartition-delete
partitionTableDiskPartition-deleteAll
partitionTableDiskPartition-get
partitionTableDiskPartition-getAll
partitionTableDiskPartition-update
partitiontable-object