alicloud logo
Alibaba Cloud v3.30.0, Feb 1 23

alicloud.ebs.getDiskReplicaPairs

This data source provides Ebs Disk Replica Pair available to the user.

NOTE: Available in 1.196.0+

Example Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Ebs.GetDiskReplicaPairs.Invoke(new()
    {
        Ids = new[]
        {
            alicloud_ebs_disk_replica_pair.Default.Id,
        },
    });

    return new Dictionary<string, object?>
    {
        ["alicloudEbsDiskReplicaPairExampleId"] = @default.Apply(@default => @default.Apply(getDiskReplicaPairsResult => getDiskReplicaPairsResult.Pairs[0]?.Id)),
    };
});

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ebs.EbsFunctions;
import com.pulumi.alicloud.ebs.inputs.GetDiskReplicaPairsArgs;
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 default = EbsFunctions.getDiskReplicaPairs(GetDiskReplicaPairsArgs.builder()
            .ids(alicloud_ebs_disk_replica_pair.default().id())
            .build());

        ctx.export("alicloudEbsDiskReplicaPairExampleId", default_.pairs()[0].id());
    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ebs.get_disk_replica_pairs(ids=[alicloud_ebs_disk_replica_pair["default"]["id"]])
pulumi.export("alicloudEbsDiskReplicaPairExampleId", default.pairs[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const default = alicloud.ebs.getDiskReplicaPairs({
    ids: [alicloud_ebs_disk_replica_pair["default"].id],
});
export const alicloudEbsDiskReplicaPairExampleId = _default.then(_default => _default.pairs?.[0]?.id);
variables:
  default:
    fn::invoke:
      Function: alicloud:ebs:getDiskReplicaPairs
      Arguments:
        ids:
          - ${alicloud_ebs_disk_replica_pair.default.id}
outputs:
  alicloudEbsDiskReplicaPairExampleId: ${default.pairs[0].id}

Using getDiskReplicaPairs

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 getDiskReplicaPairs(args: GetDiskReplicaPairsArgs, opts?: InvokeOptions): Promise<GetDiskReplicaPairsResult>
function getDiskReplicaPairsOutput(args: GetDiskReplicaPairsOutputArgs, opts?: InvokeOptions): Output<GetDiskReplicaPairsResult>
def get_disk_replica_pairs(ids: Optional[Sequence[str]] = None,
                           output_file: Optional[str] = None,
                           replica_group_id: Optional[str] = None,
                           site: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDiskReplicaPairsResult
def get_disk_replica_pairs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           replica_group_id: Optional[pulumi.Input[str]] = None,
                           site: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDiskReplicaPairsResult]
func GetDiskReplicaPairs(ctx *Context, args *GetDiskReplicaPairsArgs, opts ...InvokeOption) (*GetDiskReplicaPairsResult, error)
func GetDiskReplicaPairsOutput(ctx *Context, args *GetDiskReplicaPairsOutputArgs, opts ...InvokeOption) GetDiskReplicaPairsResultOutput

> Note: This function is named GetDiskReplicaPairs in the Go SDK.

public static class GetDiskReplicaPairs 
{
    public static Task<GetDiskReplicaPairsResult> InvokeAsync(GetDiskReplicaPairsArgs args, InvokeOptions? opts = null)
    public static Output<GetDiskReplicaPairsResult> Invoke(GetDiskReplicaPairsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiskReplicaPairsResult> getDiskReplicaPairs(GetDiskReplicaPairsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs
  arguments:
    # arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Disk Replica Pair IDs.

OutputFile string
ReplicaGroupId string

Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.

Site string

Get data for replication pairs where this Region is the production site or the disaster recovery site.

Ids []string

A list of Disk Replica Pair IDs.

OutputFile string
ReplicaGroupId string

Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.

Site string

Get data for replication pairs where this Region is the production site or the disaster recovery site.

ids List<String>

A list of Disk Replica Pair IDs.

outputFile String
replicaGroupId String

Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.

site String

Get data for replication pairs where this Region is the production site or the disaster recovery site.

ids string[]

A list of Disk Replica Pair IDs.

outputFile string
replicaGroupId string

Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.

site string

Get data for replication pairs where this Region is the production site or the disaster recovery site.

ids Sequence[str]

A list of Disk Replica Pair IDs.

output_file str
replica_group_id str

Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.

site str

Get data for replication pairs where this Region is the production site or the disaster recovery site.

ids List<String>

A list of Disk Replica Pair IDs.

outputFile String
replicaGroupId String

Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.

site String

Get data for replication pairs where this Region is the production site or the disaster recovery site.

getDiskReplicaPairs Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of Disk Replica Pair IDs.

Pairs List<Pulumi.AliCloud.Ebs.Outputs.GetDiskReplicaPairsPair>

A list of Disk Replica Pair Entries. Each element contains the following attributes:

OutputFile string
ReplicaGroupId string
Site string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of Disk Replica Pair IDs.

Pairs []GetDiskReplicaPairsPair

A list of Disk Replica Pair Entries. Each element contains the following attributes:

OutputFile string
ReplicaGroupId string
Site string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of Disk Replica Pair IDs.

pairs List<GetDiskReplicaPairsPair>

A list of Disk Replica Pair Entries. Each element contains the following attributes:

outputFile String
replicaGroupId String
site String
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of Disk Replica Pair IDs.

pairs GetDiskReplicaPairsPair[]

A list of Disk Replica Pair Entries. Each element contains the following attributes:

outputFile string
replicaGroupId string
site string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of Disk Replica Pair IDs.

pairs Sequence[GetDiskReplicaPairsPair]

A list of Disk Replica Pair Entries. Each element contains the following attributes:

output_file str
replica_group_id str
site str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of Disk Replica Pair IDs.

pairs List<Property Map>

A list of Disk Replica Pair Entries. Each element contains the following attributes:

outputFile String
replicaGroupId String
site String

Supporting Types

GetDiskReplicaPairsPair

Bandwidth string

The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.

Description string

The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.

DestinationDiskId string

The ID of the standby disk.

DestinationRegionId string

The ID of the region to which the disaster recovery site belongs.

DestinationZoneId string

The ID of the zone to which the disaster recovery site belongs.

DiskId string

The ID of the primary disk.

Id string
PairName string

The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).

PaymentType string

The payment type of the resource.

ReplicaPairId string

The first ID of the resource

ResourceGroupId string

The ID of the resource group

Rpo string

The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.

SourceZoneId string

The ID of the zone to which the production site belongs.

Status string

The status of the resource.

Bandwidth string

The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.

Description string

The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.

DestinationDiskId string

The ID of the standby disk.

DestinationRegionId string

The ID of the region to which the disaster recovery site belongs.

DestinationZoneId string

The ID of the zone to which the disaster recovery site belongs.

DiskId string

The ID of the primary disk.

Id string
PairName string

The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).

PaymentType string

The payment type of the resource.

ReplicaPairId string

The first ID of the resource

ResourceGroupId string

The ID of the resource group

Rpo string

The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.

SourceZoneId string

The ID of the zone to which the production site belongs.

Status string

The status of the resource.

bandwidth String

The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.

description String

The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.

destinationDiskId String

The ID of the standby disk.

destinationRegionId String

The ID of the region to which the disaster recovery site belongs.

destinationZoneId String

The ID of the zone to which the disaster recovery site belongs.

diskId String

The ID of the primary disk.

id String
pairName String

The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).

paymentType String

The payment type of the resource.

replicaPairId String

The first ID of the resource

resourceGroupId String

The ID of the resource group

rpo String

The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.

sourceZoneId String

The ID of the zone to which the production site belongs.

status String

The status of the resource.

bandwidth string

The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.

description string

The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.

destinationDiskId string

The ID of the standby disk.

destinationRegionId string

The ID of the region to which the disaster recovery site belongs.

destinationZoneId string

The ID of the zone to which the disaster recovery site belongs.

diskId string

The ID of the primary disk.

id string
pairName string

The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).

paymentType string

The payment type of the resource.

replicaPairId string

The first ID of the resource

resourceGroupId string

The ID of the resource group

rpo string

The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.

sourceZoneId string

The ID of the zone to which the production site belongs.

status string

The status of the resource.

bandwidth str

The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.

description str

The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.

destination_disk_id str

The ID of the standby disk.

destination_region_id str

The ID of the region to which the disaster recovery site belongs.

destination_zone_id str

The ID of the zone to which the disaster recovery site belongs.

disk_id str

The ID of the primary disk.

id str
pair_name str

The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).

