Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 2.32 KB

partitionTableDiskPartition_update.rst

File metadata and controls

73 lines (51 loc) · 2.32 KB

partitionTableDiskPartition_update

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

Summary

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

Updates a physical partition in a disk.

Please refer to partition-object 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-object that created the appliance
  • pid (required): the id of the partition-object
  • ptid (required): the id of the partitiontable-object
  • aid (required): the id of the appliance-object
  • did (required): the id of the disk-object

HTTP Request Body Parameters

A partition-object object

Example Request

curl "https://uforge.example.com/apiusers/{uid}/appliances/{aid}/installProfile/{ipid}/pt/{ptid}/disks/{did}/partitions/{pid}" -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):

  • 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-create
  • partitionTableDiskPartition-delete
  • partitionTableDiskPartition-deleteAll
  • partitionTableDiskPartition-get
  • partitionTableDiskPartition-getAll
  • partitiontable-object