POST /api/ptables/import { "ptable": { "name": "ptable212", "template": "b" } } 201 { "template": "b", "name": "ptable212", "id": 1007981800, "snippet": false, "template_kind_id": null, "created_at": "2019-09-11T14:34:42.858Z", "updated_at": "2019-09-11T14:34:42.873Z", "locked": false, "default": false, "vendor": null, "os_family": "Redhat" }
Nazwa parametru | Opis |
---|---|
location_id opcjonalny |
Zakres w zależności od lokalizacji Validations:
|
organization_id opcjonalny |
Zakres w zależności od organizacji Validations:
|
ptable wymagany |
Validations:
|
ptable[name] opcjonalny |
nazwa szablonu Validations:
|
ptable[template] opcjonalny |
template contents including metadata Validations:
|
ptable[location_ids] opcjonalny , nil dopuszczalny |
ZMIEŃ lokalizacje o podanym id Validations:
|
ptable[organization_ids] opcjonalny , nil dopuszczalny |
ZMIEŃ organizacje o podanym id Validations:
|
options opcjonalny |
Validations:
|
options[force] opcjonalny , nil dopuszczalny |
use if you want update locked templates Validations:
|
options[associate] opcjonalny , nil dopuszczalny |
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] opcjonalny , nil dopuszczalny |
lock imported templates (false by default) Validations:
|
options[default] opcjonalny , nil dopuszczalny |
makes the template default meaning it will be automatically associated with newly created organizations and locations (false by default) Validations:
|