This action requires elevated privileges.
Elevation code: proc cas; accessControl.assumeRole / adminRole="superuser"; run;
Flags a backup, previously initiated with the createBackup action, as complete. This action is a crucial step in the server's backup workflow, ensuring that the backup set is properly finalized and recognized by the system. This action is typically the final step in a backup transaction. Executing this action requires administrator privileges.
After initiating a backup with the `createBackup` action within a transaction, this action finalizes the backup process.
| 1 | PROC CAS; |
| 2 | ACCESSCONTROL.completeBackup; |
| 3 | RUN; |
This example demonstrates a complete administrative workflow. First, it assumes the Superuser role. Then, it starts a transaction, creates a backup of the access controls in the 'casuser' caslib, and finally, completes the backup before committing the transaction.
| 1 | PROC CAS; |
| 2 | ACCESSCONTROL.assumeRole / adminRole='superuser'; RUN; |
| 3 | ACCESSCONTROL.startTransaction RESULT=r_start; |
| 4 | PRINT r_start; |
| 5 | ACCESSCONTROL.createBackup / caslib='casuser' name='myAcsBackup' transactionId=r_start.transId; RUN; |
| 6 | ACCESSCONTROL.completeBackup; RUN; |
| 7 | ACCESSCONTROL.commitTransaction / transactionId=r_start.transId; RUN; |
| 8 | RUN; |
A financial institution requires a snapshot of all access controls before applying a major security patch. The security team needs to ensure the backup of the 'Reference' caslib...
During a system migration, the IT Operations team automates the backup of user permissions. Although the action does not process large data volumes itself, this test simulates a...
A DevOps engineer is debugging a new deployment script. The script accidentally attempts to flag a backup as 'complete' without having initiated a transaction or a 'createBackup...