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.
- Name
Regex string A regex string to apply to the cluster name.
- Output
File string - Dictionary<string, object>
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 - Dict[str, Any]
A mapping of tags to assign to the resource.
GetClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. Cassandra. Outputs. Get Clusters Cluster> 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.
- Name
Regex string - Output
File string - Dictionary<string, object>
A mapping of tags to assign to the resource.
- Clusters
[]Get
Clusters Cluster 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.
- Name
Regex string - Output
File string - map[string]interface{}
A mapping of tags to assign to the resource.
- clusters
Get
Clusters Cluster[] 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.
- name
Regex string - output
File string - {[key: string]: any}
A mapping of tags to assign to the resource.
- clusters
List[Get
Clusters Cluster] 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 - 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.
- Cluster
Id string The ID of the Cassandra cluster.
- Cluster
Name string The name of the Cassandra cluster.
- Created
Time string - Data
Center intCount The count of data centers
- Expire
Time string The expire time of the cluster.
- Id string
The ID of the Cassandra cluster.
- Lock
Mode string The lock mode of the cluster.
- Major
Version string The major version of the cluster.
- Minor
Version string The minor version of the cluster.
- Pay
Type string Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- Status string
Status of the cluster.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Cluster
Id string The ID of the Cassandra cluster.
- Cluster
Name string The name of the Cassandra cluster.
- Created
Time string - Data
Center intCount The count of data centers
- Expire
Time string The expire time of the cluster.
- Id string
The ID of the Cassandra cluster.
- Lock
Mode string The lock mode of the cluster.
- Major
Version string The major version of the cluster.
- Minor
Version string The minor version of the cluster.
- Pay
Type string Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- Status string
Status of the cluster.
- map[string]interface{}
A mapping of tags to assign to the resource.
- cluster
Id string The ID of the Cassandra cluster.
- cluster
Name string The name of the Cassandra cluster.
- created
Time string - data
Center numberCount The count of data centers
- expire
Time string The expire time of the cluster.
- id string
The ID of the Cassandra cluster.
- lock
Mode string The lock mode of the cluster.
- major
Version string The major version of the cluster.
- minor
Version string The minor version of the cluster.
- pay
Type string Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- status string
Status of the cluster.
- {[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.
- created
Time str - data
Center floatCount The count of data centers
- expire_
time str The expire time of the cluster.
- id str
The ID of the Cassandra cluster.
- lock
Mode str The lock mode of the cluster.
- major_
version str The major version of the cluster.
- minor
Version str The minor version of the cluster.
- pay_
type str Billing method. Value options are
Subscriptionfor Pay-As-You-Go andPayAsYouGofor yearly or monthly subscription.- status str
Status of the cluster.
- 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
alicloudTerraform Provider.