» Data Source: oci_core_volume

This data source provides details about a specific Volume resource in Oracle Cloud Infrastructure Core service.

Gets information for the specified volume.

» Example Usage

data "oci_core_volume" "test_volume" {
    #Required
    volume_id = "${oci_core_volume.test_volume.id}"
}

» Argument Reference

The following arguments are supported:

  • volume_id - (Required) The OCID of the volume.

» Attributes Reference

The following attributes are exported:

  • availability_domain - The availability domain of the volume. Example: Uocm:PHX-AD-1
  • compartment_id - The OCID of the compartment that contains the volume.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • display_name - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the volume.
  • is_hydrated - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
  • kms_key_id - The OCID of the KMS key which is the master encryption key for the volume.
  • size_in_gbs - The size of the volume in GBs.
  • size_in_mbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
  • source_details - The volume source, either an existing volume in the same availability domain or a volume backup. If null, an empty volume is created.
    • id - The OCID of the volume or volume backup.
    • type - The type can be one of these values: volume, volumeBackup
  • state - The current state of a volume.
  • system_tags - System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
  • time_created - The date and time the volume was created. Format defined by RFC3339.
  • volume_group_id - The OCID of the source volume group.