GET /api/ptables
Elenca tutte le tabelle delle partizioni

GET /api/operatingsystems/:operatingsystem_id/ptables
Elenca tutte le tabelle delle partizioni per un sistema operativo

GET /api/locations/:location_id/ptables
List all partition tables per location

GET /api/organizations/:organization_id/ptables
List all partition tables per organization

Parametri

Nome parametro Descrizione
operatingsystem_id
opzionale

ID del sistema operativo

Validations:

  • Must be a String

location_id
opzionale

Scopo per posizioni

Validations:

  • Must be a Integer

organization_id
opzionale

Scopo per organizzazioni

Validations:

  • Must be a Integer

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

Search fields

Field name Tipo 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
Mostra una tabella delle partizioni

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

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
Crea una tabella delle partizioni

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
richiesto

Validations:

  • Must be a Hash

ptable[name]
richiesto

Validations:

  • Must be a String

ptable[description]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[layout]
richiesto

Validations:

  • Must be a String

ptable[snippet]
opzionale , consentito nil

Validations:

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

ptable[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[locked]
opzionale , consentito nil

Indica se il template è stato bloccato per la modifica

Validations:

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

ptable[os_family]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[operatingsystem_ids]
opzionale , consentito nil

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
opzionale , consentito nil

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
opzionale , consentito nil

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

ptable[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type


POST /api/ptables/import
Import a provisioning template

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
richiesto

Validations:

  • Must be a Hash

ptable[name]
opzionale

nome template

Validations:

  • Must be a String

ptable[template]
opzionale

template contents including metadata

Validations:

  • Must be a String

ptable[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

ptable[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type

options
opzionale

Validations:

  • Must be a Hash

options[force]
opzionale , consentito nil

use if you want update locked templates

Validations:

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

options[associate]
opzionale , consentito nil

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]
opzionale , consentito nil

lock imported templates (false by default)

Validations:

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

options[default]
opzionale , consentito nil

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

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

version
opzionale

versione template

Validations:

  • Must be a String


PUT /api/ptables/:id
Aggiorna una tabella delle partizioni

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String

ptable
richiesto

Validations:

  • Must be a Hash

ptable[name]
opzionale

Validations:

  • Must be a String

ptable[description]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[layout]
opzionale

Validations:

  • Must be a String

ptable[snippet]
opzionale , consentito nil

Validations:

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

ptable[audit_comment]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[locked]
opzionale , consentito nil

Indica se il template è stato bloccato per la modifica

Validations:

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

ptable[os_family]
opzionale , consentito nil

Validations:

  • Must be a String

ptable[operatingsystem_ids]
opzionale , consentito nil

Array of operating system IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[host_ids]
opzionale , consentito nil

Array of host IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
opzionale , consentito nil

Array of host group IDs to associate with the partition table

Validations:

  • Must be an array of any type

ptable[location_ids]
opzionale , consentito nil

SOSTITUIRE le posizioni con gli id dati

Validations:

  • Must be an array of any type

ptable[organization_ids]
opzionale , consentito nil

SOSTITUIRE le organizzazioni con gli id dati

Validations:

  • Must be an array of any type


DELETE /api/ptables/:id
Cancella una tabella delle partizioni

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String


POST /api/ptables/:id/clone
Clone a template

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

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
richiesto

Validations:

  • Must be a Hash

ptable[name]
richiesto

nome template

Validations:

  • Must be a String


GET /api/ptables/:id/export
Export a partition template to ERB

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

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