POST /api/ptables/import { "ptable": { "name": "ptable157", "template": "b" } } 201 { "template": "b", "name": "ptable157", "id": 1007981804, "snippet": false, "template_kind_id": null, "created_at": "2018-11-16T10:03:45.916Z", "updated_at": "2018-11-16T10:03:45.931Z", "locked": false, "default": false, "vendor": null, "os_family": "Redhat" }
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] optional |
template name Validations:
|
ptable[template] optional |
template contents including metadata 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:
|
options optional |
Validations:
|
options[force] optional , nil allowed |
use if you want update locked templates Validations:
|
options[associate] optional , nil allowed |
determines when the template should associate objects based on metadata, new means only when new template is being created, always means both for new and existing template which is only being updated, never ignores metadata Validations:
|
options[lock] optional , nil allowed |
lock imported templates (false by default) Validations:
|
options[default] optional , nil allowed |
makes the template default meaning it will be automatically associated with newly created organizations and locations (false by default) Validations:
|