GET /salt/api/salt_states
List all Salt states

Parâmentros

Nome parâmetro Descrição
salt_environment_id
opcional

Limit to a specific environment


Value:

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

search
opcional

filtrar resultados


Value:

Must be String

order
opcional

ordenar resultados


Value:

Must be String

page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por requisições


Value:

Must be String


GET /salt/api/salt_states/:id
Show a state

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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


POST /salt/api/salt_states
Create a state

Parâmentros

Nome parâmetro Descrição
state
requerido

Value:

Must be a Hash

state[name]
requerido

Name of the Salt state


Value:

Must be String


DELETE /salt/api/salt_states/:id
Destroy a state

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

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


POST /salt/api/salt_states/import/:smart_proxy_id
Import states from a salt master

Parâmentros

Nome parâmetro Descrição
smart_proxy_id
requerido

Salt Smart Proxy ID


Value:

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

salt_environments
opcional

Limit to a specific environments


Value:

Must be an array of any type

actions
opcional

Limit to specific actions: i.e. add, remove


Value:

Must be an array of any type

dryrun
opcional

Dryrun only


Value:

Must be ‘true’ or ‘false’