From 7245988c323c72bcf1703b90d46f9d1596db1bea Mon Sep 17 00:00:00 2001 From: deepak_mourya Date: Tue, 10 Apr 2018 10:42:42 +0530 Subject: [PATCH] Update the API reference for the update container After this patch [0] we can update the container information to rename also using [1], But API reference is still belongs to the old rename container API[2] which should be updated. [0] https://review.openstack.org/#/c/557595/ [1] https://developer.openstack.org/api-ref/application-container/#update-information-of-container [2] https://developer.openstack.org/api-ref/application-container/#rename-a-container Change-Id: I311e27241a380f24532bccc748b40b8594847833 Closes-Bug: #1762300 --- api-ref/source/containers.inc | 3 ++- api-ref/source/samples/container-update-req.json | 3 ++- api-ref/source/samples/container-update-resp.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api-ref/source/containers.inc b/api-ref/source/containers.inc index 3ca854a7d..5959ab03e 100644 --- a/api-ref/source/containers.inc +++ b/api-ref/source/containers.inc @@ -350,7 +350,7 @@ Update information of container .. rest_method:: PATCH /v1/containers/{container_ident} -Update information of one container attributes. Currently only `cpu` and +Update information of one container attributes. Currently only `cpu`, name and `memory` can be updated. Response Codes @@ -375,6 +375,7 @@ Request - container_ident: container_ident - memory: memory - cpu: cpu + - name: name Request Example ---------------- diff --git a/api-ref/source/samples/container-update-req.json b/api-ref/source/samples/container-update-req.json index 0812f6599..7924970f9 100644 --- a/api-ref/source/samples/container-update-req.json +++ b/api-ref/source/samples/container-update-req.json @@ -1,4 +1,5 @@ { "memory": "200", - "cpu": "3" + "cpu": "3", + "name": "test_new" } diff --git a/api-ref/source/samples/container-update-resp.json b/api-ref/source/samples/container-update-resp.json index da0b6c4f3..7218de91c 100644 --- a/api-ref/source/samples/container-update-resp.json +++ b/api-ref/source/samples/container-update-resp.json @@ -40,7 +40,7 @@ "image_driver": "docker", "task_state": null, "status_reason": null, - "name": "test", + "name": "test_new", "restart_policy": { "MaximumRetryCount": "0", "Name": "no"