GET /salt/api/salt_states
List all Salt states

Параметры

Имя параметра Описание
salt_environment_id
необязательно

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
необязательно

отфильтровать результаты


Value:

Must be String

order
необязательно

отсортировать результаты


Value:

Must be String

page
необязательно

разместить результат на нескольких страницах


Value:

Must be String

per_page
необязательно

количество записей на запрос


Value:

Must be String


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

Параметры

Имя параметра Описание
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.


POST /salt/api/salt_states
Create a state

Параметры

Имя параметра Описание
state
обязательно

Value:

Must be a Hash

state[name]
обязательно

Name of the Salt state


Value:

Must be String


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

Параметры

Имя параметра Описание
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.


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

Параметры

Имя параметра Описание
smart_proxy_id
обязательно

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
необязательно

Limit to a specific environments


Value:

Must be an array of any type

actions
необязательно

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


Value:

Must be an array of any type

dryrun
необязательно

Dryrun only


Value:

Must be 'true' or 'false'