Request parameters
| Parameter Name | Description | Required |
| account | List resources by Account. Must be used with the domainId parameter. | false |
| domainid | List only resources belonging to the domain specified | false |
| id | List the affinity group by the ID provided | false |
| isrecursive | Defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves. | false |
| keyword | List by keyword | false |
| listall | If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false. Resources dedicated to a project are listed only if using the projectid parameter. | false |
| name | Lists affinity groups by name | false |
| page | false | |
| pagesize | false | |
| projectid | List objects by project; if projectid=-1 lists All Instances | false |
| type | Lists affinity groups by type | false |
| virtualmachineid | Lists affinity groups by Instance ID | 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 |