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

125 lines
2.1 KiB
GraphQL
Raw Normal View History

query BackupConfiguration {
backup {
configuration {
autobackupPeriod
encryptionKey
isInitialized
locationId
locationName
provider
autobackupQuotas {
last
daily
weekly
monthly
yearly
}
}
}
}
query AllBackupSnapshots {
backup {
allSnapshots {
id
createdAt
service {
displayName
id
}
reason
}
}
}
2023-06-22 14:14:00 +00:00
fragment genericBackupConfigReturn on GenericBackupConfigReturn {
code
message
success
configuration {
provider
encryptionKey
isInitialized
autobackupPeriod
locationName
locationId
autobackupQuotas {
last
daily
weekly
monthly
yearly
}
2023-06-22 14:14:00 +00:00
}
}
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 setAutobackupQuotas($quotas: AutobackupQuotasInput!) {
backup {
setAutobackupQuotas(quotas: $quotas) {
...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!, $strategy: RestoreStrategy! = DOWNLOAD_VERIFY_OVERWRITE) {
backup {
restoreBackup(snapshotId: $snapshotId, strategy: $strategy) {
...basicMutationReturnFields
job {
...basicApiJobsFields
}
}
}
}
mutation ForgetSnapshot($snapshotId: String!) {
backup {
forgetSnapshot(snapshotId: $snapshotId) {
...basicMutationReturnFields
}
}
}