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.
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.