Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVolumeGroupReplica:getVolumeGroupReplica
arguments:
# arguments dictionary
The following arguments are supported:
- Volume
Group stringReplica Id - The OCID of the volume replica group.
- Volume
Group stringReplica Id - The OCID of the volume replica group.
- volume
Group StringReplica Id - The OCID of the volume replica group.
- volume
Group stringReplica Id - The OCID of the volume replica group.
- volume_
group_ strreplica_ id - The OCID of the volume replica group.
- volume
Group StringReplica Id - The OCID of the volume replica group.
getVolumeGroupReplica Result
The following output properties are available:
- Availability
Domain string - The availability domain of the volume group replica.
- Compartment
Id 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"}
- Display
Name 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.
- Member
Replicas List<GetVolume Group Replica Member Replica> - Volume replicas within this volume group replica.
- Size
In stringGbs - The aggregate size of the volume group replica in GBs.
- State string
- The current state of a volume group.
- Time
Created string - The date and time the volume group replica was created. Format defined by RFC3339.
- Time
Last stringSynced - The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- Volume
Group stringId - The OCID of the source volume group.
- Volume
Group stringReplica Id
- Availability
Domain string - The availability domain of the volume group replica.
- Compartment
Id 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"}
- Display
Name 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.
- Member
Replicas []GetVolume Group Replica Member Replica - Volume replicas within this volume group replica.
- Size
In stringGbs - The aggregate size of the volume group replica in GBs.
- State string
- The current state of a volume group.
- Time
Created string - The date and time the volume group replica was created. Format defined by RFC3339.
- Time
Last stringSynced - The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- Volume
Group stringId - The OCID of the source volume group.
- Volume
Group stringReplica Id
- availability
Domain String - The availability domain of the volume group replica.
- compartment
Id 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"}
- display
Name 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.
- member
Replicas List<GetVolume Group Replica Member Replica> - Volume replicas within this volume group replica.
- size
In StringGbs - The aggregate size of the volume group replica in GBs.
- state String
- The current state of a volume group.
- time
Created String - The date and time the volume group replica was created. Format defined by RFC3339.
- time
Last StringSynced - The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volume
Group StringId - The OCID of the source volume group.
- volume
Group StringReplica Id
- availability
Domain string - The availability domain of the volume group replica.
- compartment
Id 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"}
- display
Name 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.
- member
Replicas GetVolume Group Replica Member Replica[] - Volume replicas within this volume group replica.
- size
In stringGbs - The aggregate size of the volume group replica in GBs.
- state string
- The current state of a volume group.
- time
Created string - The date and time the volume group replica was created. Format defined by RFC3339.
- time
Last stringSynced - The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volume
Group stringId - The OCID of the source volume group.
- volume
Group 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
- availability
Domain String - The availability domain of the volume group replica.
- compartment
Id 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"}
- display
Name 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.
- member
Replicas List<Property Map> - Volume replicas within this volume group replica.
- size
In StringGbs - The aggregate size of the volume group replica in GBs.
- state String
- The current state of a volume group.
- time
Created String - The date and time the volume group replica was created. Format defined by RFC3339.
- time
Last StringSynced - The date and time the volume group replica was last synced from the source volume group. Format defined by RFC3339.
- volume
Group StringId - The OCID of the source volume group.
- volume
Group StringReplica Id
Supporting Types
GetVolumeGroupReplicaMemberReplica
- Membership
State string - Membership state of the volume replica in relation to the volume group replica.
- Volume
Replica stringId - The volume replica ID.
- Membership
State string - Membership state of the volume replica in relation to the volume group replica.
- Volume
Replica stringId - The volume replica ID.
- membership
State String - Membership state of the volume replica in relation to the volume group replica.
- volume
Replica StringId - The volume replica ID.
- membership
State string - Membership state of the volume replica in relation to the volume group replica.
- volume
Replica 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.
- membership
State String - Membership state of the volume replica in relation to the volume group replica.
- volume
Replica StringId - 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.