Apache CloudStack 4.23.0.0 Root Admin 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 |
| projectid | Create affinity group for project | false |
Response Tags
| Response Name | Description |
| id | The ID of the affinity group |
| account | The account owning the affinity group |
| dedicatedresources | dedicated resources associated with this 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 |
| domainpath | path of the Domain the affinity group belongs to |
| name | The name of the affinity group |
| project | The project name of the affinity group |
| projectid | The project ID of the affinity group |
| type | The type of the affinity group |
| virtualmachineIds | Instance IDs associated with this affinity group |