Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getVolumes
Explore with Pulumi AI
This data source provides the list of Volumes in Oracle Cloud Infrastructure Core service.
Lists the volumes in the specified compartment and availability domain.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumes = oci.Core.getVolumes({
    availabilityDomain: volumeAvailabilityDomain,
    clusterPlacementGroupId: testGroup.id,
    compartmentId: compartmentId,
    displayName: volumeDisplayName,
    state: volumeState,
    volumeGroupId: testVolumeGroup.id,
});
import pulumi
import pulumi_oci as oci
test_volumes = oci.Core.get_volumes(availability_domain=volume_availability_domain,
    cluster_placement_group_id=test_group["id"],
    compartment_id=compartment_id,
    display_name=volume_display_name,
    state=volume_state,
    volume_group_id=test_volume_group["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetVolumes(ctx, &core.GetVolumesArgs{
			AvailabilityDomain:      pulumi.StringRef(volumeAvailabilityDomain),
			ClusterPlacementGroupId: pulumi.StringRef(testGroup.Id),
			CompartmentId:           pulumi.StringRef(compartmentId),
			DisplayName:             pulumi.StringRef(volumeDisplayName),
			State:                   pulumi.StringRef(volumeState),
			VolumeGroupId:           pulumi.StringRef(testVolumeGroup.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testVolumes = Oci.Core.GetVolumes.Invoke(new()
    {
        AvailabilityDomain = volumeAvailabilityDomain,
        ClusterPlacementGroupId = testGroup.Id,
        CompartmentId = compartmentId,
        DisplayName = volumeDisplayName,
        State = volumeState,
        VolumeGroupId = testVolumeGroup.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetVolumesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testVolumes = CoreFunctions.getVolumes(GetVolumesArgs.builder()
            .availabilityDomain(volumeAvailabilityDomain)
            .clusterPlacementGroupId(testGroup.id())
            .compartmentId(compartmentId)
            .displayName(volumeDisplayName)
            .state(volumeState)
            .volumeGroupId(testVolumeGroup.id())
            .build());
    }
}
variables:
  testVolumes:
    fn::invoke:
      function: oci:Core:getVolumes
      arguments:
        availabilityDomain: ${volumeAvailabilityDomain}
        clusterPlacementGroupId: ${testGroup.id}
        compartmentId: ${compartmentId}
        displayName: ${volumeDisplayName}
        state: ${volumeState}
        volumeGroupId: ${testVolumeGroup.id}
Using getVolumes
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVolumes(args: GetVolumesArgs, opts?: InvokeOptions): Promise<GetVolumesResult>
function getVolumesOutput(args: GetVolumesOutputArgs, opts?: InvokeOptions): Output<GetVolumesResult>def get_volumes(availability_domain: Optional[str] = None,
                cluster_placement_group_id: Optional[str] = None,
                compartment_id: Optional[str] = None,
                display_name: Optional[str] = None,
                filters: Optional[Sequence[GetVolumesFilter]] = None,
                state: Optional[str] = None,
                volume_group_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetVolumesResult
def get_volumes_output(availability_domain: Optional[pulumi.Input[str]] = None,
                cluster_placement_group_id: Optional[pulumi.Input[str]] = None,
                compartment_id: Optional[pulumi.Input[str]] = None,
                display_name: Optional[pulumi.Input[str]] = None,
                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVolumesFilterArgs]]]] = None,
                state: Optional[pulumi.Input[str]] = None,
                volume_group_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetVolumesResult]func GetVolumes(ctx *Context, args *GetVolumesArgs, opts ...InvokeOption) (*GetVolumesResult, error)
