nova/doc/api_samples/os-server-groups/server-groups-get-resp.xml
Gary Kotton 26bf8c0dd0 Instance groups: validate policy configuration
Ensure that API does not allow conflicting policies to be configured
on an instance group. More specifically the user should not be allowed
to configured 'anti-affinity' and 'affinity' on the same instance group.

In addition to this a validation will also be done on the policy, that is,
if the policy is not supported then an exception will be raised.

This is part of blueprint instance-group-api-extension.

Change-Id: Id19c55cb60109819429f73e2b28efe7f15cc5194
2014-03-06 23:51:15 -08:00

9 lines
303 B
XML

<?xml version='1.0' encoding='UTF-8'?>
<server_group xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1" id="5bbcc3c4-1da2-4437-a48a-66f15b1b13f9" name="test">
<policies>
<policy>anti-affinity</policy>
</policies>
<members/>
<metadata/>
</server_group>