Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Core.getBootVolumeReplicas
Explore with Pulumi AI
This data source provides the list of Boot Volume Replicas in Oracle Cloud Infrastructure Core service.
Lists the boot volume replicas in the specified compartment and availability domain.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBootVolumeReplicas = oci.Core.getBootVolumeReplicas({
    availabilityDomain: bootVolumeReplicaAvailabilityDomain,
    compartmentId: compartmentId,
    displayName: bootVolumeReplicaDisplayName,
    state: bootVolumeReplicaState,
    volumeGroupReplicaId: testVolumeGroupReplica.id,
});
import pulumi
import pulumi_oci as oci
test_boot_volume_replicas = oci.Core.get_boot_volume_replicas(availability_domain=boot_volume_replica_availability_domain,
    compartment_id=compartment_id,
    display_name=boot_volume_replica_display_name,
    state=boot_volume_replica_state,
    volume_group_replica_id=test_volume_group_replica["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.GetBootVolumeReplicas(ctx, &core.GetBootVolumeReplicasArgs{
			AvailabilityDomain:   pulumi.StringRef(bootVolumeReplicaAvailabilityDomain),
			CompartmentId:        pulumi.StringRef(compartmentId),
			DisplayName:          pulumi.StringRef(bootVolumeReplicaDisplayName),
			State:                pulumi.StringRef(bootVolumeReplicaState),
			VolumeGroupReplicaId: pulumi.StringRef(testVolumeGroupReplica.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 testBootVolumeReplicas = Oci.Core.GetBootVolumeReplicas.Invoke(new()
    {
        AvailabilityDomain = bootVolumeReplicaAvailabilityDomain,
        CompartmentId = compartmentId,
        DisplayName = bootVolumeReplicaDisplayName,
        State = bootVolumeReplicaState,
        VolumeGroupReplicaId = testVolumeGroupReplica.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.GetBootVolumeReplicasArgs;
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 testBootVolumeReplicas = CoreFunctions.getBootVolumeReplicas(GetBootVolumeReplicasArgs.builder()
            .availabilityDomain(bootVolumeReplicaAvailabilityDomain)
            .compartmentId(compartmentId)
            .displayName(bootVolumeReplicaDisplayName)
            .state(bootVolumeReplicaState)
            .volumeGroupReplicaId(testVolumeGroupReplica.id())
            .build());
    }
}
variables:
  testBootVolumeReplicas:
    fn::invoke:
      function: oci:Core:getBootVolumeReplicas
      arguments:
        availabilityDomain: ${bootVolumeReplicaAvailabilityDomain}
        compartmentId: ${compartmentId}
        displayName: ${bootVolumeReplicaDisplayName}
        state: ${bootVolumeReplicaState}
        volumeGroupReplicaId: ${testVolumeGroupReplica.id}
Using getBootVolumeReplicas
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 getBootVolumeReplicas(args: GetBootVolumeReplicasArgs, opts?: InvokeOptions): Promise<GetBootVolumeReplicasResult>
function getBootVolumeReplicasOutput(args: GetBootVolumeReplicasOutputArgs, opts?: InvokeOptions): Output<GetBootVolumeReplicasResult>def get_boot_volume_replicas(availability_domain: Optional[str] = None,
                             compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[_core.GetBootVolumeReplicasFilter]] = None,
                             state: Optional[str] = None,
                             volume_group_replica_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetBootVolumeReplicasResult
def get_boot_volume_replicas_output(availability_domain: 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.GetBootVolumeReplicasFilterArgs]]]] = None,
                             state: Optional[pulumi.Input[str]] = None,
                             volume_group_replica_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetBootVolumeReplicasResult]func GetBootVolumeReplicas(ctx *Context, args *GetBootVolumeReplicasArgs, opts ...InvokeOption) (*GetBootVolumeReplicasResult, error)
