query HostingSettingsPage($id: ID!) {
    mode {
        isSimplePanel
        isDemo
    }
    viewer {
        login
        type
    }
    server {
        settings {
            forbidSubscriptionRename
            preferredDomain
            isIPv6Supported
            forbidFtpUserRename
        }
    }
    os {
        isUnix
    }
    capability {
        systemUser {
            access {
                shells {
                    name
                    value
                    empty
                    chrooted
                    isSecure
                }
                emptyShell
            }
        }
    }
    primaryKey {
        pleskKeyId
        keyShell
    }
    domain: node(id: $id) {
        ... on Domain {
            id
            name(idn: false)
            isDemo
            baseDomain {
                id
            }
            parentDomain {
                name(idn: false)
            }
            ipAddresses {
                id
                isIPv6
                ipAddress
                publicIpAddress
            }
            owner {
                id
                ipAddresses {
                    id
                    type
                    isIPv6
                    ipAddress
                    publicIpAddress
                    isBroken
                    clients {
                        id
                    }
                }
                availableIpAddresses: ipAddresses(filter: {unassigned: true}) {
                    id
                    type
                    isIPv6
                    ipAddress
                    publicIpAddress
                    isBroken
                }
            }
            sysUser {
                login
                quota
                shell
            }
            subscription {
                permissions {
                    manageDomains
                    manageSubdomains
                    manageWebsitesAndDomains
                    manageHosting
                    manageHostingSsl
                    manageQuota
                    manageShellAccess
                    manageNotChrootedShell
                    allowInsecureSites
                }
                mainDomain {
                    id
                    name(idn: false)
                }
                domains {
                    id
                    name(idn: false)
                }
            }
            allowToChangeHtype
            htype
            hosting {
                documentRoot
                preferredDomain
                hasInstalledApplications
            }
            forwarding {
                code
                redirect
            }
            sslSettings {
                ssl
                sslRedirect
                manageSsl
                manageSslRedirect
                certificateId
                availableCertificates {
                    id
                    name
                    repository
                }
            }
        }
    }
}