payment_type str

The payment type of the resource.

replica_pair_id str

The first ID of the resource

resource_group_id str

The ID of the resource group

rpo str

The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.

source_zone_id str

The ID of the zone to which the production site belongs.

status str

The status of the resource.

bandwidth String

The bandwidth for asynchronous data replication between cloud disks. The unit is Kbps. Value range:-10240 Kbps: equal to 10 Mbps.-20480 Kbps: equal to 20 Mbps.-51200 Kbps: equal to 50 Mbps.-102400 Kbps: equal to 100 Mbps.Default value: 10240.This parameter cannot be specified when the ChargeType value is POSTPAY. The system value is 0, which indicates that the disk is dynamically allocated according to data write changes during asynchronous replication.

description String

The description of the asynchronous replication relationship. 2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.

destinationDiskId String

The ID of the standby disk.

destinationRegionId String

The ID of the region to which the disaster recovery site belongs.

destinationZoneId String

The ID of the zone to which the disaster recovery site belongs.

diskId String

The ID of the primary disk.

id String
pairName String

The name of the asynchronous replication relationship. The length must be 2 to 128 characters in length and must start with a letter or Chinese name. It cannot start with http:// or https. It can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-).

paymentType String

The payment type of the resource.

replicaPairId String

The first ID of the resource

resourceGroupId String

The ID of the resource group

rpo String

The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.

sourceZoneId String

The ID of the zone to which the production site belongs.

status String

The status of the resource.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.