GET /api/ptables
Listar todas as tabelas de partição

GET /api/operatingsystems/:operatingsystem_id/ptables
Lista de todas as tabelas de partições para um sistema operacional

GET /api/locations/:location_id/ptables
Lista de todas as tabelas de partições por localização

GET /api/organizations/:organization_id/ptables
Lista de todas as tabelas de partições por organização

Parâmentros

Nome parâmetro Descrição
operatingsystem_id
opcional

ID do sistema operacional

Validations:

  • Must be a String

location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Classificar campo e ordem, ex.: ‘id DESC’

Validations:

  • Must be a String

page
opcional

Número de página, iniciando em 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • Must be a number.

Pesquisar campos

Nome do campo Tipo Valores possíveis
default true, false
family
layout
location
location_id
locked true, false
name
organization
organization_id
snippet true, false
template
vendor

GET /api/ptables/:id
Mostrar a tabela de partição

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
requerido

Validations:

  • Must be a Hash

ptable[name]
requerido

Validations:

  • Must be a String

ptable[description]
opcional , nulo permitido

Validations:

  • Must be a String

ptable[layout]
requerido

Validations:

  • Must be a String

ptable[snippet]
opcional , nulo permitido

Validations:

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

ptable[audit_comment]
opcional , nulo permitido

Validations:

  • Must be a String

ptable[locked]
opcional , nulo permitido

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

Validations:

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

ptable[os_family]
opcional , nulo permitido

Validations:

  • Must be a String

ptable[operatingsystem_ids]
opcional , nulo permitido

Matriz de IDs de sistema operacional para associar com a tabela de partição

Validations:

  • Must be an array of any type

ptable[host_ids]
opcional , nulo permitido

Matriz de IDs de host para associar a tabela de partição

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
opcional , nulo permitido

Disposição de IDs de grupo host para associar com a tabela de partição

Validations:

  • Must be an array of any type

ptable[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type


POST /api/ptables/import
Importar um modelo de provisionamento

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
requerido

Validations:

  • Must be a Hash

ptable[name]
opcional

nome do modelo

Validations:

  • Must be a String

ptable[template]
opcional

conteúdos do modelo incluindo metadados

Validations:

  • Must be a String

ptable[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type

options
opcional

Validations:

  • Must be a Hash

options[force]
opcional , nulo permitido

use se você deseja atualizar modelos bloquados

Validations:

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

options[associate]
opcional , nulo permitido

determina quando o modelo deve associar objetos com base nos metadados. Novo significa somente quando um novo modelo está sendo criado; Sempre é para modelos novos e existentes que somente estão sendo atualizados; nunca ignora os metadados.

Validations:

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

options[lock]
opcional , nulo permitido

bloquear modelos importados (falso por padrão)

Validations:

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

options[default]
opcional , nulo permitido

faz o padrão do modelo, o que significa que ele será automaticamente associado a organizações e locais criados recentemente (falso por padrão)

Validations:

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


GET /api/ptables/revision

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

version
opcional

versão do modelo

Validations:

  • Must be a String


PUT /api/ptables/:id
Atualizar Tabela de partição

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

ptable
requerido

Validations:

  • Must be a Hash

ptable[name]
opcional

Validations:

  • Must be a String

ptable[description]
opcional , nulo permitido

Validations:

  • Must be a String

ptable[layout]
opcional

Validations:

  • Must be a String

ptable[snippet]
opcional , nulo permitido

Validations:

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

ptable[audit_comment]
opcional , nulo permitido

Validations:

  • Must be a String

ptable[locked]
opcional , nulo permitido

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

Validations:

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

ptable[os_family]
opcional , nulo permitido

Validations:

  • Must be a String

ptable[operatingsystem_ids]
opcional , nulo permitido

Matriz de IDs de sistema operacional para associar com a tabela de partição

Validations:

  • Must be an array of any type

ptable[host_ids]
opcional , nulo permitido

Matriz de IDs de host para associar a tabela de partição

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
opcional , nulo permitido

Disposição de IDs de grupo host para associar com a tabela de partição

Validations:

  • Must be an array of any type

ptable[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

ptable[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type


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

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String


POST /api/ptables/:id/clone
Clonar um template

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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
requerido

Validations:

  • Must be a Hash

ptable[name]
requerido

nome do modelo

Validations:

  • Must be a String


GET /api/ptables/:id/export
Exportar um modelo de partição para o ERB

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

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