selfprivacy.org.app/lib/logic/api_maps/graphql_maps/schema/services.graphql

80 lines
1.3 KiB
GraphQL

query AllServices {
services {
allServices {
description
displayName
dnsRecords {
...fragmentDnsRecords
}
id
isEnabled
isMovable
isRequired
canBeBackedUp
backupDescription
status
storageUsage {
title
usedSpace
volume {
name
}
}
svgIcon
url
}
}
}
mutation EnableService($serviceId: String!) {
services {
enableService(serviceId: $serviceId) {
...basicMutationReturnFields
}
}
}
mutation DisableService($serviceId: String!) {
services {
disableService(serviceId: $serviceId) {
...basicMutationReturnFields
}
}
}
mutation StopService($serviceId: String!) {
services {
stopService(serviceId: $serviceId) {
...basicMutationReturnFields
}
}
}
mutation StartService($serviceId: String!) {
services {
startService(serviceId: $serviceId) {
...basicMutationReturnFields
}
}
}
mutation RestartService($serviceId: String!) {
services {
restartService(serviceId: $serviceId) {
...basicMutationReturnFields
}
}
}
mutation MoveService($input: MoveServiceInput!) {
services {
moveService(input: $input) {
...basicMutationReturnFields
job {
...basicApiJobsFields
}
}
}
}