Apache CloudStack 4.18.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 |
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 |
project | the project name of the affinity group |
projectid | the project ID of the affinity group |
type | the type of the affinity group |
virtualmachineIds | virtual machine IDs associated with this affinity group |