1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ebs
  5. getDiskReplicaPairs
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.ebs.getDiskReplicaPairs

Explore with Pulumi AI

Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

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

NOTE: Available in 1.196.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.ebs.getDiskReplicaPairs({
    ids: [defaultAlicloudEbsDiskReplicaPair.id],
});
export const alicloudEbsDiskReplicaPairExampleId = _default.then(_default => _default.pairs?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ebs.get_disk_replica_pairs(ids=[default_alicloud_ebs_disk_replica_pair["id"]])
pulumi.export("alicloudEbsDiskReplicaPairExampleId", default.pairs[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ebs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := ebs.GetDiskReplicaPairs(ctx, &ebs.GetDiskReplicaPairsArgs{
Ids: interface{}{
defaultAlicloudEbsDiskReplicaPair.Id,
},
}, nil);
if err != nil {
return err
}
ctx.Export("alicloudEbsDiskReplicaPairExampleId", _default.Pairs[0].Id)
return nil
})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

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

    return new Dictionary<string, object?>
    {
        ["alicloudEbsDiskReplicaPairExampleId"] = @default.Apply(@default => @default.Apply(getDiskReplicaPairsResult => getDiskReplicaPairsResult.Pairs[0]?.Id)),
    };
});
Copy
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(defaultAlicloudEbsDiskReplicaPair.id())
            .build());

        ctx.export("alicloudEbsDiskReplicaPairExampleId", default_.pairs()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:ebs:getDiskReplicaPairs
      arguments:
        ids:
          - ${defaultAlicloudEbsDiskReplicaPair.id}
outputs:
  alicloudEbsDiskReplicaPairExampleId: ${default.pairs[0].id}
Copy

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>
Copy
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]
Copy
func GetDiskReplicaPairs(ctx *Context, args *GetDiskReplicaPairsArgs, opts ...InvokeOption) (*GetDiskReplicaPairsResult, error)
func GetDiskReplicaPairsOutput(ctx *Context, args *GetDiskReplicaPairsOutputArgs, opts ...InvokeOption) GetDiskReplicaPairsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDiskReplicaPairsResult> getDiskReplicaPairs(GetDiskReplicaPairsArgs args, InvokeOptions options)
public static Output<GetDiskReplicaPairsResult> getDiskReplicaPairs(GetDiskReplicaPairsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of Disk Replica Pair IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
ReplicaGroupId Changes to this property will trigger replacement. string
Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.
Site Changes to this property will trigger replacement. 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
File name where to save data source results (after running pulumi preview).
ReplicaGroupId Changes to this property will trigger replacement. string
Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.
Site Changes to this property will trigger replacement. 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
File name where to save data source results (after running pulumi preview).
replicaGroupId Changes to this property will trigger replacement. String
Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.
site Changes to this property will trigger replacement. 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
File name where to save data source results (after running pulumi preview).
replicaGroupId Changes to this property will trigger replacement. string
Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.
site Changes to this property will trigger replacement. 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
File name where to save data source results (after running pulumi preview).
replica_group_id Changes to this property will trigger replacement. str
Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.
site Changes to this property will trigger replacement. 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
File name where to save data source results (after running pulumi preview).
replicaGroupId Changes to this property will trigger replacement. String
Consistent Replication Group ID, you can specify a consistent replication group ID to query the replication pairs within the group.
site Changes to this property will trigger replacement. 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 This property is required. 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 This property is required. 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 This property is required. string
The ID of the standby disk.
DestinationRegionId This property is required. string
The ID of the region to which the disaster recovery site belongs.
DestinationZoneId This property is required. string
The ID of the zone to which the disaster recovery site belongs.
DiskId This property is required. string
The ID of the primary disk.
Id This property is required. string
PairName This property is required. 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 This property is required. string
The payment type of the resource.
ReplicaPairId This property is required. string
The first ID of the resource
ResourceGroupId This property is required. string
The ID of the resource group
Rpo This property is required. string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
SourceZoneId This property is required. string
The ID of the zone to which the production site belongs.
Status This property is required. string
The status of the resource.
Bandwidth This property is required. 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 This property is required. 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 This property is required. string
The ID of the standby disk.
DestinationRegionId This property is required. string
The ID of the region to which the disaster recovery site belongs.
DestinationZoneId This property is required. string
The ID of the zone to which the disaster recovery site belongs.
DiskId This property is required. string
The ID of the primary disk.
Id This property is required. string
PairName This property is required. 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 This property is required. string
The payment type of the resource.
ReplicaPairId This property is required. string
The first ID of the resource
ResourceGroupId This property is required. string
The ID of the resource group
Rpo This property is required. string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
SourceZoneId This property is required. string
The ID of the zone to which the production site belongs.
Status This property is required. string
The status of the resource.
bandwidth This property is required. 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 This property is required. 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 This property is required. String
The ID of the standby disk.
destinationRegionId This property is required. String
The ID of the region to which the disaster recovery site belongs.
destinationZoneId This property is required. String
The ID of the zone to which the disaster recovery site belongs.
diskId This property is required. String
The ID of the primary disk.
id This property is required. String
pairName This property is required. 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 This property is required. String
The payment type of the resource.
replicaPairId This property is required. String
The first ID of the resource
resourceGroupId This property is required. String
The ID of the resource group
rpo This property is required. String
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
sourceZoneId This property is required. String
The ID of the zone to which the production site belongs.
status This property is required. String
The status of the resource.
bandwidth This property is required. 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 This property is required. 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 This property is required. string
The ID of the standby disk.
destinationRegionId This property is required. string
The ID of the region to which the disaster recovery site belongs.
destinationZoneId This property is required. string
The ID of the zone to which the disaster recovery site belongs.
diskId This property is required. string
The ID of the primary disk.
id This property is required. string
pairName This property is required. 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 This property is required. string
The payment type of the resource.
replicaPairId This property is required. string
The first ID of the resource
resourceGroupId This property is required. string
The ID of the resource group
rpo This property is required. string
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
sourceZoneId This property is required. string
The ID of the zone to which the production site belongs.
status This property is required. string
The status of the resource.
bandwidth This property is required. 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 This property is required. 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 This property is required. str
The ID of the standby disk.
destination_region_id This property is required. str
The ID of the region to which the disaster recovery site belongs.
destination_zone_id This property is required. str
The ID of the zone to which the disaster recovery site belongs.
disk_id This property is required. str
The ID of the primary disk.
id This property is required. str
pair_name This property is required. 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 This property is required. str
The payment type of the resource.
replica_pair_id This property is required. str
The first ID of the resource
resource_group_id This property is required. str
The ID of the resource group
rpo This property is required. str
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
source_zone_id This property is required. str
The ID of the zone to which the production site belongs.
status This property is required. str
The status of the resource.
bandwidth This property is required. 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 This property is required. 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 This property is required. String
The ID of the standby disk.
destinationRegionId This property is required. String
The ID of the region to which the disaster recovery site belongs.
destinationZoneId This property is required. String
The ID of the zone to which the disaster recovery site belongs.
diskId This property is required. String
The ID of the primary disk.
id This property is required. String
pairName This property is required. 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 This property is required. String
The payment type of the resource.
replicaPairId This property is required. String
The first ID of the resource
resourceGroupId This property is required. String
The ID of the resource group
rpo This property is required. String
The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
sourceZoneId This property is required. String
The ID of the zone to which the production site belongs.
status This property is required. 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.
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi