GetDataCenters
The alicloud.cassandra.getDataCenters data source provides a collection of Cassandra Data Centers available in Alicloud account.
Filters support regular expression for the cluster name or ids.
NOTE: Available in 1.88.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var cassandra = Output.Create(AliCloud.Cassandra.GetDataCenters.InvokeAsync(new AliCloud.Cassandra.GetDataCentersArgs
{
ClusterId = "cds-xxxxx",
NameRegex = "tf_testAccCassandra_dc",
}));
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
cassandra = alicloud.cassandra.get_data_centers(cluster_id="cds-xxxxx",
name_regex="tf_testAccCassandra_dc")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const cassandra = pulumi.output(alicloud.cassandra.getDataCenters({
clusterId: "cds-xxxxx",
nameRegex: "tf_testAccCassandra_dc",
}, { async: true }));Using GetDataCenters
function getDataCenters(args: GetDataCentersArgs, opts?: InvokeOptions): Promise<GetDataCentersResult>function get_data_centers(cluster_id=None, ids=None, name_regex=None, output_file=None, opts=None)func GetDataCenters(ctx *Context, args *GetDataCentersArgs, opts ...InvokeOption) (*GetDataCentersResult, error)public static class GetDataCenters {
public static Task<GetDataCentersResult> InvokeAsync(GetDataCentersArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Cluster
Id string The cluster id of dataCenters belongs to.
- Ids List<string>
The list of Cassandra data center ids.
- Name
Regex string A regex string to apply to the cluster name.
- Output
File string
- cluster_
id str The cluster id of dataCenters belongs to.
- ids List[str]
The list of Cassandra data center ids.
- name_
regex str A regex string to apply to the cluster name.
- output_
file str
GetDataCenters Result
The following output properties are available:
- Centers
List<Pulumi.
Ali Cloud. Cassandra. Outputs. Get Data Centers Center> A list of Cassandra data centers. Its every element contains the following attributes:
- Cluster
Id string The ID of the Cassandra cluster.
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
The list of Cassandra data center ids.
- Names List<string>
The name list of Cassandra data centers.
- Name
Regex string - Output
File string
- Centers
[]Get
Data Centers Center A list of Cassandra data centers. Its every element contains the following attributes:
- Cluster
Id string The ID of the Cassandra cluster.
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
The list of Cassandra data center ids.
- Names []string
The name list of Cassandra data centers.
- Name
Regex string - Output
File string
- centers
Get
Data Centers Center[] A list of Cassandra data centers. Its every element contains the following attributes:
- cluster
Id string The ID of the Cassandra cluster.
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
The list of Cassandra data center ids.
- names string[]
The name list of Cassandra data centers.
- name
Regex string - output
File string
- centers
List[Get
Data Centers Center] A list of Cassandra data centers. Its every element contains the following attributes:
- cluster_
id str The ID of the Cassandra cluster.
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
The list of Cassandra data center ids.
- names List[str]
The name list of Cassandra data centers.
- name_
regex str - output_
file str
Supporting Types
GetDataCentersCenter
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Cluster
Id string The cluster id of dataCenters belongs to.
- Commodity
Instance string The commodity ID of the Cassandra dataCenter.
- Created
Time string - Data
Center stringId The id of the Cassandra dataCenter.
- Data
Center stringName The name of the Cassandra dataCenter.
- Disk
Size int One node disk size, unit:GB.
- Disk
Type string Cloud_ssd or cloud_efficiency.
- Expire
Time string The expire time of the dataCenter.
- Instance
Type string The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
- Lock
Mode string The lock mode of the dataCenter.
- Node
Count int The node count of dataCenter.
- Pay
Type string Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- Status string
Status of the dataCenter.
- Vpc
Id string VPC ID the dataCenter belongs to.
- Vswitch
Id string VSwitch ID the dataCenter belongs to.
- Zone
Id string Zone ID the dataCenter belongs to.
- Cluster
Id string The cluster id of dataCenters belongs to.
- Commodity
Instance string The commodity ID of the Cassandra dataCenter.
- Created
Time string - Data
Center stringId The id of the Cassandra dataCenter.
- Data
Center stringName The name of the Cassandra dataCenter.
- Disk
Size int One node disk size, unit:GB.
- Disk
Type string Cloud_ssd or cloud_efficiency.
- Expire
Time string The expire time of the dataCenter.
- Instance
Type string The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
- Lock
Mode string The lock mode of the dataCenter.
- Node
Count int The node count of dataCenter.
- Pay
Type string Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- Status string
Status of the dataCenter.
- Vpc
Id string VPC ID the dataCenter belongs to.
- Vswitch
Id string VSwitch ID the dataCenter belongs to.
- Zone
Id string Zone ID the dataCenter belongs to.
- cluster
Id string The cluster id of dataCenters belongs to.
- commodity
Instance string The commodity ID of the Cassandra dataCenter.
- created
Time string - data
Center stringId The id of the Cassandra dataCenter.
- data
Center stringName The name of the Cassandra dataCenter.
- disk
Size number One node disk size, unit:GB.
- disk
Type string Cloud_ssd or cloud_efficiency.
- expire
Time string The expire time of the dataCenter.
- instance
Type string The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
- lock
Mode string The lock mode of the dataCenter.
- node
Count number The node count of dataCenter.
- pay
Type string Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- status string
Status of the dataCenter.
- vpc
Id string VPC ID the dataCenter belongs to.
- vswitch
Id string VSwitch ID the dataCenter belongs to.
- zone
Id string Zone ID the dataCenter belongs to.
- cluster_
id str The cluster id of dataCenters belongs to.
- commodity
Instance str The commodity ID of the Cassandra dataCenter.
- created
Time str - data_
center_ strid The id of the Cassandra dataCenter.
- data_
center_ strname The name of the Cassandra dataCenter.
- disk_
size float One node disk size, unit:GB.
- disk_
type str Cloud_ssd or cloud_efficiency.
- expire_
time str The expire time of the dataCenter.
- instance_
type str The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
- lock
Mode str The lock mode of the dataCenter.
- node_
count float The node count of dataCenter.
- pay_
type str Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- status str
Status of the dataCenter.
- vpc_
id str VPC ID the dataCenter belongs to.
- vswitch_
id str VSwitch ID the dataCenter belongs to.
- zone_
id str Zone ID the dataCenter belongs to.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.