query IpAddressPage(
    $type: IpAddressTypeEnum,
    $search: String,
    $page: Int,
    $itemsPerPage: Int,
    $sortDirection: SortDirectionEnum,
    $sortColumn: IpAddressSortColumnEnum
) {
    server {
        firewall {
            isEnabled
        }
        ipAddresses(
            filter: { type: $type, search: $search },
            pagination: { page: $page, itemsPerPage: $itemsPerPage },
            sort: $sortColumn,
            sortDirection: $sortDirection
        ) {
            list {
                id
                ipAddress
                publicIpAddress
                interface
                mask
                type
                isBlacklisted
                isMain
                isBroken
                isMissing
                subscriptionsCount
                resellersCount
                ftpOverSSL
            }
            total
            hasPublicIp
            canReloadPublic
        }
    }
    mode {
        isDemo
        isPowerUserPanel
        canManageResellers
    }
    serverInfo {
        isVirtuozzo
    }
}
