Terminology
- Commit: A commit operation saves the current state of a sandbox as a template, resulting in a new template of type snapshot template.
- Origin Sandbox: The sandbox instance being committed.
- Snapshot Template: The template generated after a commit operation.
Feature Description
Committing a Running Sandbox
During the commit process:- The origin sandbox will be briefly suspended during committing;
- The sandbox instance is unavailable during suspension;
- The suspension duration is close to the time required for a single pause operation.
- The existing pause record will be refreshed to a new pause record, based on the current sandbox state;
- The origin sandbox continues to run;
- A new template record is generated.
Committing a Paused Sandbox
During the commit process:- The commit process will not trigger the origin sandbox to start;
- The origin sandbox remains in paused state.
- The existing pause record is not cleared;
- A new template record is generated.
Parameter Description
| Parameter | Type | Required | Description |
|---|---|---|---|
sandbox_id | string | Yes | The ID of the sandbox instance to commit |
alias | string | No | Set an alias for the generated template |
Return Value
After a successful commit operation, aTemplate object is returned.
Code Examples
Bash