1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getVolumeGroupReplica
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.getVolumeGroupReplica

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    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: oci_core_volume_group_replica.test_volume_group_replica.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_volume_group_replica = oci.Core.get_volume_group_replica(volume_group_replica_id=oci_core_volume_group_replica["test_volume_group_replica"]["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.GetVolumeGroupReplica(ctx, &core.GetVolumeGroupReplicaArgs{
    			VolumeGroupReplicaId: oci_core_volume_group_replica.Test_volume_group_replica.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 = oci_core_volume_group_replica.Test_volume_group_replica.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(oci_core_volume_group_replica.test_volume_group_replica().id())
                .build());
    
        }
    }
    
    variables:
      testVolumeGroupReplica:
        fn::invoke:
          Function: oci:Core:getVolumeGroupReplica
          Arguments:
            volumeGroupReplicaId: ${oci_core_volume_group_replica.test_volume_group_replica.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getVolumeGroupReplica:getVolumeGroupReplica
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VolumeGroupReplicaId string
    The OCID of the volume replica group.
    VolumeGroupReplicaId string
    The OCID of the volume replica group.
    volumeGroupReplicaId String
    The OCID of the volume replica group.
    volumeGroupReplicaId string
    The OCID of the volume replica group.
    volume_group_replica_id str
    The OCID of the volume replica group.
    volumeGroupReplicaId String
    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.
    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 provider-assigned unique ID for this managed resource.
    MemberReplicas List<GetVolumeGroupReplicaMemberReplica>
    Volume replicas within this volume group replica.
    SizeInGbs string
    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.
    TimeLastSynced string
    The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
    VolumeGroupId string
    The OCID of the source volume group.
    VolumeGroupReplicaId string
    AvailabilityDomain string
    The availability domain of the volume group replica.
    CompartmentId string
    The OCID of the compartment that contains the volume group replica.
    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 provider-assigned unique ID for this managed resource.
    MemberReplicas []GetVolumeGroupReplicaMemberReplica
    Volume replicas within this volume group replica.
    SizeInGbs string
    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.
    TimeLastSynced string
    The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
    VolumeGroupId string
    The OCID of the source volume group.
    VolumeGroupReplicaId string
    availabilityDomain String
    The availability domain of the volume group replica.
    compartmentId String
    The OCID of the compartment that contains the volume group replica.
    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 provider-assigned unique ID for this managed resource.
    memberReplicas List<GetVolumeGroupReplicaMemberReplica>
    Volume replicas within this volume group replica.
    sizeInGbs String
    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.
    timeLastSynced String
    The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
    volumeGroupId String
    The OCID of the source volume group.
    volumeGroupReplicaId String
    availabilityDomain string
    The availability domain of the volume group replica.
    compartmentId string
    The OCID of the compartment that contains the volume group replica.
    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 provider-assigned unique ID for this managed resource.
    memberReplicas GetVolumeGroupReplicaMemberReplica[]
    Volume replicas within this volume group replica.
    sizeInGbs string
    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.
    timeLastSynced string
    The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
    volumeGroupId string
    The OCID of the source volume group.
    volumeGroupReplicaId string
    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.
    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 provider-assigned unique ID for this managed resource.
    member_replicas Sequence[core.GetVolumeGroupReplicaMemberReplica]
    Volume replicas within this volume group replica.
    size_in_gbs str
    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_synced str
    The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
    volume_group_id str
    The OCID of the source volume group.
    volume_group_replica_id str
    availabilityDomain String
    The availability domain of the volume group replica.
    compartmentId String
    The OCID of the compartment that contains the volume group replica.
    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 provider-assigned unique ID for this managed resource.
    memberReplicas List<Property Map>
    Volume replicas within this volume group replica.
    sizeInGbs String
    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.
    timeLastSynced String
    The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
    volumeGroupId String
    The OCID of the source volume group.
    volumeGroupReplicaId String

    Supporting Types

    GetVolumeGroupReplicaMemberReplica

    MembershipState string
    Membership state of the volume replica in relation to the volume group replica.
    VolumeReplicaId string
    The volume replica ID.
    MembershipState string
    Membership state of the volume replica in relation to the volume group replica.
    VolumeReplicaId string
    The volume replica ID.
    membershipState String
    Membership state of the volume replica in relation to the volume group replica.
    volumeReplicaId String
    The volume replica ID.
    membershipState string
    Membership state of the volume replica in relation to the volume group replica.
    volumeReplicaId string
    The volume replica ID.
    membership_state str
    Membership state of the volume replica in relation to the volume group replica.
    volume_replica_id str
    The volume replica ID.
    membershipState String
    Membership state of the volume replica in relation to the volume group replica.
    volumeReplicaId String
    The volume replica ID.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi