From d79df98a3472f694b1dec5c29bd795a311801dd1 Mon Sep 17 00:00:00 2001 From: Cai Hui Date: Fri, 26 Oct 2018 23:42:37 -0400 Subject: [PATCH] Update actions-v2 api-ref Revising some wrong interface parameters of actions-v2 Change-Id: Ie71b51dda2cfbdc0aa3f6228d3881aab3b21eacd --- api-ref/source/v2/actions-v2.inc | 1 + api-ref/source/v2/parameters.yaml | 8 ++++++++ api-ref/source/v2/samples/actions-get-response.json | 6 +++--- api-ref/source/v2/samples/actions-list-response.json | 8 ++++---- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/api-ref/source/v2/actions-v2.inc b/api-ref/source/v2/actions-v2.inc index 15cceb9f..c35dee86 100644 --- a/api-ref/source/v2/actions-v2.inc +++ b/api-ref/source/v2/actions-v2.inc @@ -157,6 +157,7 @@ Response Parameters - max_retries: max_retries - max_retries_interval: max_retries_interval - user_id: user_id + - project_id: project_id - action_id: action_id Response Example diff --git a/api-ref/source/v2/parameters.yaml b/api-ref/source/v2/parameters.yaml index 01f95269..9e19b1c7 100644 --- a/api-ref/source/v2/parameters.yaml +++ b/api-ref/source/v2/parameters.yaml @@ -176,6 +176,14 @@ max_retries_interval: The time that freezer should wait between diferrent retrials to execute the action. +project_id: + type: string + in: body + required: true + description: | + The UUID of the project. A project was also known as + a tenant. + result: type: string in: body diff --git a/api-ref/source/v2/samples/actions-get-response.json b/api-ref/source/v2/samples/actions-get-response.json index 58eb973d..4935ca6a 100644 --- a/api-ref/source/v2/samples/actions-get-response.json +++ b/api-ref/source/v2/samples/actions-get-response.json @@ -14,6 +14,6 @@ "_version": 1, "max_retries": 5, "user_id": "0cd44caf6db5486b94a04b33256a5ff4", - "action_id": "1fc414f091b84263b45d7e1f1f85e5bf", - "project_id": "752d8bd43d654e7a840bbfda77ce41af" -} \ No newline at end of file + "project_id": "752d8bd43d654e7a840bbfda77ce41af", + "action_id": "1fc414f091b84263b45d7e1f1f85e5bf" +} diff --git a/api-ref/source/v2/samples/actions-list-response.json b/api-ref/source/v2/samples/actions-list-response.json index 49dbde4c..39b8328c 100644 --- a/api-ref/source/v2/samples/actions-list-response.json +++ b/api-ref/source/v2/samples/actions-list-response.json @@ -17,8 +17,8 @@ "max_retries": 5, "max_retries_interval": 6, "user_id": "0cd44caf6db5486b94a04b33256a5ff4", - "action_id": "061f7657350a4bddbfabf8d2a25dad96", - "project_id": "752d8bd43d654e7a840bbfda77ce41af" + "project_id": "752d8bd43d654e7a840bbfda77ce41af", + "action_id": "061f7657350a4bddbfabf8d2a25dad96" }, { "freezer_action": @@ -37,8 +37,8 @@ "max_retries": 5, "max_retries_interval": 6, "user_id": "0cd44caf6db5486b94a04b33256a5ff4", - "action_id": "317f8bc1fbbe49819d1b60f4b4387e63", - "project_id": "752d8bd43d654e7a840bbfda77ce41af" + "project_id": "752d8bd43d654e7a840bbfda77ce41af", + "action_id": "317f8bc1fbbe49819d1b60f4b4387e63" } ] } \ No newline at end of file