POST /api/ptables
{
"ptable": {
"name": "ptable_test",
"layout": "d-i partman-auto/disk"
}
}
201
{
"layout": "d-i partman-auto/disk",
"locked": false,
"os_family": null,
"created_at": "2018-11-16 10:03:45 UTC",
"updated_at": "2018-11-16 10:03:45 UTC",
"name": "ptable_test",
"id": 1007981804,
"operatingsystems": [],
"locations": [],
"organizations": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
ptable required |
Validations:
|
|
ptable[name] required |
Validations:
|
|
ptable[description] optional , nil allowed |
Validations:
|
|
ptable[layout] required |
Validations:
|
|
ptable[snippet] optional , nil allowed |
Validations:
|
|
ptable[audit_comment] optional , nil allowed |
Validations:
|
|
ptable[locked] optional , nil allowed |
Whether or not the template is locked for editing Validations:
|
|
ptable[os_family] optional , nil allowed |
Validations:
|
|
ptable[operatingsystem_ids] optional , nil allowed |
Array of operating system IDs to associate with the partition table Validations:
|
|
ptable[host_ids] optional , nil allowed |
Array of host IDs to associate with the partition table Validations:
|
|
ptable[hostgroup_ids] optional , nil allowed |
Array of host group IDs to associate with the partition table Validations:
|
|
ptable[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
ptable[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|