func GetBootVolumeReplicasOutput(ctx *Context, args *GetBootVolumeReplicasOutputArgs, opts ...InvokeOption) GetBootVolumeReplicasResultOutput> Note: This function is named GetBootVolumeReplicas in the Go SDK.
public static class GetBootVolumeReplicas 
{
    public static Task<GetBootVolumeReplicasResult> InvokeAsync(GetBootVolumeReplicasArgs args, InvokeOptions? opts = null)
    public static Output<GetBootVolumeReplicasResult> Invoke(GetBootVolumeReplicasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBootVolumeReplicasResult> getBootVolumeReplicas(GetBootVolumeReplicasArgs args, InvokeOptions options)
public static Output<GetBootVolumeReplicasResult> getBootVolumeReplicas(GetBootVolumeReplicasArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getBootVolumeReplicas:getBootVolumeReplicas
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetBoot Volume Replicas Filter> 
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- VolumeGroup stringReplica Id 
- The OCID of the volume group replica.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetBoot Volume Replicas Filter 
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- VolumeGroup stringReplica Id 
- The OCID of the volume group replica.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetBoot Volume Replicas Filter> 
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volumeGroup StringReplica Id 
- The OCID of the volume group replica.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId string
- The OCID of the compartment.
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetBoot Volume Replicas Filter[] 
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volumeGroup stringReplica Id 
- The OCID of the volume group replica.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- 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 Boot Volume Replicas Filter] 
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volume_group_ strreplica_ id 
- The OCID of the volume group replica.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- volumeGroup StringReplica Id 
- The OCID of the volume group replica.
getBootVolumeReplicas Result
The following output properties are available:
- BootVolume List<GetReplicas Boot Volume Replicas Boot Volume Replica> 
- The list of boot_volume_replicas.
- Id string
- The provider-assigned unique ID for this managed resource.
- AvailabilityDomain string
- The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment that contains the boot volume replica.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<GetBoot Volume Replicas Filter> 
- State string
- The current state of a boot volume replica.
- VolumeGroup stringReplica Id 
- BootVolume []GetReplicas Boot Volume Replicas Boot Volume Replica 
- The list of boot_volume_replicas.
- Id string
- The provider-assigned unique ID for this managed resource.
- AvailabilityDomain string
- The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1
- CompartmentId string
- The OCID of the compartment that contains the boot volume replica.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]GetBoot Volume Replicas Filter 
- State string
- The current state of a boot volume replica.
- VolumeGroup stringReplica Id 
- bootVolume List<GetReplicas Boot Volume Replicas Boot Volume Replica> 
- The list of boot_volume_replicas.
- id String
- The provider-assigned unique ID for this managed resource.
- availabilityDomain String
- The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment that contains the boot volume replica.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<GetBoot Volume Replicas Filter> 
- state String
- The current state of a boot volume replica.
- volumeGroup StringReplica Id 
- bootVolume GetReplicas Boot Volume Replicas Boot Volume Replica[] 
- The list of boot_volume_replicas.
- id string
- The provider-assigned unique ID for this managed resource.
- availabilityDomain string
- The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1
- compartmentId string
- The OCID of the compartment that contains the boot volume replica.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
GetBoot Volume Replicas Filter[] 
- state string
- The current state of a boot volume replica.
- volumeGroup stringReplica Id 
- boot_volume_ Sequence[core.replicas Get Boot Volume Replicas Boot Volume Replica] 
- The list of boot_volume_replicas.
- id str
- The provider-assigned unique ID for this managed resource.
- availability_domain str
- The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1
- compartment_id str
- The OCID of the compartment that contains the boot volume replica.
- 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 Boot Volume Replicas Filter] 
- state str
- The current state of a boot volume replica.
- volume_group_ strreplica_ id 
- bootVolume List<Property Map>Replicas 
- The list of boot_volume_replicas.
- id String
- The provider-assigned unique ID for this managed resource.
- availabilityDomain String
- The availability domain of the boot volume replica. Example: Uocm:PHX-AD-1
- compartmentId String
- The OCID of the compartment that contains the boot volume replica.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
- The current state of a boot volume replica.
- volumeGroup StringReplica Id 
Supporting Types
GetBootVolumeReplicasBootVolumeReplica      
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- BootVolume stringId 
- The OCID of the source boot volume.
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The boot volume replica's Oracle ID (OCID).
- ImageId string
- The image OCID used to create the boot volume the replica is replicated from.
- KmsKey stringId 
- The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.
- SizeIn stringGbs 
- The size of the source boot volume, in GBs.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- TimeCreated string
- The date and time the boot volume replica was created. Format defined by RFC3339.
- TimeLast stringSynced 
- The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- VolumeGroup stringReplica Id 
- The OCID of the volume group replica.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- BootVolume stringId 
- The OCID of the source boot volume.
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The boot volume replica's Oracle ID (OCID).
- ImageId string
- The image OCID used to create the boot volume the replica is replicated from.
- KmsKey stringId 
- The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.
- SizeIn stringGbs 
- The size of the source boot volume, in GBs.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- TimeCreated string
- The date and time the boot volume replica was created. Format defined by RFC3339.
- TimeLast stringSynced 
- The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- VolumeGroup stringReplica Id 
- The OCID of the volume group replica.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- bootVolume StringId 
- The OCID of the source boot volume.
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The boot volume replica's Oracle ID (OCID).
- imageId String
- The image OCID used to create the boot volume the replica is replicated from.
- kmsKey StringId 
- The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.
- sizeIn StringGbs 
- The size of the source boot volume, in GBs.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- timeCreated String
- The date and time the boot volume replica was created. Format defined by RFC3339.
- timeLast StringSynced 
- The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volumeGroup StringReplica Id 
- The OCID of the volume group replica.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- bootVolume stringId 
- The OCID of the source boot volume.
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A filter to return only resources that match the given display name exactly.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The boot volume replica's Oracle ID (OCID).
- imageId string
- The image OCID used to create the boot volume the replica is replicated from.
- kmsKey stringId 
- The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.
- sizeIn stringGbs 
- The size of the source boot volume, in GBs.
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- timeCreated string
- The date and time the boot volume replica was created. Format defined by RFC3339.
- timeLast stringSynced 
- The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volumeGroup stringReplica Id 
- The OCID of the volume group replica.
- availability_domain str
- The name of the availability domain. Example: Uocm:PHX-AD-1
- boot_volume_ strid 
- The OCID of the source boot volume.
- 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
- The boot volume replica's Oracle ID (OCID).
- image_id str
- The image OCID used to create the boot volume the replica is replicated from.
- kms_key_ strid 
- The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.
- size_in_ strgbs 
- The size of the source boot volume, in GBs.
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- time_created str
- The date and time the boot volume replica was created. Format defined by RFC3339.
- time_last_ strsynced 
- The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volume_group_ strreplica_ id 
- The OCID of the volume group replica.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- bootVolume StringId 
- The OCID of the source boot volume.
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A filter to return only resources that match the given display name exactly.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The boot volume replica's Oracle ID (OCID).
- imageId String
- The image OCID used to create the boot volume the replica is replicated from.
- kmsKey StringId 
- The OCID of the Vault service key to assign as the master encryption key for the boot volume replica, see Overview of Vault service and Using Keys.
- sizeIn StringGbs 
- The size of the source boot volume, in GBs.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- timeCreated String
- The date and time the boot volume replica was created. Format defined by RFC3339.
- timeLast StringSynced 
- The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volumeGroup StringReplica Id 
- The OCID of the volume group replica.
GetBootVolumeReplicasFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.