From 775b581c04dfa5f7d421ad74f969f25869fa8151 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Mon, 22 Aug 2016 19:12:27 -0700 Subject: Private images support in create_service / update_service Refactor auth header computation Add tasks methods and documentation. Signed-off-by: Joffrey F --- docs/api.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'docs/api.md') diff --git a/docs/api.md b/docs/api.md index 12467ed..5857892 100644 --- a/docs/api.md +++ b/docs/api.md @@ -666,6 +666,16 @@ Create a service, similar to the `docker service create` command. See the Retrieve information about the current Swarm. See the [Swarm documentation](swarm.md#clientinspect_swarm). +## inspect_task + +Retrieve information about a task. + +**Params**: + +* task (str): Task identifier + +**Returns** (dict): Task information dictionary + ## inspect_volume Retrieve volume info by name. @@ -1055,6 +1065,17 @@ Tag an image into a repository. Identical to the `docker tag` command. **Returns** (bool): True if successful +## tasks + +Retrieve a list of tasks. + +**Params**: + +* filters (dict): A map of filters to process on the tasks list. Valid filters: + `id`, `name`, `service`, `node`, `label` and `desired-state`. + +**Returns** (list): List of task dictionaries. + ## top Display the running processes of a container. -- cgit v1.2.1