.. function:: POST users/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions/{pid}/lpartitions
Summary
- Method:
POST
- Response Code:
201
- Response Formats:
application/xml
application/json
- Since:
UForge 2.1
Create a logical partition in a physical partition.
Please refer to :ref:`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 the :ref:`user-object` that created the appliancepid
(required): the id of the :ref:`partition-object`ptid
(required): the id of the :ref:`partitiontable-object`aid
(required): the id of the :ref:`appliance-object`did
(required): the id of the :ref:`disk-object`
A :ref:`partition-object` object
curl "https://uforge.example.com/apiusers/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions/{pid}/lpartitions" -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):
<ns0:partition xmlns:ns0="http://www.usharesoft.com/uforge">
<name>logicalPartition1</name>
<mpoint>/data</mpoint>
<size>1024</size>
<label>/data</label>
<fstype>ext3</fstype>
</ns0:partition>
.. seealso:: * :ref:`appliance-object` * :ref:`appliancepartitiontablediskpartition-api-resources` * :ref:`appliancepartitiontablelogicalgroup-api-resources` * :ref:`appliancepartitiontablelogicalvolume-api-resources` * :ref:`partition-object` * :ref:`partitionTableDiskLogicalPartition-delete` * :ref:`partitionTableDiskLogicalPartition-deleteAll` * :ref:`partitionTableDiskLogicalPartition-get` * :ref:`partitionTableDiskLogicalPartition-getAll` * :ref:`partitionTableDiskLogicalPartition-update` * :ref:`partitionTableDiskPartition-create` * :ref:`partitionTableDiskPartition-delete` * :ref:`partitionTableDiskPartition-deleteAll` * :ref:`partitionTableDiskPartition-get` * :ref:`partitionTableDiskPartition-getAll` * :ref:`partitionTableDiskPartition-update` * :ref:`partitiontable-object`