22.16.168. salt.modules.rest_service

Service support for the REST example

salt.modules.rest_service.list()

List services.

CLI Example:

salt '*' rest_service.list <service name>
salt.modules.rest_service.restart(name)

Restart the named service

CLI Example:

salt '*' rest_service.restart <service name>
salt.modules.rest_service.start(name)

Start the specified service

CLI Example:

salt '*' rest_service.start <service name>
salt.modules.rest_service.status(name)

Return the status for a service, returns a bool whether the service is running.

CLI Example:

salt '*' rest_service.status <service name>
salt.modules.rest_service.stop(name)

Stop the specified service

CLI Example:

salt '*' rest_service.stop <service name>

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.7.1

Previous topic

22.16.167. salt.modules.rest_sample

Next topic

22.16.169. salt.modules.ret

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.