Skip to main content
Version: 1.0

API Reference

Task API Reference

Task Specification

FieldTypeRequiredDescriptionExample
metadata.namestringYesUnique name for the taskmongodb-restore-emergency
metadata.namespacestringYesNamespace where task is createdresiliency-system
spec.templateRef.templateNamestringYesTemplate to use for the taskmongodb-restore
spec.templateRef.paramsarrayYesArray of parameters for the templateSee parameters table below
spec.placement.clusterNamestringNoTarget cluster ID5b2613a542a883618f0fe1da26396a721d063219
spec.placement.credentialNamestringNoCluster credential namecluster-admin

Parameters (MongoDB Backup Task)

ParameterTypeRequiredDescriptionExample
mongodb-assetAssetYesThe MongoDB asset to backup44bd1dd01554be8285626843082c5eaca28f6779
mongodb-credentialCredentialYesThe credential name to access MongoDBmongodb-root
mongodb-databaseStringYesThe database name to access backupproduction
mongodb-optsStringNoThe opts for MongoDB backup--gzip --oplog
bucket-assetAssetYesThe Bucket asset where backups will be saved01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/mongodb
use-gzipBoolYesEnable GZIP compressiontrue
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (MongoDB Restore Task)

ParameterTypeRequiredDescriptionExample
mongodb-assetAssetYesThe MongoDB asset where backup will be restored44bd1dd01554be8285626843082c5eaca28f6779
mongodb-credentialCredentialYesThe credential name to access MongoDBmongodb-root
mongodb-databaseStringYesThe database name to access backupproduction
mongodb-restore-optsStringNoThe opts for MongoDB restore--drop --gzip
bucket-assetAssetYesThe Bucket asset where backups are stored01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
restore-pathStringNoRestore from the given path in given bucket path/backups/mongodb/2025-06-24
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (PostgreSQL Backup Task)

ParameterTypeRequiredDescriptionExample
postgresql-assetAssetYesThe PostgreSQL asset to backup44bd1dd01554be8285626843082c5eaca28f6779
postgresql-credentialCredentialYesThe credential name to access PostgreSQLpostgres-admin
postgresql-databaseStringYesThe database name to access backupproduction
postgresql-cli-versionStringNoThe version for PostgreSQL client version15
postgresql-optsStringNoThe opts for PostgreSQL backup--verbose --single-transaction
bucket-assetAssetYesThe Bucket asset where backups will be saved01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/postgresql
use-gzipBoolYesEnable GZIP compressiontrue
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (PostgreSQL Restore Task)

ParameterTypeRequiredDescriptionExample
postgresql-assetAssetYesThe PostgreSQL asset where backup will be restored44bd1dd01554be8285626843082c5eaca28f6779
postgresql-credentialCredentialYesThe credential name to access PostgreSQLpostgres-admin
postgresql-databaseStringYesThe database name to access backupproduction
postgresql-cli-versionStringNoThe version for PostgreSQL client version15
postgresql-restore-optsStringNoThe opts for PostgreSQL restore--clean --if-exists
bucket-assetAssetYesThe Bucket asset where backups are stored01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
restore-pathPathYesThe path inside the bucket where backup is saved/backups/postgresql/2025-06-24
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (MySQL Backup Task)

ParameterTypeRequiredDescriptionExample
mysql-assetAssetYesThe MySQL asset to backup44bd1dd01554be8285626843082c5eaca28f6779
mysql-credentialCredentialYesThe credential name to access MySQLmysql-root
mysql-backup-optsStringNoThe opts for MySQL backup--single-transaction --routines
bucket-assetAssetYesThe Bucket asset where backups will be saved01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/mysql
use-gzipBoolYesEnable GZIP compressiontrue
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (MySQL Restore Task)

ParameterTypeRequiredDescriptionExample
mysql-assetAssetYesThe MySQL asset where backup will be restored44bd1dd01554be8285626843082c5eaca28f6779
mysql-credentialCredentialYesThe credential name to access MySQLmysql-root
mysql-restore-optsStringNoThe opts for MySQL restore--force
bucket-assetAssetYesThe Bucket asset where backups are stored01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/mysql
restore-pathStringNoRestore from the latest backup found at a given time in the given bucket path/backups/mysql/2025-06-24
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (Redis Backup Task)

ParameterTypeRequiredDescriptionExample
redis-assetAssetYesThe Redis asset to backup44bd1dd01554be8285626843082c5eaca28f6779
redis-credentialCredentialYesThe credential name to access Redisredis-auth
redis-backup-optsStringNoThe opts for Redis backup--rdb --append-only
bucket-assetAssetYesThe Bucket asset where backups will be saved01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/redis
use-gzipBoolYesEnable GZIP compressiontrue
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}

Parameters (Redis Restore Task)

ParameterTypeRequiredDescriptionExample
redis-assetAssetYesThe Redis asset where backup will be restored44bd1dd01554be8285626843082c5eaca28f6779
redis-credentialCredentialYesThe credential name to access Redisredis-auth
redis-restore-optsStringNoThe opts for Redis restore--flush-before-restore
bucket-assetAssetYesThe Bucket asset where backups are stored01409a2b09f336c6533729d4c04866803ec8bf67
bucket-credentialCredentialYesThe credential name to access Bucketaws-s3-backup
bucket-pathPathYesThe path inside the bucket where backup is saved/backups/redis
restore-pathStringNoRestore from the given path in given bucket path/backups/redis/2025-06-24
kubernetes-resourcesKubernetesResourcesYesComputational resources to be used{"requests": {"cpu": "100m", "memory": "128Mi"}}