POST /api/smart_proxies/:id/import_puppetclasses
Importa le classi del puppet dal puppet proxy.

POST /api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses
Importa le classi del puppet dal puppet proxy per un ambiente

POST /api/environments/:environment_id/smart_proxies/:id/import_puppetclasses
Importa le classi del puppet dal puppet proxy per un ambiente

Params

Param Name Description
id
Required

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
Optional

Validations:

  • Must be String

environment_id
Optional

Validations:

  • Must be String

dryrun
Optional

Validations:

  • Must be ‘true’ or ‘false’ or ‘1’ or ‘0’

except
Optional

Testo opzionale delimitato da virgole contenente ‘new’, ‘updated’ o ‘obsolete’ usati per limitare le classi dei puppet importati

Validations:

  • Must be String


GET /api/environments
Elenca gli ambienti

GET /api/puppetclasses/:puppetclass_id/environments
Elenca ambienti della classe puppet

GET /api/locations/:location_id/environments
Elenca ambienti per posizione

GET /api/organizations/:organization_id/environments
Elenca gli ambienti per organizzazione

Params

Param Name Description
puppetclass_id
Optional

ID della classe del puppet

Validations:

  • Must be String

search
Optional

filtra i risultati

Validations:

  • Must be String

order
Optional

ordina risultati

Validations:

  • Must be String

page
Optional

paginazione risultati

Validations:

  • Must be String

per_page
Optional

numero di voci per richiesta

Validations:

  • Must be String


GET /api/environments/:id
Mostra un ambiente

Params

Param Name Description
id
Required

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
Crea un ambiente

Params

Param Name Description
environment
Required

Validations:

  • Must be a Hash

environment[name]
Required

Validations:

  • Must be String


PUT /api/environments/:id
Aggiorna un ambiente

Params

Param Name Description
id
Required

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
Required

Validations:

  • Must be a Hash

environment[name]
Optional

Validations:

  • Must be String


DELETE /api/environments/:id
Cancella un ambiente

Params

Param Name Description
id
Required

Validations:

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