2023-06-16 01:30:46 +00:00
|
|
|
query BackupConfiguration {
|
|
|
|
backup {
|
|
|
|
configuration {
|
|
|
|
autobackupPeriod
|
|
|
|
encryptionKey
|
|
|
|
isInitialized
|
|
|
|
locationId
|
|
|
|
locationName
|
|
|
|
provider
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query AllBackupSnapshots {
|
|
|
|
backup {
|
|
|
|
allSnapshots {
|
2023-06-23 02:22:48 +00:00
|
|
|
id
|
|
|
|
createdAt
|
2023-06-16 01:30:46 +00:00
|
|
|
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 {
|
2023-06-23 02:22:48 +00:00
|
|
|
backup {
|
|
|
|
forceSnapshotsReload {
|
|
|
|
...basicMutationReturnFields
|
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-29 09:52:09 +00:00
|
|
|
mutation StartBackup($serviceId: String!) {
|
2023-06-23 02:22:48 +00:00
|
|
|
backup {
|
|
|
|
startBackup(serviceId: $serviceId) {
|
2023-06-22 14:14:00 +00:00
|
|
|
...basicMutationReturnFields
|
2023-06-29 18:38:46 +00:00
|
|
|
job {
|
|
|
|
...basicApiJobsFields
|
|
|
|
}
|
2023-06-23 02:22:48 +00:00
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation SetAutobackupPeriod($period: Int = null) {
|
2023-06-23 02:22:48 +00:00
|
|
|
backup {
|
|
|
|
setAutobackupPeriod(period: $period) {
|
|
|
|
...genericBackupConfigReturn
|
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation RemoveRepository {
|
2023-06-23 02:22:48 +00:00
|
|
|
backup {
|
|
|
|
removeRepository {
|
|
|
|
...genericBackupConfigReturn
|
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation InitializeRepository($repository: InitializeRepositoryInput!) {
|
2023-06-23 02:22:48 +00:00
|
|
|
backup {
|
|
|
|
initializeRepository(repository: $repository) {
|
|
|
|
...genericBackupConfigReturn
|
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
2023-06-29 18:38:46 +00:00
|
|
|
|
2023-08-07 12:23:48 +00:00
|
|
|
mutation RestoreBackup($snapshotId: String!, $strategy: RestoreStrategy! = DOWNLOAD_VERIFY_OVERWRITE) {
|
2023-06-29 18:38:46 +00:00
|
|
|
backup {
|
2023-08-07 12:23:48 +00:00
|
|
|
restoreBackup(snapshotId: $snapshotId, strategy: $strategy) {
|
2023-06-29 18:38:46 +00:00
|
|
|
...basicMutationReturnFields
|
|
|
|
job {
|
|
|
|
...basicApiJobsFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-07 12:44:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mutation ForgetSnapshot($snapshotId: String!) {
|
|
|
|
backup {
|
|
|
|
forgetSnapshot(snapshotId: $snapshotId) {
|
|
|
|
...basicMutationReturnFields
|
|
|
|
}
|
|
|
|
}
|
2023-06-29 18:38:46 +00:00
|
|
|
}
|