oci_core_volume_backup

This resource provides the Volume Backup resource in Oracle Cloud Infrastructure Core service.

Creates a new backup of the specified volume. For general information about volume backups, see Overview of Block Volume Service Backups

When the request is received, the backup object is in a REQUEST_RECEIVED state. When the data is imaged, it goes into a CREATING state. After the backup is fully uploaded to the cloud, it goes into an AVAILABLE state.

Example Usage

resource "oci_core_volume_backup" "test_volume_backup" {
	#Required
	volume_id = oci_core_volume.test_volume.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.volume_backup_display_name
	freeform_tags = {"Department"= "Finance"}
	kms_key_id = oci_kms_key.test_key.id
	type = var.volume_backup_type
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Volume Backup * update - (Defaults to 20 minutes), when updating the Volume Backup * delete - (Defaults to 20 minutes), when destroying the Volume Backup

Import

VolumeBackups can be imported using the id, e.g.

$ terraform import oci_core_volume_backup.test_volume_backup "id"