Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getBootVolumes

This data source provides the list of Boot Volumes in Oracle Cloud Infrastructure Core service.

Lists the boot volumes in the specified compartment and availability domain.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testBootVolumes = Output.Create(Oci.Core.GetBootVolumes.InvokeAsync(new Oci.Core.GetBootVolumesArgs
        {
            AvailabilityDomain = @var.Boot_volume_availability_domain,
            CompartmentId = @var.Compartment_id,
            VolumeGroupId = oci_core_volume_group.Test_volume_group.Id,
        }));
    }

}
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.GetBootVolumes(ctx, &core.GetBootVolumesArgs{
			AvailabilityDomain: _var.Boot_volume_availability_domain,
			CompartmentId:      _var.Compartment_id,
			VolumeGroupId:      pulumi.StringRef(oci_core_volume_group.Test_volume_group.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_boot_volumes = oci.Core.get_boot_volumes(availability_domain=var["boot_volume_availability_domain"],
    compartment_id=var["compartment_id"],
    volume_group_id=oci_core_volume_group["test_volume_group"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testBootVolumes = oci.Core.getBootVolumes({
    availabilityDomain: _var.boot_volume_availability_domain,
    compartmentId: _var.compartment_id,
    volumeGroupId: oci_core_volume_group.test_volume_group.id,
});

Coming soon!

Using getBootVolumes

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 getBootVolumes(args: GetBootVolumesArgs, opts?: InvokeOptions): Promise<GetBootVolumesResult>
function getBootVolumesOutput(args: GetBootVolumesOutputArgs, opts?: InvokeOptions): Output<GetBootVolumesResult>
def get_boot_volumes(availability_domain: Optional[str] = None,
                     compartment_id: Optional[str] = None,
                     filters: Optional[Sequence[_core.GetBootVolumesFilter]] = None,
                     volume_group_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetBootVolumesResult
def get_boot_volumes_output(availability_domain: Optional[pulumi.Input[str]] = None,
                     compartment_id: Optional[pulumi.Input[str]] = None,
                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetBootVolumesFilterArgs]]]] = None,
                     volume_group_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetBootVolumesResult]
func GetBootVolumes(ctx *Context, args *GetBootVolumesArgs, opts ...InvokeOption) (*GetBootVolumesResult, error)
func GetBootVolumesOutput(ctx *Context, args *GetBootVolumesOutputArgs, opts ...InvokeOption) GetBootVolumesResultOutput

> Note: This function is named GetBootVolumes in the Go SDK.

public static class GetBootVolumes 
{
    public static Task<GetBootVolumesResult> InvokeAsync(GetBootVolumesArgs args, InvokeOptions? opts = null)
    public static Output<GetBootVolumesResult> Invoke(GetBootVolumesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBootVolumesResult> getBootVolumes(GetBootVolumesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Core/getBootVolumes:getBootVolumes
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment.

Filters List<GetBootVolumesFilter>
VolumeGroupId string

The OCID of the volume group.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

CompartmentId string

The OCID of the compartment.

Filters []GetBootVolumesFilter
VolumeGroupId string

The OCID of the volume group.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment.

filters List<GetBootVolumesFilter>
volumeGroupId String

The OCID of the volume group.

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId string

The OCID of the compartment.

filters GetBootVolumesFilter[]
volumeGroupId string

The OCID of the volume group.

availability_domain str

The name of the availability domain. Example: Uocm:PHX-AD-1

compartment_id str

The OCID of the compartment.

filters GetBootVolumesFilter]
volume_group_id str

The OCID of the volume group.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

compartmentId String

The OCID of the compartment.

filters List<Property Map>
volumeGroupId String

The OCID of the volume group.

getBootVolumes Result

The following output properties are available:

AvailabilityDomain string

The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1

BootVolumes List<GetBootVolumesBootVolume>

The list of boot_volumes.

CompartmentId string

The OCID of the compartment that contains the boot volume.

Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetBootVolumesFilter>
VolumeGroupId string

The OCID of the source volume group.

AvailabilityDomain string

The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1

BootVolumes []GetBootVolumesBootVolume

The list of boot_volumes.

CompartmentId string

The OCID of the compartment that contains the boot volume.

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetBootVolumesFilter
VolumeGroupId string

The OCID of the source volume group.

availabilityDomain String

The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1

bootVolumes List<GetBootVolumesBootVolume>

The list of boot_volumes.

compartmentId String

The OCID of the compartment that contains the boot volume.

id String

The provider-assigned unique ID for this managed resource.

filters List<GetBootVolumesFilter>
volumeGroupId String

The OCID of the source volume group.

availabilityDomain string

The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1

bootVolumes GetBootVolumesBootVolume[]

The list of boot_volumes.

compartmentId string

The OCID of the compartment that contains the boot volume.

id string

The provider-assigned unique ID for this managed resource.

filters GetBootVolumesFilter[]
volumeGroupId string

The OCID of the source volume group.

availability_domain str

The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1

boot_volumes GetBootVolumesBootVolume]

The list of boot_volumes.

compartment_id str

The OCID of the compartment that contains the boot volume.

id str

The provider-assigned unique ID for this managed resource.

filters GetBootVolumesFilter]
volume_group_id str

The OCID of the source volume group.

availabilityDomain String

The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1

bootVolumes List<Property Map>

The list of boot_volumes.

compartmentId String

The OCID of the compartment that contains the boot volume.

id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>
volumeGroupId String

The OCID of the source volume group.

Supporting Types

GetBootVolumesBootVolume

AutoTunedVpusPerGb string

The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

BackupPolicyId string

Deprecated:

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

BootVolumeReplicas List<GetBootVolumesBootVolumeBootVolumeReplica>

The list of boot volume replicas of this boot volume

BootVolumeReplicasDeletion bool
CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags Dictionary<string, object>

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

The OCID of the boot volume replica.

ImageId string

The image OCID used to create the boot volume.

IsAutoTuneEnabled bool

Specifies whether the auto-tune performance is enabled for this boot volume.

IsHydrated bool

Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.

KmsKeyId string

The OCID of the Key Management master encryption key assigned to the boot volume.

SizeInGbs string

The size of the boot volume in GBs.

SizeInMbs string

The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use size_in_gbs.

SourceDetails List<GetBootVolumesBootVolumeSourceDetail>
State string

The current state of a boot 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 boot volume was created. Format defined by RFC3339.

VolumeGroupId string

The OCID of the volume group.

VpusPerGb string

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.

AutoTunedVpusPerGb string

The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

BackupPolicyId string

Deprecated:

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

BootVolumeReplicas []GetBootVolumesBootVolumeBootVolumeReplica

The list of boot volume replicas of this boot volume

BootVolumeReplicasDeletion bool
CompartmentId string

The OCID of the compartment.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FreeformTags map[string]interface{}

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

The OCID of the boot volume replica.

ImageId string

The image OCID used to create the boot volume.

IsAutoTuneEnabled bool

Specifies whether the auto-tune performance is enabled for this boot volume.

IsHydrated bool

Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.

KmsKeyId string

The OCID of the Key Management master encryption key assigned to the boot volume.

SizeInGbs string

The size of the boot volume in GBs.

SizeInMbs string

The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use size_in_gbs.

SourceDetails []GetBootVolumesBootVolumeSourceDetail
State string

The current state of a boot 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 boot volume was created. Format defined by RFC3339.

VolumeGroupId string

The OCID of the volume group.

VpusPerGb string

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.

autoTunedVpusPerGb String

The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

backupPolicyId String

Deprecated:

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

bootVolumeReplicas List<GetBootVolumesBootVolumeBootVolumeReplica>

The list of boot volume replicas of this boot volume

bootVolumeReplicasDeletion Boolean
compartmentId String

The OCID of the compartment.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags Map<String,Object>

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

The OCID of the boot volume replica.

imageId String

The image OCID used to create the boot volume.

isAutoTuneEnabled Boolean

Specifies whether the auto-tune performance is enabled for this boot volume.

isHydrated Boolean

Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.

kmsKeyId String

The OCID of the Key Management master encryption key assigned to the boot volume.

sizeInGbs String

The size of the boot volume in GBs.

sizeInMbs String

The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use size_in_gbs.

sourceDetails List<GetBootVolumesBootVolumeSourceDetail>
state String

The current state of a boot 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 boot volume was created. Format defined by RFC3339.

volumeGroupId String

The OCID of the volume group.

vpusPerGb String

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.

autoTunedVpusPerGb string

The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle.

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

backupPolicyId string

Deprecated:

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

bootVolumeReplicas GetBootVolumesBootVolumeBootVolumeReplica[]

The list of boot volume replicas of this boot volume

bootVolumeReplicasDeletion boolean
compartmentId string

The OCID of the compartment.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags {[key: string]: any}

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

The OCID of the boot volume replica.

imageId string

The image OCID used to create the boot volume.

isAutoTuneEnabled boolean

Specifies whether the auto-tune performance is enabled for this boot volume.

isHydrated boolean

Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.

kmsKeyId string

The OCID of the Key Management master encryption key assigned to the boot volume.

sizeInGbs string

The size of the boot volume in GBs.

sizeInMbs string

The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use size_in_gbs.

sourceDetails GetBootVolumesBootVolumeSourceDetail[]
state string

The current state of a boot 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 boot volume was created. Format defined by RFC3339.

volumeGroupId string

The OCID of the volume group.

vpusPerGb string

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.

auto_tuned_vpus_per_gb str

The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle.

availability_domain str

The name of the availability domain. Example: Uocm:PHX-AD-1

backup_policy_id str

Deprecated:

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

boot_volume_replicas GetBootVolumesBootVolumeBootVolumeReplica]

The list of boot volume replicas of this boot volume

boot_volume_replicas_deletion bool
compartment_id str

The OCID of the compartment.

defined_tags Mapping[str, Any]

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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeform_tags Mapping[str, Any]

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

The OCID of the boot volume replica.

image_id str

The image OCID used to create the boot volume.

is_auto_tune_enabled bool

Specifies whether the auto-tune performance is enabled for this boot volume.

is_hydrated bool

Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.

kms_key_id str

The OCID of the Key Management master encryption key assigned to the boot volume.

size_in_gbs str

The size of the boot 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. Please use size_in_gbs.

source_details GetBootVolumesBootVolumeSourceDetail]
state str

