GET /salt/api/salt_states
List all Salt states

Parámetros

Nombre del parámetro Descripción
salt_environment_id
opcional

Limit to a specific environment

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.

search
opcional

filtrar resultados

Validations:

  • Must be String

order
opcional

ordenar resultados

Validations:

  • Must be String

page
opcional

paginar resultados

Validations:

  • Must be String

per_page
opcional

número de entradas por petición

Validations:

  • Must be String


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

Parámetros

Nombre del parámetro Descripción
id
requerido

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.


POST /salt/api/salt_states
Create a state

Parámetros

Nombre del parámetro Descripción
state
requerido

Validations:

  • Must be a Hash

state[name]
requerido

Name of the Salt state

Validations:

  • Must be String


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

Parámetros

Nombre del parámetro Descripción
id
requerido

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.


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

Parámetros

Nombre del parámetro Descripción
smart_proxy_id
requerido

Salt Smart Proxy ID

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.

salt_environments
opcional

Limit to a specific environments

Validations:

  • Must be an array of any type

actions
opcional

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

Validations:

  • Must be an array of any type

dryrun
opcional

Dryrun only

Validations:

  • Must be 'true' or 'false' or '1' or '0'