Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.Core.getVolumeGroupReplica
Explore with Pulumi AI
This data source provides details about a specific Volume Group Replica resource in Oracle Cloud Infrastructure Core service.
Gets information for the specified volume group replica.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumeGroupReplica = oci.Core.getVolumeGroupReplica({
    volumeGroupReplicaId: testVolumeGroupReplicaOciCoreVolumeGroupReplica.id,
});
import pulumi
import pulumi_oci as oci
test_volume_group_replica = oci.Core.get_volume_group_replica(volume_group_replica_id=test_volume_group_replica_oci_core_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.GetVolumeGroupReplica(ctx, &core.GetVolumeGroupReplicaArgs{
			VolumeGroupReplicaId: testVolumeGroupReplicaOciCoreVolumeGroupReplica.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 testVolumeGroupReplica = Oci.Core.GetVolumeGroupReplica.Invoke(new()
    {
        VolumeGroupReplicaId = testVolumeGroupReplicaOciCoreVolumeGroupReplica.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.GetVolumeGroupReplicaArgs;
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 testVolumeGroupReplica = CoreFunctions.getVolumeGroupReplica(GetVolumeGroupReplicaArgs.builder()
            .volumeGroupReplicaId(testVolumeGroupReplicaOciCoreVolumeGroupReplica.id())
            .build());
    }
}
variables:
  testVolumeGroupReplica:
    fn::invoke:
      function: oci:Core:getVolumeGroupReplica
      arguments:
        volumeGroupReplicaId: ${testVolumeGroupReplicaOciCoreVolumeGroupReplica.id}
Using getVolumeGroupReplica
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 getVolumeGroupReplica(args: GetVolumeGroupReplicaArgs, opts?: InvokeOptions): Promise<GetVolumeGroupReplicaResult>
function getVolumeGroupReplicaOutput(args: GetVolumeGroupReplicaOutputArgs, opts?: InvokeOptions): Output<GetVolumeGroupReplicaResult>def get_volume_group_replica(volume_group_replica_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetVolumeGroupReplicaResult
def get_volume_group_replica_output(volume_group_replica_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetVolumeGroupReplicaResult]func GetVolumeGroupReplica(ctx *Context, args *GetVolumeGroupReplicaArgs, opts ...InvokeOption) (*GetVolumeGroupReplicaResult, error)
func GetVolumeGroupReplicaOutput(ctx *Context, args *GetVolumeGroupReplicaOutputArgs, opts ...InvokeOption) GetVolumeGroupReplicaResultOutput> Note: This function is named GetVolumeGroupReplica in the Go SDK.
public static class GetVolumeGroupReplica 
{
    public static Task<GetVolumeGroupReplicaResult> InvokeAsync(GetVolumeGroupReplicaArgs args, InvokeOptions? opts = null)
    public static Output<GetVolumeGroupReplicaResult> Invoke(GetVolumeGroupReplicaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumeGroupReplicaResult> getVolumeGroupReplica(GetVolumeGroupReplicaArgs args, InvokeOptions options)
public static Output<GetVolumeGroupReplicaResult> getVolumeGroupReplica(GetVolumeGroupReplicaArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getVolumeGroupReplica:getVolumeGroupReplica
  arguments:
    # arguments dictionaryThe following arguments are supported:
- VolumeGroup stringReplica Id 
- The OCID of the volume replica group.
- VolumeGroup stringReplica Id 
- The OCID of the volume replica group.
- volumeGroup StringReplica Id 
- The OCID of the volume replica group.
- volumeGroup stringReplica Id 
- The OCID of the volume replica group.
- volume_group_ strreplica_ id 
- The OCID of the volume replica group.
- volumeGroup StringReplica Id 
- The OCID of the volume replica group.
getVolumeGroupReplica Result
The following output properties are available:
- AvailabilityDomain string
- The availability domain of the volume group replica.
- CompartmentId string
- The OCID of the compartment that contains the volume group replica.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 provider-assigned unique ID for this managed resource.
- MemberReplicas List<GetVolume Group Replica Member Replica> 
- Volume replicas within this volume group replica.
- SizeIn stringGbs 
- The aggregate size of the volume group replica in GBs.
- State string
- The current state of a volume group.
- TimeCreated string
- The date and time the volume group replica was created. Format defined by RFC3339.
- TimeLast stringSynced 
- The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- VolumeGroup stringId 
- The OCID of the source volume group.
- VolumeGroup stringReplica Id 
- AvailabilityDomain string
- The availability domain of the volume group replica.
- CompartmentId string
- The OCID of the compartment that contains the volume group replica.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 provider-assigned unique ID for this managed resource.
- MemberReplicas []GetVolume Group Replica Member Replica 
- Volume replicas within this volume group replica.
- SizeIn stringGbs 
- The aggregate size of the volume group replica in GBs.
- State string
- The current state of a volume group.
- TimeCreated string
- The date and time the volume group replica was created. Format defined by RFC3339.
- TimeLast stringSynced 
- The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- VolumeGroup stringId 
- The OCID of the source volume group.
- VolumeGroup stringReplica Id 
- availabilityDomain String
- The availability domain of the volume group replica.
- compartmentId String
- The OCID of the compartment that contains the volume group replica.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 provider-assigned unique ID for this managed resource.
- memberReplicas List<GetVolume Group Replica Member Replica> 
- Volume replicas within this volume group replica.
- sizeIn StringGbs 
- The aggregate size of the volume group replica in GBs.
- state String
- The current state of a volume group.
- timeCreated String
- The date and time the volume group replica was created. Format defined by RFC3339.
- timeLast StringSynced 
- The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volumeGroup StringId 
- The OCID of the source volume group.
- volumeGroup StringReplica Id 
- availabilityDomain string
- The availability domain of the volume group replica.
- compartmentId string
- The OCID of the compartment that contains the volume group replica.
- {[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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 provider-assigned unique ID for this managed resource.
- memberReplicas GetVolume Group Replica Member Replica[] 
- Volume replicas within this volume group replica.
- sizeIn stringGbs 
- The aggregate size of the volume group replica in GBs.
- state string
- The current state of a volume group.
- timeCreated string
- The date and time the volume group replica was created. Format defined by RFC3339.
- timeLast stringSynced 
- The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volumeGroup stringId 
- The OCID of the source volume group.
- volumeGroup stringReplica Id 
- availability_domain str
- The availability domain of the volume group replica.
- compartment_id str
- The OCID of the compartment that contains the volume group replica.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 provider-assigned unique ID for this managed resource.
- member_replicas Sequence[core.Get Volume Group Replica Member Replica] 
- Volume replicas within this volume group replica.
- size_in_ strgbs 
- The aggregate size of the volume group replica in GBs.
- state str
- The current state of a volume group.
- time_created str
- The date and time the volume group replica was created. Format defined by RFC3339.
- time_last_ strsynced 
- The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volume_group_ strid 
- The OCID of the source volume group.
- volume_group_ strreplica_ id 
- availabilityDomain String
- The availability domain of the volume group replica.
- compartmentId String
- The OCID of the compartment that contains the volume group replica.
- 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 provider-assigned unique ID for this managed resource.
- memberReplicas List<Property Map>
- Volume replicas within this volume group replica.
- sizeIn StringGbs 
- The aggregate size of the volume group replica in GBs.
- state String
- The current state of a volume group.
- timeCreated String
- The date and time the volume group replica was created. Format defined by RFC3339.
- timeLast StringSynced 
- The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volumeGroup StringId 
- The OCID of the source volume group.
- volumeGroup StringReplica Id 
Supporting Types
GetVolumeGroupReplicaMemberReplica     
- MembershipState string
- Membership state of the volume replica in relation to the volume group replica.
- VolumeReplica stringId 
- The volume replica ID.
- MembershipState string
- Membership state of the volume replica in relation to the volume group replica.
- VolumeReplica stringId 
- The volume replica ID.
- membershipState String
- Membership state of the volume replica in relation to the volume group replica.
- volumeReplica StringId 
- The volume replica ID.
- membershipState string
- Membership state of the volume replica in relation to the volume group replica.
- volumeReplica stringId 
- The volume replica ID.
- membership_state str
- Membership state of the volume replica in relation to the volume group replica.
- volume_replica_ strid 
- The volume replica ID.
- membershipState String
- Membership state of the volume replica in relation to the volume group replica.
- volumeReplica StringId 
- The volume replica ID.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.