GET /salt/api/salt_environments
List all Salt environments

参数

参数名字 描述
search
选填

过滤结果

Validations:

  • Must be a String

order
选填

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /salt/api/salt_environments/:id
Show a Salt environment

参数

参数名字 描述
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.


POST /salt/api/salt_environments
Create a Salt environment

参数

参数名字 描述
environment
必填

Validations:

  • Must be a Hash

environment[name]
必填

Validations:

  • Must be a String


DELETE /salt/api/salt_environments/:id
Destroy a Salt environment

参数

参数名字 描述
id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.