The current state of a boot 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 boot volume was created. Format defined by RFC3339.

volume_group_id str

The OCID of the volume group.

vpus_per_gb str

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.

autoTunedVpusPerGb String

The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

backupPolicyId String

Deprecated:

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

bootVolumeReplicas List<Property Map>

The list of boot volume replicas of this boot volume

bootVolumeReplicasDeletion Boolean
compartmentId String

The OCID of the compartment.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

freeformTags Map<Any>

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

The OCID of the boot volume replica.

imageId String

The image OCID used to create the boot volume.

isAutoTuneEnabled Boolean

Specifies whether the auto-tune performance is enabled for this boot volume.

isHydrated Boolean

Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup.

kmsKeyId String

The OCID of the Key Management master encryption key assigned to the boot volume.

sizeInGbs String

The size of the boot volume in GBs.

sizeInMbs String

The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Please use size_in_gbs.

sourceDetails List<Property Map>
state String

The current state of a boot 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 boot volume was created. Format defined by RFC3339.

volumeGroupId String

The OCID of the volume group.

vpusPerGb String

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.

GetBootVolumesBootVolumeBootVolumeReplica

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

BootVolumeReplicaId string

The boot volume replica's Oracle ID (OCID).

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

AvailabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

BootVolumeReplicaId string

The boot volume replica's Oracle ID (OCID).

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

