GET /salt/api/salt_states
List all Salt states

Parametry

Nazwa parametru Opis
salt_environment_id
opcjonalny

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
opcjonalny

rezultat filtrowania

Validations:

  • Must be String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be String


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

Parametry

Nazwa parametru Opis
id
wymagany

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

Parametry

Nazwa parametru Opis
state
wymagany

Validations:

  • Must be a Hash

state[name]
wymagany

Name of the Salt state

Validations:

  • Must be String


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

Parametry

Nazwa parametru Opis
id
wymagany

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

Parametry

Nazwa parametru Opis
smart_proxy_id
wymagany

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
opcjonalny

Limit to a specific environments

Validations:

  • Must be an array of any type

actions
opcjonalny

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

Validations:

  • Must be an array of any type

dryrun
opcjonalny

Dryrun only

Validations:

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