GET /api/ptables
Som alle partitie tabellen op

GET /api/operatingsystems/:operatingsystem_id/ptables
Som alle partitie tabellen voor een besturingssysteem op

GET /api/locations/:location_id/ptables
Som alle partitie tabellen per lokatie op

GET /api/organizations/:organization_id/ptables
Som alle partitie tabellen per organisatie op

Params

Param name Description
operatingsystem_id
optional

ID van het besturingssysteem

Validations:

  • Must be a String

location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

search
optional

filter resultaten

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

Search fields

Field name Type Possible values
default true, false
family
layout
location
location_id
locked true, false
name
organization
organization_id
snippet true, false
template
vendor

GET /api/ptables/:id
Toon een partitie tabel

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/ptables
Maak een partitietabel

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
required

Validations:

  • Must be a Hash

ptable[name]
required

Validations:

  • Must be a String

ptable[description]
optional , nil allowed

Validations:

  • Must be a String

ptable[layout]
required

Validations:

  • Must be a String

ptable[snippet]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

ptable[audit_comment]
optional , nil allowed

Validations:

  • Must be a String

ptable[locked]
optional , nil allowed

Of de template wel of niet is gelocked voor bewerken

Validations:

  • Must be one of: true, false, 1, 0.

ptable[os_family]
optional , nil allowed

Validations:

  • Must be a String

ptable[operatingsystem_ids]
optional , nil allowed

Array van besturingssysteem IDs om te associeren met de partitie tabel

Validations:

  • Must be an array of any type

ptable[host_ids]
optional , nil allowed

Array van host IDs om te associeren met de partitie tabel

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
optional , nil allowed

Array van host groep IDs om te associeren met de partitie tabel

Validations:

  • Must be an array of any type

ptable[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type


POST /api/ptables/import
Import a provisioning template

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
required

Validations:

  • Must be a Hash

ptable[name]
optional

template naam

Validations:

  • Must be a String

ptable[template]
optional

template contents including metadata

Validations:

  • Must be a String

ptable[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type

options
optional

Validations:

  • Must be a Hash

options[force]
optional , nil allowed

use if you want update locked templates

Validations:

  • Must be one of: true, false, 1, 0.

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:

  • Must be one of: new, always, never.

options[lock]
optional , nil allowed

Beveilig geïmporteerde sjablonen (standaard uit)

Validations:

  • Must be one of: true, false, 1, 0.

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:

  • Must be one of: true, false, 1, 0.


GET /api/ptables/revision

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

version
optional

template versie

Validations:

  • Must be a String


PUT /api/ptables/:id
Wijzig een partitie tabel

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String

ptable
required

Validations:

  • Must be a Hash

ptable[name]
optional

Validations:

  • Must be a String

ptable[description]
optional , nil allowed

Validations:

  • Must be a String

ptable[layout]
optional

Validations:

  • Must be a String

ptable[snippet]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

ptable[audit_comment]
optional , nil allowed

Validations:

  • Must be a String

ptable[locked]
optional , nil allowed

Of de template wel of niet is gelocked voor bewerken

Validations:

  • Must be one of: true, false, 1, 0.

ptable[os_family]
optional , nil allowed

Validations:

  • Must be a String

ptable[operatingsystem_ids]
optional , nil allowed

Array van besturingssysteem IDs om te associeren met de partitie tabel

Validations:

  • Must be an array of any type

ptable[host_ids]
optional , nil allowed

Array van host IDs om te associeren met de partitie tabel

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
optional , nil allowed

Array van host groep IDs om te associeren met de partitie tabel

Validations:

  • Must be an array of any type

ptable[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type


DELETE /api/ptables/:id
Verwijder een partitie tabel

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String


POST /api/ptables/:id/clone
Cloon een template

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

ptable
required

Validations:

  • Must be a Hash

ptable[name]
required

template naam

Validations:

  • Must be a String


GET /api/ptables/:id/export
Exporteer een partitie template naar ERB

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.