Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 2.04 KB

partitionTableDisk_create.rst

File metadata and controls

76 lines (54 loc) · 2.04 KB

partitionTableDisk_create

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

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 2.1

Creates a new physical disk to a partitioning table.

Please refer to disk-object for a complete list of all the partition table disk 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
  • ptid (required): the id of the partitiontable-object
  • aid (required): the id of the appliance-object

HTTP Request Body Parameters

A disk-object object

Example Request

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

<disk xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>sda</name>
    <partitionType>MSDOS</partitionType>
    <partition>
        <name>boot</name>
        <mpoint>/boot</mpoint>
        <size>256</size>
        <label>/boot</label>
        <fstype>ext3</fstype>
    </partition>
</disk>
  • appliance-object
  • appliancepartitiontabledisk-api-resources
  • appliancepartitiontablelogicalgroup-api-resources
  • appliancepartitiontablelogicalvolume-api-resources
  • disk-object
  • partitionTableDisk-delete
  • partitionTableDisk-deleteAll
  • partitionTableDisk-get
  • partitionTableDisk-getAll
  • partitionTableDisk-update
  • partitiontable-object