Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getVolumeGroupReplicas
Explore with Pulumi AI
This data source provides the list of Volume Group Replicas in Oracle Cloud Infrastructure Core service.
Lists the volume group replicas in the specified compartment. You can filter the results by volume group. For more information, see Volume Group Replication.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumeGroupReplicas = oci.Core.getVolumeGroupReplicas({
availabilityDomain: volumeGroupReplicaAvailabilityDomain,
compartmentId: compartmentId,
displayName: volumeGroupReplicaDisplayName,
state: volumeGroupReplicaState,
});
import pulumi
import pulumi_oci as oci
test_volume_group_replicas = oci.Core.get_volume_group_replicas(availability_domain=volume_group_replica_availability_domain,
compartment_id=compartment_id,
display_name=volume_group_replica_display_name,
state=volume_group_replica_state)
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.GetVolumeGroupReplicas(ctx, &core.GetVolumeGroupReplicasArgs{
AvailabilityDomain: volumeGroupReplicaAvailabilityDomain,
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(volumeGroupReplicaDisplayName),
State: pulumi.StringRef(volumeGroupReplicaState),
}, 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 testVolumeGroupReplicas = Oci.Core.GetVolumeGroupReplicas.Invoke(new()
{
AvailabilityDomain = volumeGroupReplicaAvailabilityDomain,
CompartmentId = compartmentId,
DisplayName = volumeGroupReplicaDisplayName,
State = volumeGroupReplicaState,
});
});
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.GetVolumeGroupReplicasArgs;
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 testVolumeGroupReplicas = CoreFunctions.getVolumeGroupReplicas(GetVolumeGroupReplicasArgs.builder()
.availabilityDomain(volumeGroupReplicaAvailabilityDomain)
.compartmentId(compartmentId)
.displayName(volumeGroupReplicaDisplayName)
.state(volumeGroupReplicaState)
.build());
}
}
variables:
testVolumeGroupReplicas:
fn::invoke:
Function: oci:Core:getVolumeGroupReplicas
Arguments:
availabilityDomain: ${volumeGroupReplicaAvailabilityDomain}
compartmentId: ${compartmentId}
displayName: ${volumeGroupReplicaDisplayName}
state: ${volumeGroupReplicaState}
Using getVolumeGroupReplicas
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 getVolumeGroupReplicas(args: GetVolumeGroupReplicasArgs, opts?: InvokeOptions): Promise<GetVolumeGroupReplicasResult>
function getVolumeGroupReplicasOutput(args: GetVolumeGroupReplicasOutputArgs, opts?: InvokeOptions): Output<GetVolumeGroupReplicasResult>
def get_volume_group_replicas(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetVolumeGroupReplicasFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeGroupReplicasResult
def get_volume_group_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.GetVolumeGroupReplicasFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeGroupReplicasResult]
func GetVolumeGroupReplicas(ctx *Context, args *GetVolumeGroupReplicasArgs, opts ...InvokeOption) (*GetVolumeGroupReplicasResult, error)
func GetVolumeGroupReplicasOutput(ctx *Context, args *GetVolumeGroupReplicasOutputArgs, opts ...InvokeOption) GetVolumeGroupReplicasResultOutput
> Note: This function is named GetVolumeGroupReplicas
in the Go SDK.
public static class GetVolumeGroupReplicas
{
public static Task<GetVolumeGroupReplicasResult> InvokeAsync(GetVolumeGroupReplicasArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeGroupReplicasResult> Invoke(GetVolumeGroupReplicasInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVolumeGroupReplicasResult> getVolumeGroupReplicas(GetVolumeGroupReplicasArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVolumeGroupReplicas:getVolumeGroupReplicas
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
Volume Group 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
Volume Group 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
Volume Group 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
Volume Group 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
Sequence[core.
Get Volume Group 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.
getVolumeGroupReplicas 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Group List<GetReplicas Volume Group Replicas Volume Group Replica> - The list of volume_group_replicas.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Volume Group Replicas Filter> - State string
- The current state of a volume group.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Group []GetReplicas Volume Group Replicas Volume Group Replica - The list of volume_group_replicas.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Volume Group Replicas Filter - State string
- The current state of a volume group.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Group List<GetReplicas Volume Group Replicas Volume Group Replica> - The list of volume_group_replicas.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Volume Group Replicas Filter> - state String
- The current state of a volume group.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- volume
Group GetReplicas Volume Group Replicas Volume Group Replica[] - The list of volume_group_replicas.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Volume Group Replicas Filter[] - state string
- The current state of a volume group.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- volume_
group_ Sequence[core.replicas Get Volume Group Replicas Volume Group Replica] - The list of volume_group_replicas.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[core.
Get Volume Group Replicas Filter] - state str
- The current state of a volume group.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Group List<Property Map>Replicas - The list of volume_group_replicas.
- 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 volume group.
Supporting Types
GetVolumeGroupReplicasFilter
GetVolumeGroupReplicasVolumeGroupReplica
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 OCID for the volume group replica.
- Member
Replicas List<GetVolume Group Replicas Volume 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
- 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 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.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Compartment
Id string - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 OCID for the volume group replica.
- Member
Replicas []GetVolume Group Replicas Volume 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
- 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 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.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 OCID for the volume group replica.
- member
Replicas List<GetVolume Group Replicas Volume 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
- 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 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.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id string - The OCID of the compartment.
- {[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 filter to return only resources that match the given display name exactly.
- {[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 OCID for the volume group replica.
- member
Replicas GetVolume Group Replicas Volume 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
- 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 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.
- availability_
domain str - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment_
id str - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 OCID for the volume group replica.
- member_
replicas Sequence[core.Get Volume Group Replicas 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
- 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 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.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- compartment
Id String - The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- 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 OCID for the volume group replica.
- 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
- 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 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.
GetVolumeGroupReplicasVolumeGroupReplicaMemberReplica
- 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.