hostsForFailoverGroup
Get hosts eligible for adding to a failover group.
Arguments
| Argument | Type | Description |
|---|---|---|
| first | Int | Returns the first n elements from the list. |
| after | String | Returns the elements in the list that occur after the specified cursor. |
| last | Int | Returns the last n elements from the list. |
| before | String | Returns the elements in the list that occur before the specified cursor. |
| primaryClusterId (required) | UUID! | Primary cluster ID. |
| secondaryClusterId (required) | UUID! | Secondary cluster ID. |
| filter | HostsForFailoverGroupFilter | Filters to apply to the query. |
Returns
HostForFailoverGroupConnection!
Sample
query HostsForFailoverGroup($primaryClusterId: UUID!, $secondaryClusterId: UUID!) {
hostsForFailoverGroup(
primaryClusterId: $primaryClusterId
secondaryClusterId: $secondaryClusterId
first: 10
) {
nodes {
id
ineligibilityReason
isEligible
name
osType
rbsStatus
}
pageInfo {
hasNextPage
endCursor
}
}
}
{
"data": {
"hostsForFailoverGroup": {
"nodes": [
[
{
"id": "00000000-0000-0000-0000-000000000000",
"ineligibilityReason": "HOST_INELIGIBILITY_REASON_INVALID_PRIMARY_HOST_STATUS",
"isEligible": true,
"name": "example-string",
"osType": "HOST_REGISTER_OS_TYPE_AIX",
"rbsStatus": "BADLY_CONFIGURED"
}
]
],
"pageInfo": {
"endCursor": "example-string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "example-string"
}
}
}
}