Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
This data source provides the Distributed Relational Database Service (DRDS) PolarDB-X Instances of the current Alibaba Cloud user.
NOTE: Available since v1.285.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.drds.getPolardbxInstances({
ids: ["pxc-xxxxxxxx"],
});
export const firstPolardbxInstanceId = ids.then(ids => ids.instances?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.drds.get_polardbx_instances(ids=["pxc-xxxxxxxx"])
pulumi.export("firstPolardbxInstanceId", ids.instances[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/drds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := drds.GetPolardbxInstances(ctx, &drds.GetPolardbxInstancesArgs{
Ids: []string{
"pxc-xxxxxxxx",
},
}, nil)
if err != nil {
return err
}
ctx.Export("firstPolardbxInstanceId", ids.Instances[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Drds.GetPolardbxInstances.Invoke(new()
{
Ids = new[]
{
"pxc-xxxxxxxx",
},
});
return new Dictionary<string, object?>
{
["firstPolardbxInstanceId"] = ids.Apply(getPolardbxInstancesResult => getPolardbxInstancesResult.Instances[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.drds.DrdsFunctions;
import com.pulumi.alicloud.drds.inputs.GetPolardbxInstancesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 ids = DrdsFunctions.getPolardbxInstances(GetPolardbxInstancesArgs.builder()
.ids("pxc-xxxxxxxx")
.build());
ctx.export("firstPolardbxInstanceId", ids.instances()[0].id());
}
}
variables:
ids:
fn::invoke:
function: alicloud:drds:getPolardbxInstances
arguments:
ids:
- pxc-xxxxxxxx
outputs:
firstPolardbxInstanceId: ${ids.instances[0].id}
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_drds_getpolardbxinstances" "ids" {
ids = ["pxc-xxxxxxxx"]
}
output "firstPolardbxInstanceId" {
value = data.alicloud_drds_getpolardbxinstances.ids.instances[0].id
}
Using getPolardbxInstances
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 getPolardbxInstances(args: GetPolardbxInstancesArgs, opts?: InvokeOptions): Promise<GetPolardbxInstancesResult>
function getPolardbxInstancesOutput(args: GetPolardbxInstancesOutputArgs, opts?: InvokeOptions): Output<GetPolardbxInstancesResult>def get_polardbx_instances(description_regex: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolardbxInstancesResult
def get_polardbx_instances_output(description_regex: pulumi.Input[Optional[str]] = None,
ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
output_file: pulumi.Input[Optional[str]] = None,
page_number: pulumi.Input[Optional[int]] = None,
page_size: pulumi.Input[Optional[int]] = None,
resource_group_id: pulumi.Input[Optional[str]] = None,
status: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolardbxInstancesResult]func GetPolardbxInstances(ctx *Context, args *GetPolardbxInstancesArgs, opts ...InvokeOption) (*GetPolardbxInstancesResult, error)
func GetPolardbxInstancesOutput(ctx *Context, args *GetPolardbxInstancesOutputArgs, opts ...InvokeOption) GetPolardbxInstancesResultOutput> Note: This function is named GetPolardbxInstances in the Go SDK.
public static class GetPolardbxInstances
{
public static Task<GetPolardbxInstancesResult> InvokeAsync(GetPolardbxInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetPolardbxInstancesResult> Invoke(GetPolardbxInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPolardbxInstancesResult> getPolardbxInstances(GetPolardbxInstancesArgs args, InvokeOptions options)
public static Output<GetPolardbxInstancesResult> getPolardbxInstances(GetPolardbxInstancesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:drds/getPolardbxInstances:getPolardbxInstances
arguments:
# arguments dictionarydata "alicloud_drds_get_polardbx_instances" "name" {
# arguments
}The following arguments are supported:
- Description
Regex string - A regex string to filter results by instance description.
- Ids List<string>
- A list of PolarDB-X Instance IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Page
Number int - Number of the returned page. Valid values: 1 to
10000. Default:1. - Page
Size int - Number of entries per page. Valid values: 1 to
1000. Default:100. - Resource
Group stringId - The ID of the resource group used to filter instances.
- Status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
- Description
Regex string - A regex string to filter results by instance description.
- Ids []string
- A list of PolarDB-X Instance IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Page
Number int - Number of the returned page. Valid values: 1 to
10000. Default:1. - Page
Size int - Number of entries per page. Valid values: 1 to
1000. Default:100. - Resource
Group stringId - The ID of the resource group used to filter instances.
- Status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
- description_
regex string - A regex string to filter results by instance description.
- ids list(string)
- A list of PolarDB-X Instance IDs.
- output_
file string - File name where to save data source results (after running
pulumi preview). - page_
number number - Number of the returned page. Valid values: 1 to
10000. Default:1. - page_
size number - Number of entries per page. Valid values: 1 to
1000. Default:100. - resource_
group_ stringid - The ID of the resource group used to filter instances.
- status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
- description
Regex String - A regex string to filter results by instance description.
- ids List<String>
- A list of PolarDB-X Instance IDs.
- output
File String - File name where to save data source results (after running
pulumi preview). - page
Number Integer - Number of the returned page. Valid values: 1 to
10000. Default:1. - page
Size Integer - Number of entries per page. Valid values: 1 to
1000. Default:100. - resource
Group StringId - The ID of the resource group used to filter instances.
- status String
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
- description
Regex string - A regex string to filter results by instance description.
- ids string[]
- A list of PolarDB-X Instance IDs.
- output
File string - File name where to save data source results (after running
pulumi preview). - page
Number number - Number of the returned page. Valid values: 1 to
10000. Default:1. - page
Size number - Number of entries per page. Valid values: 1 to
1000. Default:100. - resource
Group stringId - The ID of the resource group used to filter instances.
- status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
- description_
regex str - A regex string to filter results by instance description.
- ids Sequence[str]
- A list of PolarDB-X Instance IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview). - page_
number int - Number of the returned page. Valid values: 1 to
10000. Default:1. - page_
size int - Number of entries per page. Valid values: 1 to
1000. Default:100. - resource_
group_ strid - The ID of the resource group used to filter instances.
- status str
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
- description
Regex String - A regex string to filter results by instance description.
- ids List<String>
- A list of PolarDB-X Instance IDs.
- output
File String - File name where to save data source results (after running
pulumi preview). - page
Number Number - Number of the returned page. Valid values: 1 to
10000. Default:1. - page
Size Number - Number of entries per page. Valid values: 1 to
1000. Default:100. - resource
Group StringId - The ID of the resource group used to filter instances.
- status String
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting.
getPolardbxInstances Result
The following output properties are available:
- Descriptions List<string>
- A list of PolarDB-X instance descriptions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Instances
List<Pulumi.
Ali Cloud. Drds. Outputs. Get Polardbx Instances Instance> - A list of PolarDB-X instances. Each element contains the following attributes:
- Total
Count int - Total number of PolarDB-X instances returned by the API.
- Description
Regex string - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - The ID of the resource group the instance belongs to.
- Status string
- Status of the instance.
- Descriptions []string
- A list of PolarDB-X instance descriptions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]Get
Polardbx Instances Instance - A list of PolarDB-X instances. Each element contains the following attributes:
- Total
Count int - Total number of PolarDB-X instances returned by the API.
- Description
Regex string - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - The ID of the resource group the instance belongs to.
- Status string
- Status of the instance.
- descriptions list(string)
- A list of PolarDB-X instance descriptions.
- id string
- The provider-assigned unique ID for this managed resource.
- ids list(string)
- instances list(object)
- A list of PolarDB-X instances. Each element contains the following attributes:
- total_
count number - Total number of PolarDB-X instances returned by the API.
- description_
regex string - output_
file string - page_
number number - page_
size number - resource_
group_ stringid - The ID of the resource group the instance belongs to.
- status string
- Status of the instance.
- descriptions List<String>
- A list of PolarDB-X instance descriptions.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<Get
Polardbx Instances Instance> - A list of PolarDB-X instances. Each element contains the following attributes:
- total
Count Integer - Total number of PolarDB-X instances returned by the API.
- description
Regex String - output
File String - page
Number Integer - page
Size Integer - resource
Group StringId - The ID of the resource group the instance belongs to.
- status String
- Status of the instance.
- descriptions string[]
- A list of PolarDB-X instance descriptions.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
Get
Polardbx Instances Instance[] - A list of PolarDB-X instances. Each element contains the following attributes:
- total
Count number - Total number of PolarDB-X instances returned by the API.
- description
Regex string - output
File string - page
Number number - page
Size number - resource
Group stringId - The ID of the resource group the instance belongs to.
- status string
- Status of the instance.
- descriptions Sequence[str]
- A list of PolarDB-X instance descriptions.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[Get
Polardbx Instances Instance] - A list of PolarDB-X instances. Each element contains the following attributes:
- total_
count int - Total number of PolarDB-X instances returned by the API.
- description_
regex str - output_
file str - page_
number int - page_
size int - resource_
group_ strid - The ID of the resource group the instance belongs to.
- status str
- Status of the instance.
- descriptions List<String>
- A list of PolarDB-X instance descriptions.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances List<Property Map>
- A list of PolarDB-X instances. Each element contains the following attributes:
- total
Count Number - Total number of PolarDB-X instances returned by the API.
- description
Regex String - output
File String - page
Number Number - page
Size Number - resource
Group StringId - The ID of the resource group the instance belongs to.
- status String
- Status of the instance.
Supporting Types
GetPolardbxInstancesInstance
- Cn
Class string - Compute node specifications of the instance.
- Cn
Node intCount - The number of compute nodes.
- Create
Time string - The creation time of the instance.
- Description string
- Instance remarks.
- Dn
Class string - Storage node specifications of the instance.
- Dn
Node intCount - The number of storage nodes.
- Engine
Version string - Engine version of the instance.
- Id string
- The ID of the PolarDB-X instance.
- Network
Type string - The network type of the instance.
- Payment
Type string - The billing method of the instance. Valid values:
Postpaid,Prepaid. - Polardbx
Instance stringId - The ID of the PolarDB-X instance. Same as
id. - Primary
Zone string - Primary availability zone.
- Region
Id string - Region ID of the instance.
- Resource
Group stringId - The ID of the resource group used to filter instances.
- Secondary
Zone string - Secondary availability zone.
- Status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - Storage
Type string - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - Tertiary
Zone string - Third availability zone.
- Topology
Type string - Topology type of the instance. Valid values:
1azone,3azones. - Vpc
Id string - VPC ID of the instance.
- Zone
Id string - Availability zone of the instance.
- Cn
Class string - Compute node specifications of the instance.
- Cn
Node intCount - The number of compute nodes.
- Create
Time string - The creation time of the instance.
- Description string
- Instance remarks.
- Dn
Class string - Storage node specifications of the instance.
- Dn
Node intCount - The number of storage nodes.
- Engine
Version string - Engine version of the instance.
- Id string
- The ID of the PolarDB-X instance.
- Network
Type string - The network type of the instance.
- Payment
Type string - The billing method of the instance. Valid values:
Postpaid,Prepaid. - Polardbx
Instance stringId - The ID of the PolarDB-X instance. Same as
id. - Primary
Zone string - Primary availability zone.
- Region
Id string - Region ID of the instance.
- Resource
Group stringId - The ID of the resource group used to filter instances.
- Secondary
Zone string - Secondary availability zone.
- Status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - Storage
Type string - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - Tertiary
Zone string - Third availability zone.
- Topology
Type string - Topology type of the instance. Valid values:
1azone,3azones. - Vpc
Id string - VPC ID of the instance.
- Zone
Id string - Availability zone of the instance.
- cn_
class string - Compute node specifications of the instance.
- cn_
node_ numbercount - The number of compute nodes.
- create_
time string - The creation time of the instance.
- description string
- Instance remarks.
- dn_
class string - Storage node specifications of the instance.
- dn_
node_ numbercount - The number of storage nodes.
- engine_
version string - Engine version of the instance.
- id string
- The ID of the PolarDB-X instance.
- network_
type string - The network type of the instance.
- payment_
type string - The billing method of the instance. Valid values:
Postpaid,Prepaid. - polardbx_
instance_ stringid - The ID of the PolarDB-X instance. Same as
id. - primary_
zone string - Primary availability zone.
- region_
id string - Region ID of the instance.
- resource_
group_ stringid - The ID of the resource group used to filter instances.
- secondary_
zone string - Secondary availability zone.
- status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - storage_
type string - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - tertiary_
zone string - Third availability zone.
- topology_
type string - Topology type of the instance. Valid values:
1azone,3azones. - vpc_
id string - VPC ID of the instance.
- zone_
id string - Availability zone of the instance.
- cn
Class String - Compute node specifications of the instance.
- cn
Node IntegerCount - The number of compute nodes.
- create
Time String - The creation time of the instance.
- description String
- Instance remarks.
- dn
Class String - Storage node specifications of the instance.
- dn
Node IntegerCount - The number of storage nodes.
- engine
Version String - Engine version of the instance.
- id String
- The ID of the PolarDB-X instance.
- network
Type String - The network type of the instance.
- payment
Type String - The billing method of the instance. Valid values:
Postpaid,Prepaid. - polardbx
Instance StringId - The ID of the PolarDB-X instance. Same as
id. - primary
Zone String - Primary availability zone.
- region
Id String - Region ID of the instance.
- resource
Group StringId - The ID of the resource group used to filter instances.
- secondary
Zone String - Secondary availability zone.
- status String
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - storage
Type String - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - tertiary
Zone String - Third availability zone.
- topology
Type String - Topology type of the instance. Valid values:
1azone,3azones. - vpc
Id String - VPC ID of the instance.
- zone
Id String - Availability zone of the instance.
- cn
Class string - Compute node specifications of the instance.
- cn
Node numberCount - The number of compute nodes.
- create
Time string - The creation time of the instance.
- description string
- Instance remarks.
- dn
Class string - Storage node specifications of the instance.
- dn
Node numberCount - The number of storage nodes.
- engine
Version string - Engine version of the instance.
- id string
- The ID of the PolarDB-X instance.
- network
Type string - The network type of the instance.
- payment
Type string - The billing method of the instance. Valid values:
Postpaid,Prepaid. - polardbx
Instance stringId - The ID of the PolarDB-X instance. Same as
id. - primary
Zone string - Primary availability zone.
- region
Id string - Region ID of the instance.
- resource
Group stringId - The ID of the resource group used to filter instances.
- secondary
Zone string - Secondary availability zone.
- status string
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - storage
Type string - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - tertiary
Zone string - Third availability zone.
- topology
Type string - Topology type of the instance. Valid values:
1azone,3azones. - vpc
Id string - VPC ID of the instance.
- zone
Id string - Availability zone of the instance.
- cn_
class str - Compute node specifications of the instance.
- cn_
node_ intcount - The number of compute nodes.
- create_
time str - The creation time of the instance.
- description str
- Instance remarks.
- dn_
class str - Storage node specifications of the instance.
- dn_
node_ intcount - The number of storage nodes.
- engine_
version str - Engine version of the instance.
- id str
- The ID of the PolarDB-X instance.
- network_
type str - The network type of the instance.
- payment_
type str - The billing method of the instance. Valid values:
Postpaid,Prepaid. - polardbx_
instance_ strid - The ID of the PolarDB-X instance. Same as
id. - primary_
zone str - Primary availability zone.
- region_
id str - Region ID of the instance.
- resource_
group_ strid - The ID of the resource group used to filter instances.
- secondary_
zone str - Secondary availability zone.
- status str
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - storage_
type str - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - tertiary_
zone str - Third availability zone.
- topology_
type str - Topology type of the instance. Valid values:
1azone,3azones. - vpc_
id str - VPC ID of the instance.
- zone_
id str - Availability zone of the instance.
- cn
Class String - Compute node specifications of the instance.
- cn
Node NumberCount - The number of compute nodes.
- create
Time String - The creation time of the instance.
- description String
- Instance remarks.
- dn
Class String - Storage node specifications of the instance.
- dn
Node NumberCount - The number of storage nodes.
- engine
Version String - Engine version of the instance.
- id String
- The ID of the PolarDB-X instance.
- network
Type String - The network type of the instance.
- payment
Type String - The billing method of the instance. Valid values:
Postpaid,Prepaid. - polardbx
Instance StringId - The ID of the PolarDB-X instance. Same as
id. - primary
Zone String - Primary availability zone.
- region
Id String - Region ID of the instance.
- resource
Group StringId - The ID of the resource group used to filter instances.
- secondary
Zone String - Secondary availability zone.
- status String
- Filter results by instance status. Valid values:
Creating,Running,MinorVersionUpgrading,ClassChanging,NodeCreating,NodeDeleting,Deleting. - storage
Type String - Storage type of the instance. Valid values:
customLocalSsd,cloudAuto. - tertiary
Zone String - Third availability zone.
- topology
Type String - Topology type of the instance. Valid values:
1azone,3azones. - vpc
Id String - VPC ID of the instance.
- zone
Id String - Availability zone of the instance.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi