You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2017/03/13 18:16:13 UTC

[6/7] mesos git commit: Added documentation for the 'RemoveNestedContainer' Agent API call.

Added documentation for the 'RemoveNestedContainer' Agent API call.

Review: https://reviews.apache.org/r/57388/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/702b2dd1
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/702b2dd1
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/702b2dd1

Branch: refs/heads/master
Commit: 702b2dd1b682cf74399ba74aee66f0d69649e23f
Parents: 7410689
Author: Gast�n Kleiman <ga...@mesosphere.io>
Authored: Mon Mar 13 18:27:27 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Mar 13 19:15:40 2017 +0100

----------------------------------------------------------------------
 docs/operator-http-api.md | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/702b2dd1/docs/operator-http-api.md
----------------------------------------------------------------------
diff --git a/docs/operator-http-api.md b/docs/operator-http-api.md
index 506251b..3326f6a 100644
--- a/docs/operator-http-api.md
+++ b/docs/operator-http-api.md
@@ -3574,3 +3574,37 @@ Message-Content-Type: application/json
 ...
 
 ```
+
+### REMOVE_NESTED_CONTAINER
+
+This call triggers the removal of a nested container and its artifacts
+(e.g., the sandbox and runtime directories). This call can only be made
+against containers that have already terminated, and whose parent
+container has not been destroyed. Any authorized entity, including the
+executor itself, its tasks, or the operator can use this API call.
+
+```
+REMOVE_NESTED_CONTAINER HTTP Request (JSON):
+
+POST /api/v1  HTTP/1.1
+
+Host: agenthost:5051
+Content-Type: application/json
+Accept: application/json
+
+{
+  "type": "REMOVE_NESTED_CONTAINER",
+  "remove_nested_container": {
+    "container_id": {
+      "parent": {
+        "value": "6643b4be-583a-4dc3-bf23-a1ffb26dd452"
+      },
+      "value": "3192b9d1-db71-4699-ae25-e28dfbf42de1"
+    }
+  }
+}
+
+REMOVE_NESTED_CONTAINER HTTP Response (JSON):
+
+HTTP/1.1 200 OK
+```