Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_core.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[_core.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVolumes:getVolumes
arguments:
# arguments dictionary
The following arguments are supported:
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Cluster
Placement stringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Volumes Filter> - State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Volume
Group stringId - The OCID of the volume group.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Cluster
Placement stringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Volumes Filter - State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Volume
Group stringId - The OCID of the volume group.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- cluster
Placement StringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Volumes Filter> - state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volume
Group StringId - The OCID of the volume group.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- cluster
Placement stringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- compartment
Id string - The OCID of the compartment.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Volumes Filter[] - state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volume
Group 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[core.
Get Volumes 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.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- cluster
Placement StringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- compartment
Id String - The OCID of the compartment.
- display
Name 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.
- volume
Group 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<Get
Volumes Volume> - The list of volumes.
- Availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- Cluster
Placement stringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- Compartment
Id string - The OCID of the compartment that contains the volume.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Volumes Filter> - State string
- The current state of a volume.
- Volume
Group stringId - The OCID of the source volume group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volumes
[]Get
Volumes Volume - The list of volumes.
- Availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- Cluster
Placement stringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- Compartment
Id string - The OCID of the compartment that contains the volume.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Volumes Filter - State string
- The current state of a volume.
- Volume
Group stringId - The OCID of the source volume group.
- id String
- The provider-assigned unique ID for this managed resource.
- volumes
List<Get
Volumes Volume> - The list of volumes.
- availability
Domain String - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- cluster
Placement StringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment
Id String - The OCID of the compartment that contains the volume.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Volumes Filter> - state String
- The current state of a volume.
- volume
Group StringId - The OCID of the source volume group.
- id string
- The provider-assigned unique ID for this managed resource.
- volumes
Get
Volumes Volume[] - The list of volumes.
- availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- cluster
Placement stringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment
Id string - The OCID of the compartment that contains the volume.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Volumes Filter[] - state string
- The current state of a volume.
- volume
Group stringId - The OCID of the source volume group.
- id str
- The provider-assigned unique ID for this managed resource.
- volumes
Sequence[core.
Get Volumes 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[core.
Get Volumes 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.
- availability
Domain String - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- cluster
Placement StringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment
Id String - The OCID of the compartment that contains the volume.
- display
Name 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.
- volume
Group StringId - The OCID of the source volume group.
Supporting Types
GetVolumesFilter
GetVolumesVolume
- Auto
Tuned stringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- Autotune
Policies List<GetVolumes Volume Autotune Policy> - The list of autotune policies enabled for this volume.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Backup
Policy stringId - Block
Volume List<GetReplicas Volumes Volume Block Volume Replica> - The list of block volume replicas of this volume.
- Block
Volume boolReplicas Deletion - Cluster
Placement stringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- Compartment
Id 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"}
- Display
Name 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.
- Is
Auto boolTune Enabled - 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 stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- Size
In stringGbs - The size of the volume in GBs.
- Size
In stringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- Source
Details 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"}
- Time
Created string - The date and time the volume was created. Format defined by RFC3339.
- Volume
Backup stringId - Volume
Group stringId - The OCID of the volume group.
- Vpus
Per 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.
- Xrc
Kms stringKey Id
- Auto
Tuned stringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- Autotune
Policies []GetVolumes Volume Autotune Policy - The list of autotune policies enabled for this volume.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Backup
Policy stringId - Block
Volume []GetReplicas Volumes Volume Block Volume Replica - The list of block volume replicas of this volume.
- Block
Volume boolReplicas Deletion - Cluster
Placement stringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- Compartment
Id 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"}
- Display
Name 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.
- Is
Auto boolTune Enabled - 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 stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- Size
In stringGbs - The size of the volume in GBs.
- Size
In stringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- Source
Details []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"}
- Time
Created string - The date and time the volume was created. Format defined by RFC3339.
- Volume
Backup stringId - Volume
Group stringId - The OCID of the volume group.
- Vpus
Per 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.
- Xrc
Kms stringKey Id
- auto
Tuned StringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune
Policies List<GetVolumes Volume Autotune Policy> - The list of autotune policies enabled for this volume.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- backup
Policy StringId - block
Volume List<GetReplicas Volumes Volume Block Volume Replica> - The list of block volume replicas of this volume.
- block
Volume BooleanReplicas Deletion - cluster
Placement StringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- compartment
Id 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"}
- display
Name 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.
- is
Auto BooleanTune Enabled - 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 Boolean - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms
Key StringId - The OCID of the Vault service key which is the master encryption key for the volume.
- size
In StringGbs - The size of the volume in GBs.
- size
In StringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source
Details 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"}
- time
Created String - The date and time the volume was created. Format defined by RFC3339.
- volume
Backup StringId - volume
Group StringId - The OCID of the volume group.
- vpus
Per 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.
- xrc
Kms StringKey Id
- auto
Tuned stringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune
Policies GetVolumes Volume Autotune Policy[] - The list of autotune policies enabled for this volume.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- backup
Policy stringId - block
Volume GetReplicas Volumes Volume Block Volume Replica[] - The list of block volume replicas of this volume.
- block
Volume booleanReplicas Deletion - cluster
Placement stringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- compartment
Id 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"}
- display
Name 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.
- is
Auto booleanTune Enabled - 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 boolean - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- size
In stringGbs - The size of the volume in GBs.
- size
In stringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source
Details 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"}
- time
Created string - The date and time the volume was created. Format defined by RFC3339.
- volume
Backup stringId - volume
Group stringId - The OCID of the volume group.
- vpus
Per 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.
- xrc
Kms 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[core.Get Volumes 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[core.replicas Get 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
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_ 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[core.Get Volumes 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
- auto
Tuned StringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune
Policies List<Property Map> - The list of autotune policies enabled for this volume.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- backup
Policy StringId - block
Volume List<Property Map>Replicas - The list of block volume replicas of this volume.
- block
Volume BooleanReplicas Deletion - cluster
Placement StringGroup Id - A filter to return only resources that match the given cluster placement group Id exactly.
- compartment
Id 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"}
- display
Name 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.
- is
Auto BooleanTune Enabled - 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 Boolean - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms
Key StringId - The OCID of the Vault service key which is the master encryption key for the volume.
- size
In StringGbs - The size of the volume in GBs.
- size
In StringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source
Details 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"}
- time
Created String - The date and time the volume was created. Format defined by RFC3339.
- volume
Backup StringId - volume
Group StringId - The OCID of the volume group.
- vpus
Per 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.
- xrc
Kms StringKey Id
GetVolumesVolumeAutotunePolicy
- Autotune
Type string - This specifies the type of autotunes supported by OCI.
- Max
Vpus 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 string - This specifies the type of autotunes supported by OCI.
- Max
Vpus 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 String - This specifies the type of autotunes supported by OCI.
- max
Vpus 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 string - This specifies the type of autotunes supported by OCI.
- max
Vpus 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.
- autotune
Type String - This specifies the type of autotunes supported by OCI.
- max
Vpus StringPer Gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
GetVolumesVolumeBlockVolumeReplica
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Block
Volume stringReplica Id - The block volume replica's Oracle ID (OCID).
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- Xrr
Kms stringKey Id
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Block
Volume stringReplica Id - The block volume replica's Oracle ID (OCID).
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- Xrr
Kms stringKey Id
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- block
Volume StringReplica Id - The block volume replica's Oracle ID (OCID).
- display
Name String - A filter to return only resources that match the given display name exactly.
- kms
Key StringId - The OCID of the Vault service key which is the master encryption key for the volume.
- xrr
Kms StringKey Id
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- block
Volume stringReplica Id - The block volume replica's Oracle ID (OCID).
- display
Name string - A filter to return only resources that match the given display name exactly.
- kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- xrr
Kms 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
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- block
Volume StringReplica Id - The block volume replica's Oracle ID (OCID).
- display
Name String - A filter to return only resources that match the given display name exactly.
- kms
Key StringId - The OCID of the Vault service key which is the master encryption key for the volume.
- xrr
Kms StringKey Id
GetVolumesVolumeSourceDetail
- Change
Block 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).
- First
Backup 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.
- Second
Backup 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 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).
- First
Backup 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.
- Second
Backup 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 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).
- first
Backup 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.
- second
Backup 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 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).
- first
Backup 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.
- second
Backup 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
- change
Block 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).
- first
Backup 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.
- second
Backup 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
oci
Terraform Provider.