Provide the service module for the proxy-minion REST sample
salt.modules.rest_service.enabled(name, sig=None)¶Only the 'redbull' service is 'enabled' in the test
2015.8.1 新版功能.
salt.modules.rest_service.get_all()¶Return a list of all available services
2015.8.0 新版功能.
CLI 范例:
salt '*' service.get_all
salt.modules.rest_service.list()¶Return a list of all available services.
CLI 范例:
salt '*' service.list
salt.modules.rest_service.restart(name, sig=None)¶Restart the specified service with rest_sample
2015.8.0 新版功能.
CLI 范例:
salt '*' service.restart <service name>
salt.modules.rest_service.running(name, sig=None)¶Return whether this service is running.
2015.8.0 新版功能.
salt.modules.rest_service.start(name, sig=None)¶Start the specified service on the rest_sample
2015.8.0 新版功能.
CLI 范例:
salt '*' service.start <service name>
salt.modules.rest_service.status(name, sig=None)¶Return the status for a service via rest_sample, returns a bool whether the service is running.
2015.8.0 新版功能.
CLI 范例:
salt '*' service.status <service name>
salt.modules.rest_service.stop(name, sig=None)¶Stop the specified service on the rest_sample
2015.8.0 新版功能.
CLI 范例:
salt '*' service.stop <service name>