GET /salt/api/salt_states
List all Salt states

Parametri

Nome parametro Descrizione
salt_environment_id
opzionale

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
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Number of results per page to return, 'all' to return all results

Validations:

  • Must match regular expression /\A([1-9]\d*|all)\Z$/.


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

Parametri

Nome parametro Descrizione
id
richiesto

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

Parametri

Nome parametro Descrizione
state
richiesto

Validations:

  • Must be a Hash

state[name]
richiesto

Name of the Salt state

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
id
richiesto

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

Parametri

Nome parametro Descrizione
smart_proxy_id
richiesto

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
opzionale

Limit to a specific environments

Validations:

  • Must be an array of any type

actions
opzionale

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

Validations:

  • Must be an array of any type

dryrun
opzionale

Dryrun only

Validations:

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