hcloud_server_create_image_action
Creates a snapshot or backup image from a server by copying disk contents; shut down the server first to ensure consistent, readable image data.
Instructions
Create Image from a Server
Creates an Image (snapshot) from a Server by copying the contents of its disks. This creates a snapshot of the current state of the disk and copies it into an Image. If the Server is currently running you must make sure that its disk content is consistent. Otherwise, the created Image may not be readable.
To make sure disk content is consistent, we recommend to shut down the Server prior to creating an Image.
You can either create a backup Image that is bound to the Server and therefore will be deleted when the Server is deleted, or you can create a snapshot Image which is completely independent of the Server it was created from and will survive Server deletion. Backup Images are only available when the backup option is enabled for the Server. Snapshot Images are billed on a per GB basis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the Server. | |
| body | Yes | ||
| wait | No | Poll the resulting action until success/error or timeout. |