Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 2.67 KB

partitionTableDiskLogicalPartition_update.rst

File metadata and controls

81 lines (59 loc) · 2.67 KB

partitionTableDiskLogicalPartition_update

.. function:: PUT users/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions/{pid}/lpartitions/{lpid}

Summary

  • Method: PUT
  • Response Code: 200
  • Response Formats: application/xml application/json
  • Since: UForge 2.1

Updates a logical partition information in a physical partition.

Please refer to :ref:`partition-object` for a complete list of all the partition attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

HTTP Request Body Parameters

A :ref:`partition-object` object

Example Request

curl "https://uforge.example.com/apiusers/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions/{pid}/lpartitions/{lpid}" -X PUT \
-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>logicalPartition1Updated</name>
        <mpoint>/data</mpoint>
        <size>2048</size>
        <label>/data2</label>
        <fstype>ext4</fstype>
</ns0:partition>
.. seealso::

         * :ref:`appliance-object`
         * :ref:`appliancepartitiontablediskpartition-api-resources`
         * :ref:`appliancepartitiontablelogicalgroup-api-resources`
         * :ref:`appliancepartitiontablelogicalvolume-api-resources`
         * :ref:`partition-object`
         * :ref:`partitionTableDiskLogicalPartition-create`
         * :ref:`partitionTableDiskLogicalPartition-delete`
         * :ref:`partitionTableDiskLogicalPartition-deleteAll`
         * :ref:`partitionTableDiskLogicalPartition-get`
         * :ref:`partitionTableDiskLogicalPartition-getAll`
         * :ref:`partitionTableDiskPartition-create`
         * :ref:`partitionTableDiskPartition-delete`
         * :ref:`partitionTableDiskPartition-deleteAll`
         * :ref:`partitionTableDiskPartition-get`
         * :ref:`partitionTableDiskPartition-getAll`
         * :ref:`partitionTableDiskPartition-update`
         * :ref:`partitiontable-object`