diff --git a/_tuning-your-cluster/availability-and-recovery/workload-management/query-group-lifecycle-api.md b/_tuning-your-cluster/availability-and-recovery/workload-management/query-group-lifecycle-api.md index 0fb0b0b65c..b494ee1699 100644 --- a/_tuning-your-cluster/availability-and-recovery/workload-management/query-group-lifecycle-api.md +++ b/_tuning-your-cluster/availability-and-recovery/workload-management/query-group-lifecycle-api.md @@ -12,13 +12,56 @@ The Query Group Lifecycle API creates, updates, retrieves, and deletes query gro ## Path and HTTP methods + +### Create a query group + + ```json -PUT _wlm/query_group -PUT _wlm/query_group/ -GET _wlm/query_group -GET _wlm/query_group/ -DELETE _wlm/query_group/ +PUT /_wlm/query_group +``` + + +### Update a query group + + +```json +PUT /_wlm/query_group ``` + + +### Get a query group + + +```json +GET /_wlm/query_group +GET /_wlm/query_group/{name} +``` + + +### Delete a query group + + +```json +PUT /_wlm/query_group +``` + + ## Request body fields @@ -35,7 +78,7 @@ When creating a query group, make sure that the sum of the resource limits for a The following example requests show how to use the Query Group Lifecycle API. -### Creating a query group +### Create a query group ```json PUT _wlm/query_group @@ -50,7 +93,7 @@ PUT _wlm/query_group ``` {% include copy-curl.html %} -### Updating a query group +### Update a query group ```json PUT _wlm/query_group/analytics @@ -64,19 +107,6 @@ PUT _wlm/query_group/analytics ``` {% include copy-curl.html %} -### Getting a query group - -```json -GET _wlm/query_group/analytics -``` -{% include copy-curl.html %} - -### Deleting a query group - -```json -DELETE _wlm/query_group/analytics -``` -{% include copy-curl.html %} ## Example responses