Update a specific affinity group by its ID, regardless of whether it is scoped to a cluster or a cloud.
A rule is either a legacy VM-to-VM rule (servers populated) or a combined VM-to-Host rule (vmGroup and hostGroup populated). Sending both shapes, or only one half of a combined rule, is rejected with a 400.
Recent Requests
Log in to see full request history
Time
Status
User Agent
Retrieving recent requests…
Loading…
Responses
4XX
Error Codes
5XX
Error Codes
Updated about 1 month ago
Did this page help you?
Yes
No
Language
ShellPythonPowerShellJavaScriptGo
Credentials
Bearer
Bearer
URL
Base URL
https://CHANGEME/api/affinity-groups/{id}
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
200 - Update Affinity Group Response400 - Duplicate Name400 - Conflicting Required Rule400 - Only One Half Of A Combined Rule400 - VM Group Not Found400 - Host Group Not Found400 - Cross-Pool VM Group400 - Cross-Pool Host Group400 - Wrong Group Type4XX - 4004XX - 4014XX - 4034XX - 4044XX - 4054XX - 4064XX - 4104XX - 4295XX - 5005XX - 503