Resource

dcloud_volume_snapshot

A snapshot of a volume in object storage, restorable with dcloud_volume.snapshot_id. An attached volume needs stop_instance = true (its instance is stopped for the copy).

Schema

Required

  • volume_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.

Optional

  • description (String) Free text; omitted: none. Up to 255 characters. Changing it replaces the resource.
  • name (String) A display name; omitted: none. Up to 64 characters. Changing it replaces the resource.
  • stop_instance (Boolean) The volume is attached: stop its instance for the snapshot and start it after. Default false. Changing it replaces the resource.
  • tags (Map of String) Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them). Changing it replaces the resource.

Read-Only

  • availability_zone_id (String) Where it is stored; a restore creates the volume here.
  • encrypted (Boolean) The snapshot is LUKS ciphertext (the volume was encrypted).
  • id (String) The resource's id.
  • new_bytes (Number) Bytes this snapshot was the first to store.
  • size_gib (Number) The volume's size when it was snapshotted.
  • state (String) pending, creating, completed, error or deleting.
  • stored_bytes (Number) Bytes of data this snapshot references.

Generated from the provider's schema.