GET /salt/api/salt_states
List all Salt states

Paramètres

Nom du paramètre Description
salt_environment_id
optionel

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
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

Champ et sens de tri, ex: 'id DESC'

Validations:

  • Must be a String

page
optionel

paginer les résultats

Validations:

  • Must be a String

per_page
optionel

nombre d'entrées par requête

Validations:

  • Must be a String


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

Paramètres

Nom du paramètre Description
id
requis

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

Paramètres

Nom du paramètre Description
state
requis

Validations:

  • Must be a Hash

state[name]
requis

Name of the Salt state

Validations:

  • Must be a String


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

Paramètres

Nom du paramètre Description
id
requis

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

Paramètres

Nom du paramètre Description
smart_proxy_id
requis

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
optionel

Limit to a specific environments

Validations:

  • Must be an array of any type

actions
optionel

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

Validations:

  • Must be an array of any type

dryrun
optionel

Dryrun only

Validations:

  • Must be one of: true, false, 1, 0.