watcherclient.v1.service module¶
-
class
watcherclient.v1.service.
ServiceManager
(api)[source]¶ Bases:
watcherclient.common.base.Manager
-
list
(limit=None, sort_key=None, sort_dir=None, detail=False)[source]¶ Retrieve a list of services.
- Parameters
limit –
- The maximum number of results to return per
request, if:
limit > 0, the maximum number of services to return.
limit == 0, return the entire list of services.
limit param is NOT specified (None), the number of items returned respect the maximum imposed by the Watcher API (see Watcher’s api.max_limit option).
sort_key – Optional, field used for sorting.
sort_dir – Optional, direction of sorting, either ‘asc’ (the default) or ‘desc’.
detail – Optional, boolean whether to return detailed information about services.
- Returns
A list of services.
-
resource_class
¶ alias of
watcherclient.v1.service.Service
-