GET /salt/api/hostgroups/:id
Show the Salt parameters of a host group

Params

Param name Description
id
required

ID of host group

Validations:

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


PUT /salt/api/hostgroups/:id
Update the Salt parameters of a host group

Params

Param name Description
id
required

ID of host group

Validations:

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

hostgroup
required

Validations:

  • Must be a Hash

hostgroup[salt_environment_id]
optional , nil allowed

Salt environment ID

Validations:

  • Must be a number.

hostgroup[salt_proxy_id]
optional , nil allowed

Salt master/smart proxy ID

Validations:

  • Must be a number.

hostgroup[salt_state_ids]
optional , nil allowed

Array of Salt state IDs

Validations:

  • Must be an array of any type