Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.ebs.getDiskReplicaPairs
Explore with Pulumi AI
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);
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)
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
})
}
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)),
    };
});
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());
    }
}
variables:
  default:
    fn::invoke:
      function: alicloud:ebs:getDiskReplicaPairs
      arguments:
        ids:
          - ${defaultAlicloudEbsDiskReplicaPair.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)
public static Output<GetDiskReplicaPairsResult> getDiskReplicaPairs(GetDiskReplicaPairsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:ebs/getDiskReplicaPairs:getDiskReplicaPairs
  arguments:
    # arguments dictionaryThe 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).
- ReplicaGroup stringId 
- 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
- File name where to save data source results (after running pulumi preview).
- ReplicaGroup stringId 
- 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
- File name where to save data source results (after running pulumi preview).
- replicaGroup StringId 
- 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
- File name where to save data source results (after running pulumi preview).
- replicaGroup stringId 
- 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
- File name where to save data source results (after running pulumi preview).
- replica_group_ strid 
- 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
- File name where to save data source results (after running pulumi preview).
- replicaGroup StringId 
- 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.Ali Cloud. Ebs. Outputs. Get Disk Replica Pairs Pair> 
- A list of Disk Replica Pair Entries. Each element contains the following attributes:
- OutputFile string
- ReplicaGroup stringId 
- Site string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Disk Replica Pair IDs.
- Pairs
[]GetDisk Replica Pairs Pair 
- A list of Disk Replica Pair Entries. Each element contains the following attributes:
- OutputFile string
- ReplicaGroup stringId 
- 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<GetDisk Replica Pairs Pair> 
- A list of Disk Replica Pair Entries. Each element contains the following attributes:
- outputFile String
- replicaGroup StringId 
- site String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Disk Replica Pair IDs.
- pairs
GetDisk Replica Pairs Pair[] 
- A list of Disk Replica Pair Entries. Each element contains the following attributes:
- outputFile string
- replicaGroup stringId 
- 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[GetDisk Replica Pairs Pair] 
- A list of Disk Replica Pair Entries. Each element contains the following attributes:
- output_file str
- replica_group_ strid 
- 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
- replicaGroup StringId 
- 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.
- DestinationDisk stringId 
- The ID of the standby disk.
- DestinationRegion stringId 
- The ID of the region to which the disaster recovery site belongs.
- DestinationZone stringId 
- 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.
- ReplicaPair stringId 
- The first ID of the resource
- ResourceGroup stringId 
- The ID of the resource group
- Rpo string
- The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- SourceZone stringId 
- 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.
- DestinationDisk stringId 
- The ID of the standby disk.
- DestinationRegion stringId 
- The ID of the region to which the disaster recovery site belongs.
- DestinationZone stringId 
- 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.
- ReplicaPair stringId 
- The first ID of the resource
- ResourceGroup stringId 
- The ID of the resource group
- Rpo string
- The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- SourceZone stringId 
- 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.
- destinationDisk StringId 
- The ID of the standby disk.
- destinationRegion StringId 
- The ID of the region to which the disaster recovery site belongs.
- destinationZone StringId 
- 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.
- replicaPair StringId 
- The first ID of the resource
- resourceGroup StringId 
- The ID of the resource group
- rpo String
- The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- sourceZone StringId 
- 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.
- destinationDisk stringId 
- The ID of the standby disk.
- destinationRegion stringId 
- The ID of the region to which the disaster recovery site belongs.
- destinationZone stringId 
- 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.
- replicaPair stringId 
- The first ID of the resource
- resourceGroup stringId 
- The ID of the resource group
- rpo string
- The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- sourceZone stringId 
- 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_ strid 
- The ID of the standby disk.
- destination_region_ strid 
- The ID of the region to which the disaster recovery site belongs.
- destination_zone_ strid 
- 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_ strid 
- The first ID of the resource
- resource_group_ strid 
- 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_ strid 
- 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.
- destinationDisk StringId 
- The ID of the standby disk.
- destinationRegion StringId 
- The ID of the region to which the disaster recovery site belongs.
- destinationZone StringId 
- 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.
- replicaPair StringId 
- The first ID of the resource
- resourceGroup StringId 
- The ID of the resource group
- rpo String
- The RPO value set by the consistency group in seconds. Currently only 900 seconds are supported.
- sourceZone StringId 
- 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 alicloudTerraform Provider.