func GetVolumesOutput(ctx *Context, args *GetVolumesOutputArgs, opts ...InvokeOption) GetVolumesResultOutput> Note: This function is named GetVolumes in the Go SDK.
public static class GetVolumes 
{
    public static Task<GetVolumesResult> InvokeAsync(GetVolumesArgs args, InvokeOptions? opts = null)
    public static Output<GetVolumesResult> Invoke(GetVolumesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumesResult> getVolumes(GetVolumesArgs args, InvokeOptions options)
public static Output<GetVolumesResult> getVolumes(GetVolumesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getVolumes:getVolumes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- ClusterPlacement stringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetVolumes Filter> 
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- VolumeGroup stringId 
- The OCID of the volume group.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- ClusterPlacement stringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetVolumes Filter 
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- VolumeGroup stringId 
- The OCID of the volume group.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- clusterPlacement StringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetVolumes Filter> 
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volumeGroup StringId 
- The OCID of the volume group.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- clusterPlacement stringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartmentId string
- The OCID of the compartment.
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetVolumes Filter[] 
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volumeGroup stringId 
- The OCID of the volume group.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- cluster_placement_ strgroup_ id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartment_id str
- The OCID of the compartment.
- display_name str
- A filter to return only resources that match the given display name exactly.
- filters
Sequence[GetVolumes Filter] 
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volume_group_ strid 
- The OCID of the volume group.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- clusterPlacement StringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volumeGroup StringId 
- The OCID of the volume group.
getVolumes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Volumes
List<GetVolumes Volume> 
- The list of volumes.
- AvailabilityDomain string
- The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
- ClusterPlacement stringGroup Id 
- The clusterPlacementGroup Id of the volume for volume placement.
- CompartmentId string
- The OCID of the compartment that contains the volume.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<GetVolumes Filter> 
- State string
- The current state of a volume.
- VolumeGroup stringId 
- The OCID of the source volume group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volumes
[]GetVolumes Volume 
- The list of volumes.
- AvailabilityDomain string
- The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
- ClusterPlacement stringGroup Id 
- The clusterPlacementGroup Id of the volume for volume placement.
- CompartmentId string
- The OCID of the compartment that contains the volume.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]GetVolumes Filter 
- State string
- The current state of a volume.
- VolumeGroup stringId 
- The OCID of the source volume group.
- id String
- The provider-assigned unique ID for this managed resource.
- volumes
List<GetVolumes Volume> 
- The list of volumes.
- availabilityDomain String
- The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
- clusterPlacement StringGroup Id 
- The clusterPlacementGroup Id of the volume for volume placement.
- compartmentId String
- The OCID of the compartment that contains the volume.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<GetVolumes Filter> 
- state String
- The current state of a volume.
- volumeGroup StringId 
- The OCID of the source volume group.
- id string
- The provider-assigned unique ID for this managed resource.
- volumes
GetVolumes Volume[] 
- The list of volumes.
- availabilityDomain string
- The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
- clusterPlacement stringGroup Id 
- The clusterPlacementGroup Id of the volume for volume placement.
- compartmentId string
- The OCID of the compartment that contains the volume.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
GetVolumes Filter[] 
- state string
- The current state of a volume.
- volumeGroup stringId 
- The OCID of the source volume group.
- id str
- The provider-assigned unique ID for this managed resource.
- volumes
Sequence[GetVolumes Volume] 
- The list of volumes.
- availability_domain str
- The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
- cluster_placement_ strgroup_ id 
- The clusterPlacementGroup Id of the volume for volume placement.
- compartment_id str
- The OCID of the compartment that contains the volume.
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[GetVolumes Filter] 
- state str
- The current state of a volume.
- volume_group_ strid 
- The OCID of the source volume group.
- id String
- The provider-assigned unique ID for this managed resource.
- volumes List<Property Map>
- The list of volumes.
- availabilityDomain String
- The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
- clusterPlacement StringGroup Id 
- The clusterPlacementGroup Id of the volume for volume placement.
- compartmentId String
- The OCID of the compartment that contains the volume.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
- The current state of a volume.
- volumeGroup StringId 
- The OCID of the source volume group.
Supporting Types
GetVolumesFilter  
GetVolumesVolume  
- AutoTuned stringVpus Per Gb 
- The number of Volume Performance Units per GB that this volume is effectively tuned to.
- AutotunePolicies List<GetVolumes Volume Autotune Policy> 
- The list of autotune policies enabled for this volume.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- BackupPolicy stringId 
- BlockVolume List<GetReplicas Volumes Volume Block Volume Replica> 
- The list of block volume replicas of this volume.
- BlockVolume boolReplicas Deletion 
- ClusterPlacement stringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Dictionary<string, string>
- 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 string
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- IsAuto boolTune Enabled 
- Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicyinstead to enable the volume for detached autotune.
- IsHydrated bool
- Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- IsReservations boolEnabled 
- Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
- KmsKey stringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- SizeIn stringGbs 
- The size of the volume in GBs.
- SizeIn stringMbs 
- The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- SourceDetails List<GetVolumes Volume Source Detail> 
- Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- TimeCreated string
- The date and time the volume was created. Format defined by RFC3339.
- VolumeBackup stringId 
- VolumeGroup stringId 
- The OCID of the volume group.
- VpusPer stringGb 
- The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- XrcKms stringKey Id 
- AutoTuned stringVpus Per Gb 
- The number of Volume Performance Units per GB that this volume is effectively tuned to.
- AutotunePolicies []GetVolumes Volume Autotune Policy 
- The list of autotune policies enabled for this volume.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- BackupPolicy stringId 
- BlockVolume []GetReplicas Volumes Volume Block Volume Replica 
- The list of block volume replicas of this volume.
- BlockVolume boolReplicas Deletion 
- ClusterPlacement stringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- map[string]string
- 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 string
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- IsAuto boolTune Enabled 
- Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicyinstead to enable the volume for detached autotune.
- IsHydrated bool
- Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- IsReservations boolEnabled 
- Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
- KmsKey stringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- SizeIn stringGbs 
- The size of the volume in GBs.
- SizeIn stringMbs 
- The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- SourceDetails []GetVolumes Volume Source Detail 
- Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- TimeCreated string
- The date and time the volume was created. Format defined by RFC3339.
- VolumeBackup stringId 
- VolumeGroup stringId 
- The OCID of the volume group.
- VpusPer stringGb 
- The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- XrcKms stringKey Id 
- autoTuned StringVpus Per Gb 
- The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotunePolicies List<GetVolumes Volume Autotune Policy> 
- The list of autotune policies enabled for this volume.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- backupPolicy StringId 
- blockVolume List<GetReplicas Volumes Volume Block Volume Replica> 
- The list of block volume replicas of this volume.
- blockVolume BooleanReplicas Deletion 
- clusterPlacement StringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String,String>
- 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 String
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- isAuto BooleanTune Enabled 
- Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicyinstead to enable the volume for detached autotune.
- isHydrated Boolean
- Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- isReservations BooleanEnabled 
- Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
- kmsKey StringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- sizeIn StringGbs 
- The size of the volume in GBs.
- sizeIn StringMbs 
- The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- sourceDetails List<GetVolumes Volume Source Detail> 
- Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- timeCreated String
- The date and time the volume was created. Format defined by RFC3339.
- volumeBackup StringId 
- volumeGroup StringId 
- The OCID of the volume group.
- vpusPer StringGb 
- The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- xrcKms StringKey Id 
- autoTuned stringVpus Per Gb 
- The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotunePolicies GetVolumes Volume Autotune Policy[] 
- The list of autotune policies enabled for this volume.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- backupPolicy stringId 
- blockVolume GetReplicas Volumes Volume Block Volume Replica[] 
- The list of block volume replicas of this volume.
- blockVolume booleanReplicas Deletion 
- clusterPlacement stringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A filter to return only resources that match the given display name exactly.
- {[key: string]: string}
- 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 string
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- isAuto booleanTune Enabled 
- Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicyinstead to enable the volume for detached autotune.
- isHydrated boolean
- Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- isReservations booleanEnabled 
- Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
- kmsKey stringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- sizeIn stringGbs 
- The size of the volume in GBs.
- sizeIn stringMbs 
- The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- sourceDetails GetVolumes Volume Source Detail[] 
- Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- timeCreated string
- The date and time the volume was created. Format defined by RFC3339.
- volumeBackup stringId 
- volumeGroup stringId 
- The OCID of the volume group.
- vpusPer stringGb 
- The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- xrcKms stringKey Id 
- auto_tuned_ strvpus_ per_ gb 
- The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune_policies Sequence[GetVolumes Volume Autotune Policy] 
- The list of autotune policies enabled for this volume.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- backup_policy_ strid 
- block_volume_ Sequence[Getreplicas Volumes Volume Block Volume Replica] 
- The list of block volume replicas of this volume.
- block_volume_ boolreplicas_ deletion 
- cluster_placement_ strgroup_ id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- 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 str
- A filter to return only resources that match the given display name exactly.
- Mapping[str, str]
- 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 str
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- is_auto_ booltune_ enabled 
- Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicyinstead to enable the volume for detached autotune.
- is_hydrated bool
- Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- is_reservations_ boolenabled 
- Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
- kms_key_ strid 
- The OCID of the Vault service key which is the master encryption key for the volume.
- size_in_ strgbs 
- The size of the volume in GBs.
- size_in_ strmbs 
- The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source_details Sequence[GetVolumes Volume Source Detail] 
- Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- time_created str
- The date and time the volume was created. Format defined by RFC3339.
- volume_backup_ strid 
- volume_group_ strid 
- The OCID of the volume group.
- vpus_per_ strgb 
- The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- xrc_kms_ strkey_ id 
- autoTuned StringVpus Per Gb 
- The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotunePolicies List<Property Map>
- The list of autotune policies enabled for this volume.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- backupPolicy StringId 
- blockVolume List<Property Map>Replicas 
- The list of block volume replicas of this volume.
- blockVolume BooleanReplicas Deletion 
- clusterPlacement StringGroup Id 
- A filter to return only resources that match the given cluster placement group Id exactly.
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String>
- 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 String
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- isAuto BooleanTune Enabled 
- Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicyinstead to enable the volume for detached autotune.
- isHydrated Boolean
- Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- isReservations BooleanEnabled 
- Reservations-enabled is a boolean field that allows to enable PR (Persistent Reservation) on a volume.
- kmsKey StringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- sizeIn StringGbs 
- The size of the volume in GBs.
- sizeIn StringMbs 
- The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- sourceDetails List<Property Map>
- Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- timeCreated String
- The date and time the volume was created. Format defined by RFC3339.
- volumeBackup StringId 
- volumeGroup StringId 
- The OCID of the volume group.
- vpusPer StringGb 
- The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- xrcKms StringKey Id 
GetVolumesVolumeAutotunePolicy    
- AutotuneType string
- This specifies the type of autotunes supported by OCI.
- MaxVpus stringPer Gb 
- This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- AutotuneType string
- This specifies the type of autotunes supported by OCI.
- MaxVpus stringPer Gb 
- This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotuneType String
- This specifies the type of autotunes supported by OCI.
- maxVpus StringPer Gb 
- This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotuneType string
- This specifies the type of autotunes supported by OCI.
- maxVpus stringPer Gb 
- This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotune_type str
- This specifies the type of autotunes supported by OCI.
- max_vpus_ strper_ gb 
- This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotuneType String
- This specifies the type of autotunes supported by OCI.
- maxVpus StringPer Gb 
- This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
GetVolumesVolumeBlockVolumeReplica     
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- BlockVolume stringReplica Id 
- The block volume replica's Oracle ID (OCID).
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- KmsKey stringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- XrrKms stringKey Id 
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- BlockVolume stringReplica Id 
- The block volume replica's Oracle ID (OCID).
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- KmsKey stringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- XrrKms stringKey Id 
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- blockVolume StringReplica Id 
- The block volume replica's Oracle ID (OCID).
- displayName String
- A filter to return only resources that match the given display name exactly.
- kmsKey StringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- xrrKms StringKey Id 
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- blockVolume stringReplica Id 
- The block volume replica's Oracle ID (OCID).
- displayName string
- A filter to return only resources that match the given display name exactly.
- kmsKey stringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- xrrKms stringKey Id 
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- block_volume_ strreplica_ id 
- The block volume replica's Oracle ID (OCID).
- display_name str
- A filter to return only resources that match the given display name exactly.
- kms_key_ strid 
- The OCID of the Vault service key which is the master encryption key for the volume.
- xrr_kms_ strkey_ id 
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- blockVolume StringReplica Id 
- The block volume replica's Oracle ID (OCID).
- displayName String
- A filter to return only resources that match the given display name exactly.
- kmsKey StringId 
- The OCID of the Vault service key which is the master encryption key for the volume.
- xrrKms StringKey Id 
GetVolumesVolumeSourceDetail    
- ChangeBlock stringSize In Bytes 
- (Applicable when type=volumeBackupDelta) Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB).
- FirstBackup stringId 
- (Required when type=volumeBackupDelta) The OCID of the first volume backup.
- Id string
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- SecondBackup stringId 
- (Required when type=volumeBackupDelta) The OCID of the second volume backup.
- Type string
- (Required) The type can be one of these values: blockVolumeReplica,volume,volumeBackup,volumeBackupDelta
- ChangeBlock stringSize In Bytes 
- (Applicable when type=volumeBackupDelta) Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB).
- FirstBackup stringId 
- (Required when type=volumeBackupDelta) The OCID of the first volume backup.
- Id string
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- SecondBackup stringId 
- (Required when type=volumeBackupDelta) The OCID of the second volume backup.
- Type string
- (Required) The type can be one of these values: blockVolumeReplica,volume,volumeBackup,volumeBackupDelta
- changeBlock StringSize In Bytes 
- (Applicable when type=volumeBackupDelta) Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB).
- firstBackup StringId 
- (Required when type=volumeBackupDelta) The OCID of the first volume backup.
- id String
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- secondBackup StringId 
- (Required when type=volumeBackupDelta) The OCID of the second volume backup.
- type String
- (Required) The type can be one of these values: blockVolumeReplica,volume,volumeBackup,volumeBackupDelta
- changeBlock stringSize In Bytes 
- (Applicable when type=volumeBackupDelta) Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB).
- firstBackup stringId 
- (Required when type=volumeBackupDelta) The OCID of the first volume backup.
- id string
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- secondBackup stringId 
- (Required when type=volumeBackupDelta) The OCID of the second volume backup.
- type string
- (Required) The type can be one of these values: blockVolumeReplica,volume,volumeBackup,volumeBackupDelta
- change_block_ strsize_ in_ bytes 
- (Applicable when type=volumeBackupDelta) Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB).
- first_backup_ strid 
- (Required when type=volumeBackupDelta) The OCID of the first volume backup.
- id str
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- second_backup_ strid 
- (Required when type=volumeBackupDelta) The OCID of the second volume backup.
- type str
- (Required) The type can be one of these values: blockVolumeReplica,volume,volumeBackup,volumeBackupDelta
- changeBlock StringSize In Bytes 
- (Applicable when type=volumeBackupDelta) Block size in bytes to be considered while performing volume restore. The value must be a power of 2; ranging from 4KB (4096 bytes) to 1MB (1048576 bytes). If omitted, defaults to 4,096 bytes (4 KiB).
- firstBackup StringId 
- (Required when type=volumeBackupDelta) The OCID of the first volume backup.
- id String
- (Required when type=blockVolumeReplica | volume | volumeBackup) The OCID of the block volume replica.
- secondBackup StringId 
- (Required when type=volumeBackupDelta) The OCID of the second volume backup.
- type String
- (Required) The type can be one of these values: blockVolumeReplica,volume,volumeBackup,volumeBackupDelta
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.