Type: POST
URL: https://<JetPatch_URL>/rest/experimental/patch-
JSON Body:
{
"filter": "{\"$and\":[{\"managedBy\":{\"$eq\":\"MANAGED\"}},{\"deleted\":{\"$eq\":false}},{\"id\":{\"$in\":[LIST_OF_EPs_ID_STRINGS_WITH_COMMA_SEPARATED]}}]}",
"groupId": NEW_GROUP_ID_NUMBER,
"subQuery": "{}"
}
JSON Body Example:
We have an endpoint with ID 165856 and we want to assign it to group with ID 141501
{
"filter": "{\"$and\":[{\"managedBy\":{\"$eq\":\"MANAGED\"}},{\"deleted\":{\"$eq\":false}},{\"id\":{\"$in\":[\"165856\"]}}]}",
"groupId": 141501,
"subQuery": "{}"
}
Curl Command Example:
curl -k --digest -D- -u <USERNAME>:<AP_KEY> -H 'Content-Type: application/json' -d @<JSON_BODY> 'https://<JETPATCH_URL>/vmanage-server/rest/experimental/patch-governance/pg-computer/action/update-group'
Note: you can validate endpoint ID using the following URL:
https://<JETPATCH_URL>/vmanage-server/rest/experimental/patch-governance/servers-compliance
Comments
0 comments
Please sign in to leave a comment.