Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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)
// 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.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Replica
Group 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.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Replica
Group 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.
- output
File String - File name where to save data source results (after running
pulumi preview
). - replica
Group 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.
- output
File string - File name where to save data source results (after running
pulumi preview
). - replica
Group 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.
- output
File String - File name where to save data source results (after running
pulumi preview
). - replica
Group 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:
- Output
File string - Replica
Group stringId - Site string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Disk Replica Pair IDs.
- Pairs
[]Get
Disk Replica Pairs Pair - A list of Disk Replica Pair Entries. Each element contains the following attributes:
- Output
File string - Replica
Group 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<Get
Disk Replica Pairs Pair> - A list of Disk Replica Pair Entries. Each element contains the following attributes:
- output
File String - replica
Group StringId - site String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Disk Replica Pair IDs.
- pairs
Get
Disk Replica Pairs Pair[] - A list of Disk Replica Pair Entries. Each element contains the following attributes:
- output
File string - replica
Group 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[Get
Disk 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:
- output
File String - replica
Group 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.
- Destination
Disk stringId - The ID of the standby disk.
- Destination
Region stringId - The ID of the region to which the disaster recovery site belongs.
- Destination
Zone stringId - The ID of the zone to which the disaster recovery site belongs.
- Disk
Id string - The ID of the primary disk.
- Id string
- Pair
Name 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 (-).
- Payment
Type string - The payment type of the resource.
- Replica
Pair stringId - The first ID of the resource
- Resource
Group 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.
- Source
Zone 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.
- Destination
Disk stringId - The ID of the standby disk.
- Destination
Region stringId - The ID of the region to which the disaster recovery site belongs.
- Destination
Zone stringId - The ID of the zone to which the disaster recovery site belongs.
- Disk
Id string - The ID of the primary disk.
- Id string
- Pair
Name 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 (-).
- Payment
Type string - The payment type of the resource.
- Replica
Pair stringId - The first ID of the resource
- Resource
Group 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.
- Source
Zone 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.
- destination
Disk StringId - The ID of the standby disk.
- destination
Region StringId - The ID of the region to which the disaster recovery site belongs.
- destination
Zone StringId - The ID of the zone to which the disaster recovery site belongs.
- disk
Id String - The ID of the primary disk.
- id String
- pair
Name 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 (-).
- payment
Type String - The payment type of the resource.
- replica
Pair StringId - The first ID of the resource
- resource
Group 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.
- source
Zone 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.
- destination
Disk stringId - The ID of the standby disk.
- destination
Region stringId - The ID of the region to which the disaster recovery site belongs.
- destination
Zone stringId - The ID of the zone to which the disaster recovery site belongs.
- disk
Id string - The ID of the primary disk.
- id string
- pair
Name 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 (-).
- payment
Type string - The payment type of the resource.
- replica
Pair stringId - The first ID of the resource
- resource
Group 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.
- source
Zone 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.
- destination
Disk StringId - The ID of the standby disk.
- destination
Region StringId - The ID of the region to which the disaster recovery site belongs.
- destination
Zone StringId - The ID of the zone to which the disaster recovery site belongs.
- disk
Id String - The ID of the primary disk.
- id String
- pair
Name 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 (-).
- payment
Type String - The payment type of the resource.
- replica
Pair StringId - The first ID of the resource
- resource
Group 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.
- source
Zone 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
alicloud
Terraform Provider.