GetClusters

The alicloud.cassandra.getClusters data source provides a collection of Cassandra clusters available in Alicloud account. Filters support regular expression for the cluster name, ids or tags.

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.GetClusters.InvokeAsync(new AliCloud.Cassandra.GetClustersArgs
        {
            NameRegex = "tf_testAccCassandra",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

cassandra = alicloud.cassandra.get_clusters(name_regex="tf_testAccCassandra")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const cassandra = pulumi.output(alicloud.cassandra.getClusters({
    nameRegex: "tf_testAccCassandra",
}, { async: true }));

Using GetClusters

function getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
function  get_clusters(ids=None, name_regex=None, output_file=None, tags=None, opts=None)
func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
public static class GetClusters {
    public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>

The list of Cassandra cluster ids.

NameRegex string

A regex string to apply to the cluster name.

OutputFile string
Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Ids []string

The list of Cassandra cluster ids.

NameRegex string

A regex string to apply to the cluster name.

OutputFile string
Tags map[string]interface{}

A mapping of tags to assign to the resource.

ids string[]

The list of Cassandra cluster ids.

nameRegex string

A regex string to apply to the cluster name.

outputFile string
tags {[key: string]: any}

A mapping of tags to assign to the resource.

ids List[str]

The list of Cassandra cluster ids.

name_regex str

A regex string to apply to the cluster name.

output_file str
tags Dict[str, Any]

A mapping of tags to assign to the resource.

GetClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.Cassandra.Outputs.GetClustersCluster>

A list of Cassandra clusters. Its every element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

The list of Cassandra cluster ids.

Names List<string>

The name list of Cassandra clusters.

NameRegex string
OutputFile string
Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Clusters []GetClustersCluster

A list of Cassandra clusters. Its every element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

The list of Cassandra cluster ids.

Names []string

The name list of Cassandra clusters.

NameRegex string
OutputFile string
Tags map[string]interface{}

A mapping of tags to assign to the resource.

clusters GetClustersCluster[]

A list of Cassandra clusters. Its every element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

ids string[]

The list of Cassandra cluster ids.

names string[]

The name list of Cassandra clusters.

nameRegex string
outputFile string
tags {[key: string]: any}

A mapping of tags to assign to the resource.

clusters List[GetClustersCluster]

A list of Cassandra clusters. Its every element contains the following attributes:

id str

The provider-assigned unique ID for this managed resource.

ids List[str]

The list of Cassandra cluster ids.

names List[str]

The name list of Cassandra clusters.

name_regex str
output_file str
tags Dict[str, Any]

A mapping of tags to assign to the resource.

Supporting Types

GetClustersCluster

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ClusterId string

The ID of the Cassandra cluster.

ClusterName string

The name of the Cassandra cluster.

CreatedTime string
DataCenterCount int

The count of data centers

ExpireTime string

The expire time of the cluster.

Id string

The ID of the Cassandra cluster.

LockMode string

The lock mode of the cluster.

MajorVersion string

The major version of the cluster.

MinorVersion string

The minor version of the cluster.

PayType string

Billing method. Value options are Subscription for Pay-As-You-Go and PayAsYouGo for yearly or monthly subscription.

Status string

Status of the cluster.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

ClusterId string

The ID of the Cassandra cluster.

ClusterName string

The name of the Cassandra cluster.

CreatedTime string
DataCenterCount int

The count of data centers

ExpireTime string

The expire time of the cluster.

Id string

The ID of the Cassandra cluster.

LockMode string

The lock mode of the cluster.

MajorVersion string

The major version of the cluster.

MinorVersion string

The minor version of the cluster.

PayType string

Billing method. Value options are Subscription for Pay-As-You-Go and PayAsYouGo for yearly or monthly subscription.

Status string

Status of the cluster.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

clusterId string

The ID of the Cassandra cluster.

clusterName string

The name of the Cassandra cluster.

createdTime string
dataCenterCount number

The count of data centers

expireTime string

The expire time of the cluster.

id string

The ID of the Cassandra cluster.

lockMode string

The lock mode of the cluster.

majorVersion string

The major version of the cluster.

minorVersion string

The minor version of the cluster.

payType string

Billing method. Value options are Subscription for Pay-As-You-Go and PayAsYouGo for yearly or monthly subscription.

status string

Status of the cluster.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

cluster_id str

The ID of the Cassandra cluster.

cluster_name str

The name of the Cassandra cluster.

createdTime str
dataCenterCount float

The count of data centers

expire_time str

The expire time of the cluster.

id str

The ID of the Cassandra cluster.

lockMode str

The lock mode of the cluster.

major_version str

The major version of the cluster.

minorVersion str

The minor version of the cluster.

pay_type str

Billing method. Value options are Subscription for Pay-As-You-Go and PayAsYouGo for yearly or monthly subscription.

status str

Status of the cluster.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.