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

93 lines
1.5 KiB
GraphQL
Raw Normal View History

query BackupConfiguration {
backup {
configuration {
autobackupPeriod
encryptionKey
isInitialized
locationId
locationName
provider
}
}
}
query AllBackupSnapshots {
backup {
allSnapshots {
id
createdAt
service {
displayName
id
}
}
}
}
2023-06-22 14:14:00 +00:00
fragment genericBackupConfigReturn on GenericBackupConfigReturn {
code
message
success
configuration {
provider
encryptionKey
isInitialized
autobackupPeriod
locationName
locationId
}
}
mutation ForceSnapshotsReload {
backup {
forceSnapshotsReload {
...basicMutationReturnFields
}
2023-06-22 14:14:00 +00:00
}
}
2023-06-29 09:52:09 +00:00
mutation StartBackup($serviceId: String!) {
backup {
startBackup(serviceId: $serviceId) {
2023-06-22 14:14:00 +00:00
...basicMutationReturnFields
job {
...basicApiJobsFields
}
}
2023-06-22 14:14:00 +00:00
}
}
mutation SetAutobackupPeriod($period: Int = null) {
backup {
setAutobackupPeriod(period: $period) {
...genericBackupConfigReturn
}
2023-06-22 14:14:00 +00:00
}
}
mutation RemoveRepository {
backup {
removeRepository {
...genericBackupConfigReturn
}
2023-06-22 14:14:00 +00:00
}
}
mutation InitializeRepository($repository: InitializeRepositoryInput!) {
backup {
initializeRepository(repository: $repository) {
...genericBackupConfigReturn
}
2023-06-22 14:14:00 +00:00
}
}
mutation RestoreBackup($snapshotId: String!) {
backup {
restoreBackup(snapshotId: $snapshotId) {
...basicMutationReturnFields
job {
...basicApiJobsFields
}
}
}
}