2023-06-16 01:30:46 +00:00
|
|
|
query BackupConfiguration {
|
|
|
|
backup {
|
|
|
|
configuration {
|
|
|
|
autobackupPeriod
|
|
|
|
encryptionKey
|
|
|
|
isInitialized
|
|
|
|
locationId
|
|
|
|
locationName
|
|
|
|
provider
|
2023-09-09 18:13:27 +00:00
|
|
|
autobackupQuotas {
|
|
|
|
last
|
|
|
|
daily
|
|
|
|
weekly
|
|
|
|
monthly
|
|
|
|
yearly
|
|
|
|
}
|
2023-06-16 01:30:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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-09-09 07:22:43 +00:00
|
|
|
reason
|
2023-06-16 01:30:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
|
|
|
|
fragment genericBackupConfigReturn on GenericBackupConfigReturn {
|
|
|
|
code
|
|
|
|
message
|
|
|
|
success
|
|
|
|
configuration {
|
|
|
|
provider
|
|
|
|
encryptionKey
|
|
|
|
isInitialized
|
|
|
|
autobackupPeriod
|
|
|
|
locationName
|
|
|
|
locationId
|
2023-09-09 18:13:27 +00:00
|
|
|
autobackupQuotas {
|
|
|
|
last
|
|
|
|
daily
|
|
|
|
weekly
|
|
|
|
monthly
|
|
|
|
yearly
|
|
|
|
}
|
2023-06-22 14:14:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-09 18:13:27 +00:00
|
|
|
mutation setAutobackupQuotas($quotas: AutobackupQuotasInput!) {
|
|
|
|
backup {
|
|
|
|
setAutobackupQuotas(quotas: $quotas) {
|
|
|
|
...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-09-09 07:22:43 +00:00
|
|
|
}
|