GET /api/smart_class_parameters
List all smart class parameters

GET /api/hosts/:host_id/smart_class_parameters
List of smart class parameters for a specific host

GET /api/hostgroups/:hostgroup_id/smart_class_parameters
List of smart class parameters for a specific host group

GET /api/puppetclasses/:puppetclass_id/smart_class_parameters
List of smart class parameters for a specific Puppet class

GET /api/environments/:environment_id/smart_class_parameters
List of smart class parameters for a specific environment

GET /api/environments/:environment_id/puppetclasses/:puppetclass_id/smart_class_parameters
List of smart class parameters for a specific environment/Puppet class combination

Params

Param name Description
host_id
optional

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

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

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_id
optional

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
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/smart_class_parameters/:id
Show a smart class parameter

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.

PUT /api/smart_class_parameters/:id
Update a smart class parameter

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_class_parameter
required

Value: Must be a Hash
smart_class_parameter[override]
optional

Value: Must be 'true' or 'false'
smart_class_parameter[description]
optional

Value: Must be String
smart_class_parameter[default_value]
optional

Value: Must be String
smart_class_parameter[use_puppet_default]
optional

Value: Must be 'true' or 'false'
smart_class_parameter[path]
optional

Value: Must be String
smart_class_parameter[validator_type]
optional

Value: Must be String
smart_class_parameter[validator_rule]
optional

Value: Must be String
smart_class_parameter[override_value_order]
optional

Value: Must be String
smart_class_parameter[parameter_type]
optional

Value: Must be String
smart_class_parameter[required]
optional

Value: Must be 'true' or 'false'
smart_class_parameter[merge_overrides]
optional

Value: Must be 'true' or 'false'
smart_class_parameter[avoid_duplicates]
optional

Value: Must be 'true' or 'false'