netapi
modulesService 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>