GET /api/ptables
List all partition tables

GET /api/operatingsystems/:operatingsystem_id/ptables
List all partition tables for an operating system

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

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

Parâmentros

Nome parâmetro Descrição
operatingsystem_id
opcional

ID do sistema operacional


Value:

Must be String

search
opcional

filtrar resultados


Value:

Must be String

order
opcional

ordenar resultados


Value:

Must be String

page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por requisições


Value:

Must be String


GET /api/ptables/:id
Show a partition table

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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
Criar uma tabela de partição

Parâmentros

Nome parâmetro Descrição
ptable
requerido

Value:

Must be a Hash

ptable[name]
requerido

Value:

Must be String

ptable[layout]
requerido

Value:

Must be String

ptable[snippet]
opcional , nulo permitido

Value:

Must be 'true' or 'false'

ptable[audit_comment]
opcional , nulo permitido

Value:

Must be String

ptable[locked]
opcional , nulo permitido

Se deve ou não o template está bloqueado para edição


Value:

Must be 'true' or 'false'

ptable[os_family]
opcional , nulo permitido

Value:

Must be String

ptable[operatingsystem_ids]
opcional , nulo permitido

Array of operating system IDs to associate with the partition table


Value:

Must be an array of any type

ptable[host_ids]
opcional , nulo permitido

Array of host IDs to associate with the partition table


Value:

Must be an array of any type

ptable[hostgroup_ids]
opcional , nulo permitido

Array of host group IDs to associate with the partition table


Value:

Must be an array of any type


GET /api/ptables/revision

Parâmentros

Nome parâmetro Descrição
version
opcional

versão do template


Value:

Must be String


PUT /api/ptables/:id
Update a partition table

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be String

ptable
requerido

Value:

Must be a Hash

ptable[name]
opcional

Value:

Must be String

ptable[layout]
opcional

Value:

Must be String

ptable[snippet]
opcional , nulo permitido

Value:

Must be 'true' or 'false'

ptable[audit_comment]
opcional , nulo permitido

Value:

Must be String

ptable[locked]
opcional , nulo permitido

Se deve ou não o template está bloqueado para edição


Value:

Must be 'true' or 'false'

ptable[os_family]
opcional , nulo permitido

Value:

Must be String

ptable[operatingsystem_ids]
opcional , nulo permitido

Array of operating system IDs to associate with the partition table


Value:

Must be an array of any type

ptable[host_ids]
opcional , nulo permitido

Array of host IDs to associate with the partition table


Value:

Must be an array of any type

ptable[hostgroup_ids]
opcional , nulo permitido

Array of host group IDs to associate with the partition table


Value:

Must be an array of any type


DELETE /api/ptables/:id
Apagar uma tabela de partição

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be String


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

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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

ptable
requerido

Value:

Must be a Hash

ptable[name]
requerido

nome do template


Value:

Must be String