1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. Volume
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.Volume

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

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

    Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from 50 GB (51200 MB) to 32 TB (33554432 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). For general information about block volumes, see Overview of Block Volume Service.

    A volume and instance can be in separate compartments but must be in the same availability domain. For information about access control and compartments, see Overview of the IAM Service. For information about availability domains, see Regions and Availability Domains. To get a list of availability domains, use the ListAvailabilityDomains operation in the Identity and Access Management Service API.

    You may optionally specify a display name for the volume, which is simply a friendly name or description. It does not have to be unique, and you can change it. Avoid entering confidential information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVolume = new oci.core.Volume("testVolume", {
        compartmentId: _var.compartment_id,
        autotunePolicies: [{
            autotuneType: _var.volume_autotune_policies_autotune_type,
            maxVpusPerGb: _var.volume_autotune_policies_max_vpus_per_gb,
        }],
        availabilityDomain: _var.volume_availability_domain,
        backupPolicyId: data.oci_core_volume_backup_policies.test_volume_backup_policies.volume_backup_policies[0].id,
        blockVolumeReplicas: [{
            availabilityDomain: _var.volume_block_volume_replicas_availability_domain,
            displayName: _var.volume_block_volume_replicas_display_name,
        }],
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.volume_display_name,
        freeformTags: {
            Department: "Finance",
        },
        isAutoTuneEnabled: _var.volume_is_auto_tune_enabled,
        kmsKeyId: oci_kms_key.test_key.id,
        sizeInGbs: _var.volume_size_in_gbs,
        sizeInMbs: _var.volume_size_in_mbs,
        sourceDetails: {
            id: _var.volume_source_details_id,
            type: _var.volume_source_details_type,
        },
        vpusPerGb: _var.volume_vpus_per_gb,
        blockVolumeReplicasDeletion: true,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_volume = oci.core.Volume("testVolume",
        compartment_id=var["compartment_id"],
        autotune_policies=[oci.core.VolumeAutotunePolicyArgs(
            autotune_type=var["volume_autotune_policies_autotune_type"],
            max_vpus_per_gb=var["volume_autotune_policies_max_vpus_per_gb"],
        )],
        availability_domain=var["volume_availability_domain"],
        backup_policy_id=data["oci_core_volume_backup_policies"]["test_volume_backup_policies"]["volume_backup_policies"][0]["id"],
        block_volume_replicas=[oci.core.VolumeBlockVolumeReplicaArgs(
            availability_domain=var["volume_block_volume_replicas_availability_domain"],
            display_name=var["volume_block_volume_replicas_display_name"],
        )],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["volume_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        is_auto_tune_enabled=var["volume_is_auto_tune_enabled"],
        kms_key_id=oci_kms_key["test_key"]["id"],
        size_in_gbs=var["volume_size_in_gbs"],
        size_in_mbs=var["volume_size_in_mbs"],
        source_details=oci.core.VolumeSourceDetailsArgs(
            id=var["volume_source_details_id"],
            type=var["volume_source_details_type"],
        ),
        vpus_per_gb=var["volume_vpus_per_gb"],
        block_volume_replicas_deletion=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewVolume(ctx, "testVolume", &Core.VolumeArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			AutotunePolicies: core.VolumeAutotunePolicyArray{
    				&core.VolumeAutotunePolicyArgs{
    					AutotuneType: pulumi.Any(_var.Volume_autotune_policies_autotune_type),
    					MaxVpusPerGb: pulumi.Any(_var.Volume_autotune_policies_max_vpus_per_gb),
    				},
    			},
    			AvailabilityDomain: pulumi.Any(_var.Volume_availability_domain),
    			BackupPolicyId:     pulumi.Any(data.Oci_core_volume_backup_policies.Test_volume_backup_policies.Volume_backup_policies[0].Id),
    			BlockVolumeReplicas: core.VolumeBlockVolumeReplicaArray{
    				&core.VolumeBlockVolumeReplicaArgs{
    					AvailabilityDomain: pulumi.Any(_var.Volume_block_volume_replicas_availability_domain),
    					DisplayName:        pulumi.Any(_var.Volume_block_volume_replicas_display_name),
    				},
    			},
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Volume_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			IsAutoTuneEnabled: pulumi.Any(_var.Volume_is_auto_tune_enabled),
    			KmsKeyId:          pulumi.Any(oci_kms_key.Test_key.Id),
    			SizeInGbs:         pulumi.Any(_var.Volume_size_in_gbs),
    			SizeInMbs:         pulumi.Any(_var.Volume_size_in_mbs),
    			SourceDetails: &core.VolumeSourceDetailsArgs{
    				Id:   pulumi.Any(_var.Volume_source_details_id),
    				Type: pulumi.Any(_var.Volume_source_details_type),
    			},
    			VpusPerGb:                   pulumi.Any(_var.Volume_vpus_per_gb),
    			BlockVolumeReplicasDeletion: pulumi.Bool(true),
    		})
    		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 testVolume = new Oci.Core.Volume("testVolume", new()
        {
            CompartmentId = @var.Compartment_id,
            AutotunePolicies = new[]
            {
                new Oci.Core.Inputs.VolumeAutotunePolicyArgs
                {
                    AutotuneType = @var.Volume_autotune_policies_autotune_type,
                    MaxVpusPerGb = @var.Volume_autotune_policies_max_vpus_per_gb,
                },
            },
            AvailabilityDomain = @var.Volume_availability_domain,
            BackupPolicyId = data.Oci_core_volume_backup_policies.Test_volume_backup_policies.Volume_backup_policies[0].Id,
            BlockVolumeReplicas = new[]
            {
                new Oci.Core.Inputs.VolumeBlockVolumeReplicaArgs
                {
                    AvailabilityDomain = @var.Volume_block_volume_replicas_availability_domain,
                    DisplayName = @var.Volume_block_volume_replicas_display_name,
                },
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Volume_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            IsAutoTuneEnabled = @var.Volume_is_auto_tune_enabled,
            KmsKeyId = oci_kms_key.Test_key.Id,
            SizeInGbs = @var.Volume_size_in_gbs,
            SizeInMbs = @var.Volume_size_in_mbs,
            SourceDetails = new Oci.Core.Inputs.VolumeSourceDetailsArgs
            {
                Id = @var.Volume_source_details_id,
                Type = @var.Volume_source_details_type,
            },
            VpusPerGb = @var.Volume_vpus_per_gb,
            BlockVolumeReplicasDeletion = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.Volume;
    import com.pulumi.oci.Core.VolumeArgs;
    import com.pulumi.oci.Core.inputs.VolumeAutotunePolicyArgs;
    import com.pulumi.oci.Core.inputs.VolumeBlockVolumeReplicaArgs;
    import com.pulumi.oci.Core.inputs.VolumeSourceDetailsArgs;
    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) {
            var testVolume = new Volume("testVolume", VolumeArgs.builder()        
                .compartmentId(var_.compartment_id())
                .autotunePolicies(VolumeAutotunePolicyArgs.builder()
                    .autotuneType(var_.volume_autotune_policies_autotune_type())
                    .maxVpusPerGb(var_.volume_autotune_policies_max_vpus_per_gb())
                    .build())
                .availabilityDomain(var_.volume_availability_domain())
                .backupPolicyId(data.oci_core_volume_backup_policies().test_volume_backup_policies().volume_backup_policies()[0].id())
                .blockVolumeReplicas(VolumeBlockVolumeReplicaArgs.builder()
                    .availabilityDomain(var_.volume_block_volume_replicas_availability_domain())
                    .displayName(var_.volume_block_volume_replicas_display_name())
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.volume_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .isAutoTuneEnabled(var_.volume_is_auto_tune_enabled())
                .kmsKeyId(oci_kms_key.test_key().id())
                .sizeInGbs(var_.volume_size_in_gbs())
                .sizeInMbs(var_.volume_size_in_mbs())
                .sourceDetails(VolumeSourceDetailsArgs.builder()
                    .id(var_.volume_source_details_id())
                    .type(var_.volume_source_details_type())
                    .build())
                .vpusPerGb(var_.volume_vpus_per_gb())
                .blockVolumeReplicasDeletion(true)
                .build());
    
        }
    }
    
    resources:
      testVolume:
        type: oci:Core:Volume
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          #Optional
          autotunePolicies:
            - autotuneType: ${var.volume_autotune_policies_autotune_type}
              maxVpusPerGb: ${var.volume_autotune_policies_max_vpus_per_gb}
          availabilityDomain: ${var.volume_availability_domain}
          backupPolicyId: ${data.oci_core_volume_backup_policies.test_volume_backup_policies.volume_backup_policies[0].id}
          blockVolumeReplicas:
            - availabilityDomain: ${var.volume_block_volume_replicas_availability_domain}
              displayName: ${var.volume_block_volume_replicas_display_name}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.volume_display_name}
          freeformTags:
            Department: Finance
          isAutoTuneEnabled: ${var.volume_is_auto_tune_enabled}
          kmsKeyId: ${oci_kms_key.test_key.id}
          sizeInGbs: ${var.volume_size_in_gbs}
          sizeInMbs: ${var.volume_size_in_mbs}
          sourceDetails:
            id: ${var.volume_source_details_id}
            type: ${var.volume_source_details_type}
          vpusPerGb: ${var.volume_vpus_per_gb}
          blockVolumeReplicasDeletion: true
    

    Create Volume Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);
    @overload
    def Volume(resource_name: str,
               args: VolumeArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Volume(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               compartment_id: Optional[str] = None,
               availability_domain: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, Any]] = None,
               is_auto_tune_enabled: Optional[bool] = None,
               block_volume_replicas_deletion: Optional[bool] = None,
               backup_policy_id: Optional[str] = None,
               defined_tags: Optional[Mapping[str, Any]] = None,
               display_name: Optional[str] = None,
               autotune_policies: Optional[Sequence[_core.VolumeAutotunePolicyArgs]] = None,
               block_volume_replicas: Optional[Sequence[_core.VolumeBlockVolumeReplicaArgs]] = None,
               kms_key_id: Optional[str] = None,
               size_in_gbs: Optional[str] = None,
               size_in_mbs: Optional[str] = None,
               source_details: Optional[_core.VolumeSourceDetailsArgs] = None,
               volume_backup_id: Optional[str] = None,
               vpus_per_gb: Optional[str] = None)
    func NewVolume(ctx *Context, name string, args VolumeArgs, opts ...ResourceOption) (*Volume, error)
    public Volume(string name, VolumeArgs args, CustomResourceOptions? opts = null)
    public Volume(String name, VolumeArgs args)
    public Volume(String name, VolumeArgs args, CustomResourceOptions options)
    
    type: oci:Core:Volume
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var volumeResource = new Oci.Core.Volume("volumeResource", new()
    {
        CompartmentId = "string",
        AvailabilityDomain = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        IsAutoTuneEnabled = false,
        BlockVolumeReplicasDeletion = false,
        DefinedTags = 
        {
            { "string", "any" },
        },
        DisplayName = "string",
        AutotunePolicies = new[]
        {
            new Oci.Core.Inputs.VolumeAutotunePolicyArgs
            {
                AutotuneType = "string",
                MaxVpusPerGb = "string",
            },
        },
        BlockVolumeReplicas = new[]
        {
            new Oci.Core.Inputs.VolumeBlockVolumeReplicaArgs
            {
                AvailabilityDomain = "string",
                BlockVolumeReplicaId = "string",
                DisplayName = "string",
            },
        },
        KmsKeyId = "string",
        SizeInGbs = "string",
        SourceDetails = new Oci.Core.Inputs.VolumeSourceDetailsArgs
        {
            Id = "string",
            Type = "string",
        },
        VolumeBackupId = "string",
        VpusPerGb = "string",
    });
    
    example, err := Core.NewVolume(ctx, "volumeResource", &Core.VolumeArgs{
    	CompartmentId:      pulumi.String("string"),
    	AvailabilityDomain: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	IsAutoTuneEnabled:           pulumi.Bool(false),
    	BlockVolumeReplicasDeletion: pulumi.Bool(false),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	DisplayName: pulumi.String("string"),
    	AutotunePolicies: core.VolumeAutotunePolicyArray{
    		&core.VolumeAutotunePolicyArgs{
    			AutotuneType: pulumi.String("string"),
    			MaxVpusPerGb: pulumi.String("string"),
    		},
    	},
    	BlockVolumeReplicas: core.VolumeBlockVolumeReplicaArray{
    		&core.VolumeBlockVolumeReplicaArgs{
    			AvailabilityDomain:   pulumi.String("string"),
    			BlockVolumeReplicaId: pulumi.String("string"),
    			DisplayName:          pulumi.String("string"),
    		},
    	},
    	KmsKeyId:  pulumi.String("string"),
    	SizeInGbs: pulumi.String("string"),
    	SourceDetails: &core.VolumeSourceDetailsArgs{
    		Id:   pulumi.String("string"),
    		Type: pulumi.String("string"),
    	},
    	VolumeBackupId: pulumi.String("string"),
    	VpusPerGb:      pulumi.String("string"),
    })
    
    var volumeResource = new Volume("volumeResource", VolumeArgs.builder()        
        .compartmentId("string")
        .availabilityDomain("string")
        .freeformTags(Map.of("string", "any"))
        .isAutoTuneEnabled(false)
        .blockVolumeReplicasDeletion(false)
        .definedTags(Map.of("string", "any"))
        .displayName("string")
        .autotunePolicies(VolumeAutotunePolicyArgs.builder()
            .autotuneType("string")
            .maxVpusPerGb("string")
            .build())
        .blockVolumeReplicas(VolumeBlockVolumeReplicaArgs.builder()
            .availabilityDomain("string")
            .blockVolumeReplicaId("string")
            .displayName("string")
            .build())
        .kmsKeyId("string")
        .sizeInGbs("string")
        .sourceDetails(VolumeSourceDetailsArgs.builder()
            .id("string")
            .type("string")
            .build())
        .volumeBackupId("string")
        .vpusPerGb("string")
        .build());
    
    volume_resource = oci.core.Volume("volumeResource",
        compartment_id="string",
        availability_domain="string",
        freeform_tags={
            "string": "any",
        },
        is_auto_tune_enabled=False,
        block_volume_replicas_deletion=False,
        defined_tags={
            "string": "any",
        },
        display_name="string",
        autotune_policies=[oci.core.VolumeAutotunePolicyArgs(
            autotune_type="string",
            max_vpus_per_gb="string",
        )],
        block_volume_replicas=[oci.core.VolumeBlockVolumeReplicaArgs(
            availability_domain="string",
            block_volume_replica_id="string",
            display_name="string",
        )],
        kms_key_id="string",
        size_in_gbs="string",
        source_details=oci.core.VolumeSourceDetailsArgs(
            id="string",
            type="string",
        ),
        volume_backup_id="string",
        vpus_per_gb="string")
    
    const volumeResource = new oci.core.Volume("volumeResource", {
        compartmentId: "string",
        availabilityDomain: "string",
        freeformTags: {
            string: "any",
        },
        isAutoTuneEnabled: false,
        blockVolumeReplicasDeletion: false,
        definedTags: {
            string: "any",
        },
        displayName: "string",
        autotunePolicies: [{
            autotuneType: "string",
            maxVpusPerGb: "string",
        }],
        blockVolumeReplicas: [{
            availabilityDomain: "string",
            blockVolumeReplicaId: "string",
            displayName: "string",
        }],
        kmsKeyId: "string",
        sizeInGbs: "string",
        sourceDetails: {
            id: "string",
            type: "string",
        },
        volumeBackupId: "string",
        vpusPerGb: "string",
    });
    
    type: oci:Core:Volume
    properties:
        autotunePolicies:
            - autotuneType: string
              maxVpusPerGb: string
        availabilityDomain: string
        blockVolumeReplicas:
            - availabilityDomain: string
              blockVolumeReplicaId: string
              displayName: string
        blockVolumeReplicasDeletion: false
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        isAutoTuneEnabled: false
        kmsKeyId: string
        sizeInGbs: string
        sourceDetails:
            id: string
            type: string
        volumeBackupId: string
        vpusPerGb: string
    

    Volume Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Volume resource accepts the following input properties:

    AvailabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the volume.
    AutotunePolicies List<VolumeAutotunePolicy>
    (Updatable) The list of autotune policies to be enabled for this volume.
    BackupPolicyId string
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    BlockVolumeReplicas List<VolumeBlockVolumeReplica>
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    BlockVolumeReplicasDeletion bool
    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    IsAutoTuneEnabled bool
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
    KmsKeyId string
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    SizeInGbs string
    (Updatable) The size of the volume in GBs.
    SizeInMbs string
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    SourceDetails VolumeSourceDetails
    VolumeBackupId string
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    VpusPerGb string

    (Updatable) 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.

    Allowed values:

    AvailabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the volume.
    AutotunePolicies []VolumeAutotunePolicyArgs
    (Updatable) The list of autotune policies to be enabled for this volume.
    BackupPolicyId string
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    BlockVolumeReplicas []VolumeBlockVolumeReplicaArgs
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    BlockVolumeReplicasDeletion bool
    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    IsAutoTuneEnabled bool
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
    KmsKeyId string
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    SizeInGbs string
    (Updatable) The size of the volume in GBs.
    SizeInMbs string
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    SourceDetails VolumeSourceDetailsArgs
    VolumeBackupId string
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    VpusPerGb string

    (Updatable) 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.

    Allowed values:

    availabilityDomain String
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment that contains the volume.
    autotunePolicies List<VolumeAutotunePolicy>
    (Updatable) The list of autotune policies to be enabled for this volume.
    backupPolicyId String
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    blockVolumeReplicas List<VolumeBlockVolumeReplica>
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    blockVolumeReplicasDeletion Boolean
    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    isAutoTuneEnabled Boolean
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
    kmsKeyId String
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    sizeInGbs String
    (Updatable) The size of the volume in GBs.
    sizeInMbs String
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    sourceDetails VolumeSourceDetails
    volumeBackupId String
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    vpusPerGb String

    (Updatable) 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.

    Allowed values:

    availabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment that contains the volume.
    autotunePolicies VolumeAutotunePolicy[]
    (Updatable) The list of autotune policies to be enabled for this volume.
    backupPolicyId string
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    blockVolumeReplicas VolumeBlockVolumeReplica[]
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    blockVolumeReplicasDeletion boolean
    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    isAutoTuneEnabled boolean
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
    kmsKeyId string
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    sizeInGbs string
    (Updatable) The size of the volume in GBs.
    sizeInMbs string
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    sourceDetails VolumeSourceDetails
    volumeBackupId string
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    vpusPerGb string

    (Updatable) 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.

    Allowed values:

    availability_domain str
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    compartment_id str
    (Updatable) The OCID of the compartment that contains the volume.
    autotune_policies Sequence[core.VolumeAutotunePolicyArgs]
    (Updatable) The list of autotune policies to be enabled for this volume.
    backup_policy_id str
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    block_volume_replicas Sequence[core.VolumeBlockVolumeReplicaArgs]
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    block_volume_replicas_deletion bool
    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    is_auto_tune_enabled bool
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
    kms_key_id str
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    size_in_gbs str
    (Updatable) The size of the volume in GBs.
    size_in_mbs str
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    source_details core.VolumeSourceDetailsArgs
    volume_backup_id str
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    vpus_per_gb str

    (Updatable) 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.

    Allowed values:

    availabilityDomain String
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment that contains the volume.
    autotunePolicies List<Property Map>
    (Updatable) The list of autotune policies to be enabled for this volume.
    backupPolicyId String
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    blockVolumeReplicas List<Property Map>
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    blockVolumeReplicasDeletion Boolean
    definedTags Map<Any>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) 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"}
    isAutoTuneEnabled Boolean
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
    kmsKeyId String
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    sizeInGbs String
    (Updatable) The size of the volume in GBs.
    sizeInMbs String
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    sourceDetails Property Map
    volumeBackupId String
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    vpusPerGb String

    (Updatable) 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.

    Allowed values:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:

    AutoTunedVpusPerGb string
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsHydrated bool
    Specifies whether the cloned volume's data has finished copying from the source volume or backup.
    State string
    The current state of a volume.
    SystemTags Dictionary<string, object>
    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.
    VolumeGroupId string
    The OCID of the source volume group.
    AutoTunedVpusPerGb string
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsHydrated bool
    Specifies whether the cloned volume's data has finished copying from the source volume or backup.
    State string
    The current state of a volume.
    SystemTags map[string]interface{}
    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.
    VolumeGroupId string
    The OCID of the source volume group.
    autoTunedVpusPerGb String
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    id String
    The provider-assigned unique ID for this managed resource.
    isHydrated Boolean
    Specifies whether the cloned volume's data has finished copying from the source volume or backup.
    state String
    The current state of a volume.
    systemTags Map<String,Object>
    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.
    volumeGroupId String
    The OCID of the source volume group.
    autoTunedVpusPerGb string
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    id string
    The provider-assigned unique ID for this managed resource.
    isHydrated boolean
    Specifies whether the cloned volume's data has finished copying from the source volume or backup.
    state string
    The current state of a volume.
    systemTags {[key: string]: any}
    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.
    volumeGroupId string
    The OCID of the source volume group.
    auto_tuned_vpus_per_gb str
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    id str
    The provider-assigned unique ID for this managed resource.
    is_hydrated bool
    Specifies whether the cloned volume's data has finished copying from the source volume or backup.
    state str
    The current state of a volume.
    system_tags Mapping[str, Any]
    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_group_id str
    The OCID of the source volume group.
    autoTunedVpusPerGb String
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    id String
    The provider-assigned unique ID for this managed resource.
    isHydrated Boolean
    Specifies whether the cloned volume's data has finished copying from the source volume or backup.
    state String
    The current state of a volume.
    systemTags Map<Any>
    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.
    volumeGroupId String
    The OCID of the source volume group.

    Look up Existing Volume Resource

    Get an existing Volume resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VolumeState, opts?: CustomResourceOptions): Volume
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_tuned_vpus_per_gb: Optional[str] = None,
            autotune_policies: Optional[Sequence[_core.VolumeAutotunePolicyArgs]] = None,
            availability_domain: Optional[str] = None,
            backup_policy_id: Optional[str] = None,
            block_volume_replicas: Optional[Sequence[_core.VolumeBlockVolumeReplicaArgs]] = None,
            block_volume_replicas_deletion: Optional[bool] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            is_auto_tune_enabled: Optional[bool] = None,
            is_hydrated: Optional[bool] = None,
            kms_key_id: Optional[str] = None,
            size_in_gbs: Optional[str] = None,
            size_in_mbs: Optional[str] = None,
            source_details: Optional[_core.VolumeSourceDetailsArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            volume_backup_id: Optional[str] = None,
            volume_group_id: Optional[str] = None,
            vpus_per_gb: Optional[str] = None) -> Volume
    func GetVolume(ctx *Context, name string, id IDInput, state *VolumeState, opts ...ResourceOption) (*Volume, error)
    public static Volume Get(string name, Input<string> id, VolumeState? state, CustomResourceOptions? opts = null)
    public static Volume get(String name, Output<String> id, VolumeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoTunedVpusPerGb string
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    AutotunePolicies List<VolumeAutotunePolicy>
    (Updatable) The list of autotune policies to be enabled for this volume.
    AvailabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    BackupPolicyId string
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    BlockVolumeReplicas List<VolumeBlockVolumeReplica>
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    BlockVolumeReplicasDeletion bool
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the volume.
    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    IsAutoTuneEnabled bool
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead 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.
    KmsKeyId string
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    SizeInGbs string
    (Updatable) The size of the volume in GBs.
    SizeInMbs string
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    SourceDetails VolumeSourceDetails
    State string
    The current state of a volume.
    SystemTags Dictionary<string, object>
    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.
    VolumeBackupId string
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    VolumeGroupId string
    The OCID of the source volume group.
    VpusPerGb string

    (Updatable) 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.

    Allowed values:

    AutoTunedVpusPerGb string
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    AutotunePolicies []VolumeAutotunePolicyArgs
    (Updatable) The list of autotune policies to be enabled for this volume.
    AvailabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    BackupPolicyId string
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    BlockVolumeReplicas []VolumeBlockVolumeReplicaArgs
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    BlockVolumeReplicasDeletion bool
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the volume.
    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    IsAutoTuneEnabled bool
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead 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.
    KmsKeyId string
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    SizeInGbs string
    (Updatable) The size of the volume in GBs.
    SizeInMbs string
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    SourceDetails VolumeSourceDetailsArgs
    State string
    The current state of a volume.
    SystemTags map[string]interface{}
    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.
    VolumeBackupId string
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    VolumeGroupId string
    The OCID of the source volume group.
    VpusPerGb string

    (Updatable) 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.

    Allowed values:

    autoTunedVpusPerGb String
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    autotunePolicies List<VolumeAutotunePolicy>
    (Updatable) The list of autotune policies to be enabled for this volume.
    availabilityDomain String
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    backupPolicyId String
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    blockVolumeReplicas List<VolumeBlockVolumeReplica>
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    blockVolumeReplicasDeletion Boolean
    compartmentId String
    (Updatable) The OCID of the compartment that contains the volume.
    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    isAutoTuneEnabled Boolean
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead 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.
    kmsKeyId String
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    sizeInGbs String
    (Updatable) The size of the volume in GBs.
    sizeInMbs String
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    sourceDetails VolumeSourceDetails
    state String
    The current state of a volume.
    systemTags Map<String,Object>
    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.
    volumeBackupId String
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    volumeGroupId String
    The OCID of the source volume group.
    vpusPerGb String

    (Updatable) 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.

    Allowed values:

    autoTunedVpusPerGb string
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    autotunePolicies VolumeAutotunePolicy[]
    (Updatable) The list of autotune policies to be enabled for this volume.
    availabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    backupPolicyId string
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    blockVolumeReplicas VolumeBlockVolumeReplica[]
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    blockVolumeReplicasDeletion boolean
    compartmentId string
    (Updatable) The OCID of the compartment that contains the volume.
    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    isAutoTuneEnabled boolean
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead 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.
    kmsKeyId string
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    sizeInGbs string
    (Updatable) The size of the volume in GBs.
    sizeInMbs string
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    sourceDetails VolumeSourceDetails
    state string
    The current state of a volume.
    systemTags {[key: string]: any}
    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.
    volumeBackupId string
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    volumeGroupId string
    The OCID of the source volume group.
    vpusPerGb string

    (Updatable) 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.

    Allowed values:

    auto_tuned_vpus_per_gb str
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    autotune_policies Sequence[core.VolumeAutotunePolicyArgs]
    (Updatable) The list of autotune policies to be enabled for this volume.
    availability_domain str
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    backup_policy_id str
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    block_volume_replicas Sequence[core.VolumeBlockVolumeReplicaArgs]
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    block_volume_replicas_deletion bool
    compartment_id str
    (Updatable) The OCID of the compartment that contains the volume.
    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    is_auto_tune_enabled bool
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead 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.
    kms_key_id str
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    size_in_gbs str
    (Updatable) The size of the volume in GBs.
    size_in_mbs str
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    source_details core.VolumeSourceDetailsArgs
    state str
    The current state of a volume.
    system_tags Mapping[str, Any]
    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_id str
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    volume_group_id str
    The OCID of the source volume group.
    vpus_per_gb str

    (Updatable) 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.

    Allowed values:

    autoTunedVpusPerGb String
    The number of Volume Performance Units per GB that this volume is effectively tuned to.
    autotunePolicies List<Property Map>
    (Updatable) The list of autotune policies to be enabled for this volume.
    availabilityDomain String
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    backupPolicyId String
    If provided, specifies the ID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. This field is deprecated. Use the oci.Core.getVolumeBackupPolicyAssignments instead to assign a backup policy to a volume.

    Deprecated: The 'backup_policy_id' field has been deprecated. Please use the 'oci_core_volume_backup_policy_assignment' resource instead.

    blockVolumeReplicas List<Property Map>
    (Updatable) The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
    blockVolumeReplicasDeletion Boolean
    compartmentId String
    (Updatable) The OCID of the compartment that contains the volume.
    definedTags Map<Any>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) 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"}
    isAutoTuneEnabled Boolean
    (Updatable) Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead 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.
    kmsKeyId String
    (Updatable) The OCID of the Vault service key to assign as the master encryption key for the volume.
    sizeInGbs String
    (Updatable) The size of the volume in GBs.
    sizeInMbs String
    The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use size_in_gbs instead.

    Deprecated: The 'size_in_mbs' field has been deprecated. Please use 'size_in_gbs' instead.

    sourceDetails Property Map
    state String
    The current state of a volume.
    systemTags Map<Any>
    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.
    volumeBackupId String
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
    volumeGroupId String
    The OCID of the source volume group.
    vpusPerGb String

    (Updatable) 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.

    Allowed values:

    Supporting Types

    VolumeAutotunePolicy, VolumeAutotunePolicyArgs

    AutotuneType string
    (Updatable) This specifies the type of autotunes supported by OCI.
    MaxVpusPerGb string
    (Updatable) This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
    AutotuneType string
    (Updatable) This specifies the type of autotunes supported by OCI.
    MaxVpusPerGb string
    (Updatable) This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
    autotuneType String
    (Updatable) This specifies the type of autotunes supported by OCI.
    maxVpusPerGb String
    (Updatable) This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
    autotuneType string
    (Updatable) This specifies the type of autotunes supported by OCI.
    maxVpusPerGb string
    (Updatable) This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
    autotune_type str
    (Updatable) This specifies the type of autotunes supported by OCI.
    max_vpus_per_gb str
    (Updatable) This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
    autotuneType String
    (Updatable) This specifies the type of autotunes supported by OCI.
    maxVpusPerGb String
    (Updatable) This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.

    VolumeBlockVolumeReplica, VolumeBlockVolumeReplicaArgs

    AvailabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    BlockVolumeReplicaId string
    The block volume replica's Oracle ID (OCID).
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    AvailabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    BlockVolumeReplicaId string
    The block volume replica's Oracle ID (OCID).
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    availabilityDomain String
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    blockVolumeReplicaId String
    The block volume replica's Oracle ID (OCID).
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    availabilityDomain string
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    blockVolumeReplicaId string
    The block volume replica's Oracle ID (OCID).
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    availability_domain str
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    block_volume_replica_id str
    The block volume replica's Oracle ID (OCID).
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    availabilityDomain String
    (Updatable) The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    blockVolumeReplicaId String
    The block volume replica's Oracle ID (OCID).
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

    VolumeSourceDetails, VolumeSourceDetailsArgs

    Id string
    The OCID of the block volume replica.
    Type string
    The type can be one of these values: blockVolumeReplica, volume, volumeBackup
    Id string
    The OCID of the block volume replica.
    Type string
    The type can be one of these values: blockVolumeReplica, volume, volumeBackup
    id String
    The OCID of the block volume replica.
    type String
    The type can be one of these values: blockVolumeReplica, volume, volumeBackup
    id string
    The OCID of the block volume replica.
    type string
    The type can be one of these values: blockVolumeReplica, volume, volumeBackup
    id str
    The OCID of the block volume replica.
    type str
    The type can be one of these values: blockVolumeReplica, volume, volumeBackup
    id String
    The OCID of the block volume replica.
    type String
    The type can be one of these values: blockVolumeReplica, volume, volumeBackup

    Import

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

    $ pulumi import oci:Core/volume:Volume test_volume "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi