Creating a Snapshot of an Instance

When you take a snapshot of an instance, a copy of the instance’s boot disk at that time is taken. The result of an instance snapshot is a machine image. You can then create new instances from the machine images generated from the snapshots.

For example, if you created an instance and configured the environment for a specific purpose, then you can take a snapshot of that instance. You can then use the snapshot to replicate the same environment. When you use that snapshot to create instances, the instance network configuration is updated based on the new instance’s setting.

  1. Log in to the UI and go to the Self Service Portal.
  2. In the Home tab, click an orchestration in the Services section.
    All the instances in the orchestration are displayed.
  3. In the Name column, click an instance for which you want to take a snapshot.
  4. In the instance details page, click Create in the Snapshot section.
  5. Enter a name and description for the snapshot and click OK.
The snapshot of the instance is stored as a template in the UI.

Creating a Snapshot of an Instance Using the CLI or API

Use the following command to take a snapshot of an instance:

oracle-compute add snapshot instance [--name] [--machineimage] [––quota]

When you specify the machine image name in the option, the machine image is generated from the snapshot request.

For more information, see CLI Reference for Oracle Compute Cloud Service.

To take a snapshot of an instance using the API, use the POST https://api.oc.example.com/snapshot/ method.

For more information, see REST API Reference for Oracle Compute Cloud Service.