Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.cassandra.getDataCenters
Explore with Pulumi AI
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+.
DEPRECATED: This data source has been deprecated from version
1.220.0
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const cassandra = alicloud.cassandra.getDataCenters({
nameRegex: "tf_testAccCassandra_dc",
clusterId: "cds-xxxxx",
});
import pulumi
import pulumi_alicloud as alicloud
cassandra = alicloud.cassandra.get_data_centers(name_regex="tf_testAccCassandra_dc",
cluster_id="cds-xxxxx")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cassandra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cassandra.GetDataCenters(ctx, &cassandra.GetDataCentersArgs{
NameRegex: pulumi.StringRef("tf_testAccCassandra_dc"),
ClusterId: "cds-xxxxx",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var cassandra = AliCloud.Cassandra.GetDataCenters.Invoke(new()
{
NameRegex = "tf_testAccCassandra_dc",
ClusterId = "cds-xxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cassandra.CassandraFunctions;
import com.pulumi.alicloud.cassandra.inputs.GetDataCentersArgs;
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 cassandra = CassandraFunctions.getDataCenters(GetDataCentersArgs.builder()
.nameRegex("tf_testAccCassandra_dc")
.clusterId("cds-xxxxx")
.build());
}
}
variables:
cassandra:
fn::invoke:
Function: alicloud:cassandra:getDataCenters
Arguments:
nameRegex: tf_testAccCassandra_dc
clusterId: cds-xxxxx
Using getDataCenters
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 getDataCenters(args: GetDataCentersArgs, opts?: InvokeOptions): Promise<GetDataCentersResult>
function getDataCentersOutput(args: GetDataCentersOutputArgs, opts?: InvokeOptions): Output<GetDataCentersResult>
def get_data_centers(cluster_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataCentersResult
def get_data_centers_output(cluster_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataCentersResult]
func GetDataCenters(ctx *Context, args *GetDataCentersArgs, opts ...InvokeOption) (*GetDataCentersResult, error)
func GetDataCentersOutput(ctx *Context, args *GetDataCentersOutputArgs, opts ...InvokeOption) GetDataCentersResultOutput
> Note: This function is named GetDataCenters
in the Go SDK.
public static class GetDataCenters
{
public static Task<GetDataCentersResult> InvokeAsync(GetDataCentersArgs args, InvokeOptions? opts = null)
public static Output<GetDataCentersResult> Invoke(GetDataCentersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataCentersResult> getDataCenters(GetDataCentersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cassandra/getDataCenters:getDataCenters
arguments:
# arguments dictionary
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 - The name of file that can save the collection of data centers after running
pulumi preview
.
- Cluster
Id string - The cluster id of dataCenters belongs to.
- Ids []string
- The list of Cassandra data center ids.
- Name
Regex string - A regex string to apply to the cluster name.
- Output
File string - The name of file that can save the collection of data centers after running
pulumi preview
.
- 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 - The name of file that can save the collection of data centers after running
pulumi preview
.
- cluster
Id string - The cluster id of dataCenters belongs to.
- ids string[]
- The list of Cassandra data center ids.
- name
Regex string - A regex string to apply to the cluster name.
- output
File string - The name of file that can save the collection of data centers after running
pulumi preview
.
- cluster_
id str - The cluster id of dataCenters belongs to.
- ids Sequence[str]
- The list of Cassandra data center ids.
- name_
regex str - A regex string to apply to the cluster name.
- output_
file str - The name of file that can save the collection of data centers after running
pulumi preview
.
- 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 - The name of file that can save the collection of data centers after running
pulumi preview
.
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
List<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
Sequence[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 Sequence[str]
- The list of Cassandra data center ids.
- names Sequence[str]
- The name list of Cassandra data centers.
- name_
regex str - output_
file str
- centers List<Property Map>
- 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
Supporting Types
GetDataCentersCenter
- 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
Subscription
for Pay-As-You-Go andPayAsYouGo
for 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
Subscription
for Pay-As-You-Go andPayAsYouGo
for 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 Integer - 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 Integer - The node count of dataCenter.
- pay
Type String - Billing method. Value options are
Subscription
for Pay-As-You-Go andPayAsYouGo
for 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
Subscription
for Pay-As-You-Go andPayAsYouGo
for 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 int - 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 int - The node count of dataCenter.
- pay_
type str - Billing method. Value options are
Subscription
for Pay-As-You-Go andPayAsYouGo
for 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.
- 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
Subscription
for Pay-As-You-Go andPayAsYouGo
for 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.