1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getVolumeGroupReplica
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getVolumeGroupReplica

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 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: 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)
    // 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, 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.
    FreeformTags 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<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]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.
    FreeformTags 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 []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,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.
    freeformTags 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<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]: 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.
    freeformTags {[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 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, 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.
    freeform_tags 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.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<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.
    freeformTags 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.
    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi