Oracle Cloud Infrastructure
getBootVolumeReplicas
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testBootVolumeReplicas = Output.Create(Oci.Core.GetBootVolumeReplicas.InvokeAsync(new Oci.Core.GetBootVolumeReplicasArgs
{
AvailabilityDomain = @var.Boot_volume_replica_availability_domain,
CompartmentId = @var.Compartment_id,
DisplayName = @var.Boot_volume_replica_display_name,
State = @var.Boot_volume_replica_state,
}));
}
}
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.GetBootVolumeReplicas(ctx, &core.GetBootVolumeReplicasArgs{
AvailabilityDomain: _var.Boot_volume_replica_availability_domain,
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Boot_volume_replica_display_name),
State: pulumi.StringRef(_var.Boot_volume_replica_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_boot_volume_replicas = oci.Core.get_boot_volume_replicas(availability_domain=var["boot_volume_replica_availability_domain"],
compartment_id=var["compartment_id"],
display_name=var["boot_volume_replica_display_name"],
state=var["boot_volume_replica_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBootVolumeReplicas = oci.Core.getBootVolumeReplicas({
availabilityDomain: _var.boot_volume_replica_availability_domain,
compartmentId: _var.compartment_id,
displayName: _var.boot_volume_replica_display_name,
state: _var.boot_volume_replica_state,
});
Coming soon!
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,
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,
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Core/getBootVolumeReplicas:getBootVolumeReplicas
Arguments:
# Arguments dictionary
The following arguments are supported:
- Availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- 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
Boot Volume Replicas Filter> - State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- 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
Boot Volume Replicas Filter - State string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- availability
Domain String The name of the availability domain. Example:
Uocm:PHX-AD-1
- 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
Boot Volume Replicas Filter> - state String
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- 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
Boot Volume Replicas Filter[] - state string
A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- 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
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.
- availability
Domain String The name of the availability domain. Example:
Uocm:PHX-AD-1
- 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.
getBootVolumeReplicas Result
The following output properties are available:
- Availability
Domain string The availability domain of the boot volume replica. Example:
Uocm:PHX-AD-1
- Boot
Volume List<GetReplicas Boot Volume Replicas Boot Volume Replica> The list of boot_volume_replicas.
- Compartment
Id string The OCID of the compartment that contains the boot volume replica.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Boot Volume Replicas Filter> - State string
The current state of a boot volume replica.
- Availability
Domain string The availability domain of the boot volume replica. Example:
Uocm:PHX-AD-1
- Boot
Volume []GetReplicas Boot Volume Replicas Boot Volume Replica The list of boot_volume_replicas.
- Compartment
Id string The OCID of the compartment that contains the boot volume replica.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Boot Volume Replicas Filter - State string
The current state of a boot volume replica.
- availability
Domain String The availability domain of the boot volume replica. Example:
Uocm:PHX-AD-1
- boot
Volume List<GetReplicas Boot Volume Replicas Boot Volume Replica> The list of boot_volume_replicas.
- compartment
Id String The OCID of the compartment that contains the boot volume replica.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Boot Volume Replicas Filter> - state String
The current state of a boot volume replica.
- availability
Domain string The availability domain of the boot volume replica. Example:
Uocm:PHX-AD-1
- boot
Volume GetReplicas Boot Volume Replicas Boot Volume Replica[] The list of boot_volume_replicas.
- compartment
Id string The OCID of the compartment that contains the boot volume replica.
- id string
The provider-assigned unique ID for this managed resource.
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Boot Volume Replicas Filter[] - state string
The current state of a boot volume replica.
- availability_
domain str The availability domain of the boot volume replica. Example:
Uocm:PHX-AD-1
- boot_
volume_ Getreplicas Boot Volume Replicas Boot Volume Replica] The list of boot_volume_replicas.
- compartment_
id str The OCID of the compartment that contains the boot volume replica.
- id str
The provider-assigned unique ID for this managed resource.
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Boot Volume Replicas Filter] - state str
The current state of a boot volume replica.
- availability
Domain String The availability domain of the boot volume replica. Example:
Uocm:PHX-AD-1
- boot
Volume List<Property Map>Replicas The list of boot_volume_replicas.
- compartment
Id String The OCID of the compartment that contains the boot volume replica.
- id String
The provider-assigned unique ID for this managed resource.
- 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 boot volume replica.
Supporting Types
GetBootVolumeReplicasBootVolumeReplica
- Availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- Boot
Volume stringId The OCID of the source boot volume.
- Compartment
Id string The OCID of the compartment.
- 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"}
- Display
Name string A filter to return only resources that match the given display name exactly.
- 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 boot volume replica's Oracle ID (OCID).
- Image
Id string The image OCID used to create the boot volume the replica is replicated from.
- Size
In 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.
- Time
Created string The date and time the boot volume replica was created. Format defined by RFC3339.
- Time
Last stringSynced The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- Volume
Group stringReplica Id
- Availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- Boot
Volume stringId The OCID of the source boot volume.
- Compartment
Id string The OCID of the compartment.
- 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"}
- Display
Name string A filter to return only resources that match the given display name exactly.
- 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 boot volume replica's Oracle ID (OCID).
- Image
Id string The image OCID used to create the boot volume the replica is replicated from.
- Size
In 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.
- Time
Created string The date and time the boot volume replica was created. Format defined by RFC3339.
- Time
Last stringSynced The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- Volume
Group stringReplica Id
- availability
Domain String The name of the availability domain. Example:
Uocm:PHX-AD-1
- boot
Volume StringId The OCID of the source boot volume.
- compartment
Id String The OCID of the compartment.
- 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"}
- display
Name String A filter to return only resources that match the given display name exactly.
- 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 boot volume replica's Oracle ID (OCID).
- image
Id String The image OCID used to create the boot volume the replica is replicated from.
- size
In 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.
- time
Created String The date and time the boot volume replica was created. Format defined by RFC3339.
- time
Last StringSynced The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volume
Group StringReplica Id
- availability
Domain string The name of the availability domain. Example:
Uocm:PHX-AD-1
- boot
Volume stringId The OCID of the source boot volume.
- compartment
Id string The OCID of the compartment.
- {[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"}
- display
Name string A filter to return only resources that match the given display name exactly.
- {[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 boot volume replica's Oracle ID (OCID).
- image
Id string The image OCID used to create the boot volume the replica is replicated from.
- size
In 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.
- time
Created string The date and time the boot volume replica was created. Format defined by RFC3339.
- time
Last stringSynced The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volume
Group stringReplica Id
- 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, 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 filter to return only resources that match the given display name exactly.
- 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 boot volume replica's Oracle ID (OCID).
- image_
id str The image OCID used to create the boot volume the replica is replicated from.
- 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
- availability
Domain String The name of the availability domain. Example:
Uocm:PHX-AD-1
- boot
Volume StringId The OCID of the source boot volume.
- compartment
Id String The OCID of the compartment.
- 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"}
- display
Name String A filter to return only resources that match the given display name exactly.
- 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 boot volume replica's Oracle ID (OCID).
- image
Id String The image OCID used to create the boot volume the replica is replicated from.
- size
In 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.
- time
Created String The date and time the boot volume replica was created. Format defined by RFC3339.
- time
Last StringSynced The date and time the boot volume replica was last synced from the source boot volume. Format defined by RFC3339.
- volume
Group StringReplica Id
GetBootVolumeReplicasFilter
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.