diff --git a/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/clustering-api.wadl b/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/clustering-api.wadl index 42bf63619..92277658b 100644 --- a/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/clustering-api.wadl +++ b/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/clustering-api.wadl @@ -951,24 +951,44 @@ name could be delayed for an unspecified time.'> - + - New name, if specified, for the target policy. - - - - - Detailed specification based on the chosen policy type. - - - - - A new default enforcement level for the policy. + A map that contains the following keys and values that specify + the details of the policy to be updated: + + Policy body + + + name New name for the policy, if specified. + + + + + level New enforcement level for the policy, if specified. + + + + + cooldown New cooldown seconds for the policy, if specified. + + + - + + + + A policy record that contains fields like id, + name, type, spec, level, + cooldown, created_time, updated_time, + deleted_time etc. + + + + + diff --git a/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update.json b/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update.json index 2b81f7630..230d5e3c6 100644 --- a/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update.json +++ b/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update.json @@ -1,5 +1,7 @@ { - "spec": { - "criteria": "youngest_first", + "policy": { + "cooldown": "34", + "level": null, + "name": null }, } diff --git a/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update_resp.json b/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update_resp.json new file mode 100644 index 000000000..6b4c04999 --- /dev/null +++ b/doc/api-site/api-ref/src/wadls/clustering-api/src/v1/samples/policy_update_resp.json @@ -0,0 +1,19 @@ +{ + "policy": { + "cooldown": 34, + "created_time": "2015-02-10T12:37:48.000000", + "data": {}, + "deleted_time": null, + "id": "714fe676-a08f-4196-b7af-61d52eeded15", + "level": 0, + "name": "dp01", + "spec": { + "criteria": "OLDEST_FIRST", + "destroy_after_deletion": true, + "grace_period": 60, + "reduce_desired_capacity": false + }, + "type": "DeletionPolicy", + "updated_time": "2015-03-03T05:18:24.000000" + } +}