Apache CloudStack v4.4.1 User API Reference
createAffinityGroup
Creates an affinity/anti-affinity group
Request parameters
| Parameter Name | Description | Required |
| name | name of the affinity group | true |
| type | Type of the affinity group from the available affinity/anti-affinity group types | true |
| account | an account for the affinity group. Must be used with domainId. | false |
| description | optional description of the affinity group | false |
| domainid | domainId of the account owning the affinity group | false |
Response Tags
| Response Name | Description |
| id | the ID of the affinity group |
| account | the account owning the affinity group |
| description | the description of the affinity group |
| domain | the domain name of the affinity group |
| domainid | the domain ID of the affinity group |
| name | the name of the affinity group |
| type | the type of the affinity group |
| virtualmachineIds | virtual machine Ids associated with this affinity group |