Safeguard: Undo Any APS Operation With Generated Rollback Scripts
RAPS 5.7 introduces raps safeguard β automatic rollback and backup script generation for 32 destructive operations across buckets, users, webhooks, projects, and more.
The Autodesk Platform ServicesβοΈAPSAutodesk Platform Services - cloud APIs for CAD/BIM automation.View in glossary APIπAPIInterface for software components to communicate.View in glossary has no undo button. Delete a bucketπͺ£BucketContainer for storing objects in OSS.View in glossary and its objects are gone. Remove a user from 50 projects and there is no βrestore previous state.β Overwrite folder permissions and the old configurationβοΈConfigurationSettings controlling application behavior.View in glossary vanishes.
Every team eventually learns this the hard way. RAPSπΌRAPSRust CLI for Autodesk Platform Services.View in glossary 5.7 makes sure you only learn it once.
The Problem
APS operations are immediate and irreversible. The web UI sometimes has confirmation dialogs, but the API does not. When automating bulk operations β adding hundreds of users, syncing buckets, modifying permissions across projects β a single mistake can cascade across your entire account.
The standard advice is βbe careful.β That is not engineering. Engineering means having a recovery plan before you need one.
raps safeguard
RAPS 5.7 introduces raps safeguard, a commandβΆοΈCommandInstruction executed by a CLI tool.View in glossary that generates executable shellπ₯οΈTerminalApplication for running command-line programs.View in glossary scripts to either back up current state before a destructive operation or roll back an operation after it runs.
Backup: Capture State Before Changes
Before deleting a bucket, generate a backup script:
raps safeguard backup "bucket delete my-models"
This produces a script that:
- Saves bucket metadata as JSONπJSONStandard data interchange format.View in glossary
- Takes a snapshot manifestπManifestMetadata about a translated model and its derivatives.View in glossary (keys, sizes, SHA1 hashes)
- Downloads every object to a local backup directory
Run the backup script first, then proceed with the delete knowing you can restore.
Rollback: Undo What Just Happened
After accidentally adding a user to the wrong projectπProjectContainer for folders and files within a hub.View in glossary:
raps safeguard rollback "admin user add --email jane@co.com --project-id wrong-project"
This generates a script containing the inverse operation β in this case, raps admin user remove with the same email and project ID.
Preview Without Writing
Use --dry-run to print the script to stdout without creating a file:
raps safeguard rollback "webhook delete hook-abc-123" --dry-run
What Is Covered
32 operations across every major APS domain:
| Domain | Operations |
|---|---|
| Buckets | create, delete |
| Objects | upload, delete, copy |
| TranslationβοΈTranslation JobBackground process converting CAD files to viewable formats.View in glossary | start |
| WebhooksπͺWebhooksEvent notifications sent to your application.View in glossary | create, delete, update |
| Projects | create, update, archive |
| Admin Users | add, remove, update, import (CSVπCSVTabular data format for spreadsheets.View in glossary) |
| Folder Permissions | set-permissions |
| Issues | create, update |
| RFIs | create, update |
| Templates | create, update, archive |
| Items | delete, rename |
| Design Automationπ€Design AutomationRun Autodesk desktop apps in the cloud.View in glossary | workitem create |
| Reality Capture | delete |
| Config | set |
| Sync / PipelineβοΈPipelineAutomated sequence of build/test/deploy steps.View in glossary | directory sync, pipeline run |
Run raps safeguard list to see the full table.
Script Quality
Every generated script follows production standards:
set -euo pipefailβ fails immediately on any error- Inline comments explaining each stepπ§STEPISO standard for 3D CAD data exchange.View in glossary
- Original command preserved as a reference comment
chmod +xβ executable immediately- Timestamped filenames β
rollback-bucket-delete-20260314T100000.sh
The scripts use only raps commands, so they work on any machine where RAPS is installed. No external dependencies.
When to Use Safeguard
Before bulk operations: Generate a backup script before running admin user import, sync, or pipeline run. If something goes wrong, you have a one-command recovery path.
In CI/CDπCI/CDAutomated build, test, and deployment pipelines.View in glossary pipelines: Add a backup step before destructive operations in your pipeline YAMLπYAMLHuman-readable configuration format.View in glossary. If the pipeline fails mid-execution, the backup script restores the previous state.
For audit compliance: Backup scripts double as documentation of what state existed before a change. Store them alongside your change management records.
During onboarding: New team members running admin commands for the first time can generate rollback scripts as a safety net. Mistakes become recoverable instead of catastrophic.
Try It
# Install or update
cargo install raps
# See all supported operations
raps safeguard list
# Generate a backup before a destructive operation
raps safeguard backup "bucket delete staging-models" --out-file pre-delete-backup.sh
# Preview a rollback script
raps safeguard rollback "admin user remove --project-id abc --email user@co.com" --dry-run
The best time to think about rollback is before you need it.