POST /api/smart_proxies/:id/import_puppetclasses
Importar classes de puppet a partir do proxy de puppet

POST /api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses
Classes de puppet de importação do proxy do puppet para um ambiente

POST /api/environments/:environment_id/smart_proxies/:id/import_puppetclasses
Classes de puppet de importação do proxy do puppet para um ambiente

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.

smart_proxy_id
opcional

Validations:

  • Must be a String

environment_id
opcional

Validations:

  • Must be a String

dryrun
opcional

Validations:

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

except
opcional

Faixa delimitada por vírgulas opcional sendo “nova”, “atualizada” ou “obsoleta” que seja utilizada para limitar as classes importadas de Puppet

Validations:

  • Must be a String


GET /api/environments
Listar todos os ambientes

GET /api/puppetclasses/:puppetclass_id/environments
Listar ambientes de uma classe Puppet

GET /api/locations/:location_id/environments
Listar ambientes por localização

GET /api/organizations/:organization_id/environments
Listar ambientes por organização

Parâmentros

Nome parâmetro Descrição
puppetclass_id
opcional

ID da classe puppet

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
location
location_id
name
organization
organization_id

GET /api/environments/:id
Mostrar um ambiente

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/environments
Criar um ambiente

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

environment
requerido

Validations:

  • Must be a Hash

environment[name]
requerido

Validations:

  • Must be a String

environment[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

environment[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type


PUT /api/environments/:id
Atualizar um ambiente

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.

environment
requerido

Validations:

  • Must be a Hash

environment[name]
opcional

Validations:

  • Must be a String

environment[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

environment[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type


DELETE /api/environments/:id
Apagar um ambiente

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.