From 819802a73466cfac1ba0402d214a05fefebea344 Mon Sep 17 00:00:00 2001 From: tengqm Date: Fri, 29 Jan 2016 09:44:01 -0500 Subject: [PATCH] Revise cluster service API There have been some changes to Senlin clustering API V1 recently. This patch revises the API documentation so that it is synchronized with the code development. Change-Id: I3b8f0d02fad6d589ecc0216471c6192ab563c5d1 --- api-ref/src/docbkx/ch_clustering-v1.xml | 5 +- .../wadls/clustering-api/src/v1/common.ent | 9 -- .../src/v1/samples/cluster-check-request.json | 3 + .../v1/samples/cluster-create-request.json | 1 - .../v1/samples/cluster-create-response.json | 1 - .../v1/samples/cluster-recover-request.json | 5 + .../src/v1/samples/cluster-show-response.json | 1 - .../v1/samples/cluster-update-request.json | 1 - .../v1/samples/cluster-update-response.json | 1 - .../v1/samples/clusters-list-response.json | 1 - .../src/v1/samples/node-check-request.json | 3 + .../src/v1/samples/node-recover-request.json | 5 + .../src/v1/wadl/clustering-api.wadl | 92 +++++++++++++++---- 13 files changed, 94 insertions(+), 34 deletions(-) create mode 100644 api-ref/src/wadls/clustering-api/src/v1/samples/cluster-check-request.json create mode 100644 api-ref/src/wadls/clustering-api/src/v1/samples/cluster-recover-request.json create mode 100644 api-ref/src/wadls/clustering-api/src/v1/samples/node-check-request.json create mode 100644 api-ref/src/wadls/clustering-api/src/v1/samples/node-recover-request.json diff --git a/api-ref/src/docbkx/ch_clustering-v1.xml b/api-ref/src/docbkx/ch_clustering-v1.xml index 0cea628e3..f14449b37 100644 --- a/api-ref/src/docbkx/ch_clustering-v1.xml +++ b/api-ref/src/docbkx/ch_clustering-v1.xml @@ -66,7 +66,7 @@ - + @@ -115,6 +115,9 @@ + + +
diff --git a/api-ref/src/wadls/clustering-api/src/v1/common.ent b/api-ref/src/wadls/clustering-api/src/v1/common.ent index f5e1cc7e7..16d14e550 100644 --- a/api-ref/src/wadls/clustering-api/src/v1/common.ent +++ b/api-ref/src/wadls/clustering-api/src/v1/common.ent @@ -347,15 +347,6 @@ - - - - The default permission of the profile. - - - - + @@ -79,6 +79,9 @@ + + + @@ -163,21 +166,6 @@ - - - - Includes nested clusters in or excludes nested - clusters from the cluster list. - - - Set to False to exclude nested - clusters from the cluster list. Set to - True to include nested clusters in - the cluster list. Default is False. - - - @@ -284,7 +272,7 @@ - + @@ -344,6 +332,21 @@ + + + check Check the health status + of a cluster. For example: + + + + + + recover Recover a cluster from + its current unhealthy status. For example: + + + + policy_attach Attach a policy @@ -362,7 +365,7 @@ - updatePolicy Update the + policy_update Update the policy attachment. Specify the policy ID and property settings in the request body: @@ -1202,6 +1205,59 @@ + + + + Triggers an action on a node. + + + + + + + + The action to trigger. + + + Each action takes a different set of parameters. + + + Supported actions include: + + + + + check Check the health status + of a node. For example: + + + + + + recover Recover a node from + its current unhealthy status. For example: + + + + + + + + + + + + + The Location response header contains the + action that the request initiates. + + + &actionLocationParameter; + + +