bootVolumeReplicaId String

The boot volume replica's Oracle ID (OCID).

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

availabilityDomain string

The name of the availability domain. Example: Uocm:PHX-AD-1

bootVolumeReplicaId string

The boot volume replica's Oracle ID (OCID).

displayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

availability_domain str

The name of the availability domain. Example: Uocm:PHX-AD-1

boot_volume_replica_id str

The boot volume replica's Oracle ID (OCID).

display_name str

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

availabilityDomain String

The name of the availability domain. Example: Uocm:PHX-AD-1

bootVolumeReplicaId String

The boot volume replica's Oracle ID (OCID).

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

GetBootVolumesBootVolumeSourceDetail

Id string

The OCID of the boot volume replica.

Type string

The type can be one of these values: bootVolume, bootVolumeBackup, bootVolumeReplica

Id string

The OCID of the boot volume replica.

Type string

The type can be one of these values: bootVolume, bootVolumeBackup, bootVolumeReplica

id String

The OCID of the boot volume replica.

type String

The type can be one of these values: bootVolume, bootVolumeBackup, bootVolumeReplica

id string

The OCID of the boot volume replica.

type string

The type can be one of these values: bootVolume, bootVolumeBackup, bootVolumeReplica

id str

The OCID of the boot volume replica.

type str

The type can be one of these values: bootVolume, bootVolumeBackup, bootVolumeReplica

id String

The OCID of the boot volume replica.

type String

The type can be one of these values: bootVolume, bootVolumeBackup, bootVolumeReplica

GetBootVolumesFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.