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 puppet classes from puppet proxy for an environment

POST /api/environments/:environment_id/smart_proxies/:id/import_puppetclasses
Import puppet classes from puppet proxy for an environment

Params

Param name Description
id
required

Value:

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

Value:

Must be String

environment_id
optional

Value:

Must be String

dryrun
optional

Value:

Must be 'true' or 'false'

except
optional

Optional comma-delimited string containing either 'new', 'updated', or 'obsolete' that is used to limit the imported Puppet classes


Value:

Must be String


GET /api/environments
List all environments.

Params

Param name Description
search
optional

Filter results


Value:

Must be String

order
optional

Sort results


Value:

Must be String

page
optional

paginate results


Value:

Must be String

per_page
optional

number of entries per request


Value:

Must be String


GET /api/environments/:id
Show an environment.

Params

Param name Description
id
required

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/environments
Create an environment.

Params

Param name Description
environment
required

Value:

Must be a Hash

environment[name]
required

Value:

Must be String


PUT /api/environments/:id
Update an environment.

Params

Param name Description
id
required

Value:

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

Value:

Must be a Hash

environment[name]
optional

Value:

Must be String


DELETE /api/environments/:id
Delete an environment.

Params

Param name Description
id
required

Value:

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