From d8e9b3d67fa56e94dc83bf20bff9408acdf2a62f Mon Sep 17 00:00:00 2001 From: weikeyou Date: Mon, 2 Apr 2018 19:45:22 +0800 Subject: [PATCH] Add auto_heal to api-ref Change-Id: Ie36ec50d1c8ab5db13e029f11773f24b3eadd061 Partial-Implement: blueprint heal-non-existent-containers-in-docker --- api-ref/source/containers.inc | 2 ++ api-ref/source/parameters.yaml | 5 +++++ api-ref/source/samples/container-create-req.json | 3 ++- api-ref/source/samples/container-create-resp.json | 3 ++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/api-ref/source/containers.inc b/api-ref/source/containers.inc index 957cf3f59..d14622705 100644 --- a/api-ref/source/containers.inc +++ b/api-ref/source/containers.inc @@ -54,6 +54,7 @@ Request - runtime: runtime - hostname: hostname - auto_remove: auto_remove + - auto_heal: auto_heal Request Example ---------------- @@ -90,6 +91,7 @@ Response - status_reason: status_reason - ports: ports - auto_remove: auto_remove + - auto_heal: auto_heal Response Example diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 66f6ec049..95e9a58b1 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -182,6 +182,11 @@ addresses: IP address of the container. This includes both ipv4 and/or ipv6 addresses. in: body required: true +auto_heal: + description: | + The flag of healing non-existent container in docker. + in: body + type: boolean auto_remove: description: | enable auto-removal of the container on daemon side diff --git a/api-ref/source/samples/container-create-req.json b/api-ref/source/samples/container-create-req.json index c352537bd..1f8640cab 100644 --- a/api-ref/source/samples/container-create-req.json +++ b/api-ref/source/samples/container-create-req.json @@ -29,5 +29,6 @@ ], "runtime": "runc", "hostname": "testhost", - "auto_remove": "False" + "auto_remove": "False", + "auto_heal": "False" } diff --git a/api-ref/source/samples/container-create-resp.json b/api-ref/source/samples/container-create-resp.json index 31d62a238..af47aa7cc 100644 --- a/api-ref/source/samples/container-create-resp.json +++ b/api-ref/source/samples/container-create-resp.json @@ -36,5 +36,6 @@ "interactive": false, "runtime": "runc", "hostname": "testhost", - "auto_remove": "False" + "auto_remove": "False", + "auto_heal": "False" }