POST /api/ptables { "ptable": { "name": "", "layout": "d-i partman-auto/disk" } } 422 { "error": { "id": null, "errors": { "name": [ "can't be blank" ] }, "full_messages": [ "Name can't be blank" ] } }
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 , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
ptable[layout] Required |
Validations:
|
ptable[snippet] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
ptable[audit_comment] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
ptable[locked] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Determina si una plantilla està bloquejada o no per a l’edició Validations:
|
ptable[os_family] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Validations:
|
ptable[operatingsystem_ids] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Array of operating system IDs to associate with the partition table Validations:
|
ptable[host_ids] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Array of host IDs to associate with the partition table Validations:
|
ptable[hostgroup_ids] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
Array of host group IDs to associate with the partition table Validations:
|
ptable[location_ids] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
SUBSTITUEIX les ubicacions amb els ID donats Validations:
|
ptable[organization_ids] Optional , <span class="translation_missing" title="translation missing: ca.apipie.nil_allowed">Nil Allowed</span> |
SUBSTITUEIX les organitzacions amb els ID donats. Validations:
|