POST /api/smart_proxies/:id/import_puppetclasses
Import puppet classes from puppet proxy

POST /api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses
Import klas puppet ze środowiska puppet proxy.

POST /api/environments/:environment_id/smart_proxies/:id/import_puppetclasses
Import klas puppet ze środowiska puppet proxy.

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

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
opcjonalny

Validations:

  • Must be a String

environment_id
opcjonalny

Validations:

  • Must be a String

dryrun
opcjonalny

Validations:

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

except
opcjonalny

Opcjonalnie oddzielony przecinkami ciąg zawierający albo “nowy”, “zaktualizowane” lub “przestarzałe”, który służy do ograniczania zaimportowanych klas puppet

Validations:

  • Must be a String


GET /api/environments
Lista wszystkich środowisk

GET /api/puppetclasses/:puppetclass_id/environments
Lista środowisk klasy Puppet

GET /api/locations/:location_id/environments
Lista środowisk na lokalizację

GET /api/organizations/:organization_id/environments
Lista środowisk na organizację

Parametry

Nazwa parametru Opis
puppetclass_id
opcjonalny

ID klasy Puppet

Validations:

  • Must be a String

location_id
opcjonalny

Zakres w zależności od lokalizacji

Validations:

  • Must be a Integer

organization_id
opcjonalny

Zakres w zależności od organizacji

Validations:

  • Must be a Integer

search
opcjonalny

rezultat filtrowania

Validations:

  • Must be a String

order
opcjonalny

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opcjonalny

Page number, starting at 1

Validations:

  • Must be a number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • Must be a number.

Search fields

Field name Typ Possible values
location
location_id
name
organization
organization_id

GET /api/environments/:id
Pokaż środowisko

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

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
Utwórz środowisko

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

environment
wymagany

Validations:

  • Must be a Hash

environment[name]
wymagany

Validations:

  • Must be a String

environment[location_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ lokalizacje o podanym id

Validations:

  • Must be an array of any type

environment[organization_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ organizacje o podanym id

Validations:

  • Must be an array of any type


PUT /api/environments/:id
Edytuj środowisko

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

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
wymagany

Validations:

  • Must be a Hash

environment[name]
opcjonalny

Validations:

  • Must be a String

environment[location_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ lokalizacje o podanym id

Validations:

  • Must be an array of any type

environment[organization_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ organizacje o podanym id

Validations:

  • Must be an array of any type


DELETE /api/environments/:id
Usuń środowisko

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

Validations:

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