alicloud.cassandra.Cluster
Explore with Pulumi AI
Provides a Cassandra cluster resource supports replica set clusters only. The Cassandra provides stable, reliable, and automatic scalable database services. It offers a full range of database solutions, such as disaster recovery, backup, recovery, monitoring, and alarms. You can see detail product introduction here.
NOTE: Available in 1.88.0+.
NOTE: The following regions support create Vpc network Cassandra cluster. The official website mark more regions. Or you can call DescribeRegions.
NOTE: Create Cassandra cluster or change cluster type and storage would cost 30 minutes. Please make full preparation.
DEPRECATED: This resource has been deprecated from version
1.220.0
.
Example Usage
Create a cassandra cluster
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.cassandra.Cluster("default", {
clusterName: "cassandra-cluster-name-tf",
dataCenterName: "dc-1",
autoRenew: false,
instanceType: "cassandra.c.large",
majorVersion: "3.11",
nodeCount: 2,
payType: "PayAsYouGo",
vswitchId: "vsw-xxxx",
diskSize: 160,
diskType: "cloud_ssd",
maintainStartTime: "18:00Z",
maintainEndTime: "20:00Z",
ipWhite: "127.0.0.1",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cassandra.Cluster("default",
cluster_name="cassandra-cluster-name-tf",
data_center_name="dc-1",
auto_renew=False,
instance_type="cassandra.c.large",
major_version="3.11",
node_count=2,
pay_type="PayAsYouGo",
vswitch_id="vsw-xxxx",
disk_size=160,
disk_type="cloud_ssd",
maintain_start_time="18:00Z",
maintain_end_time="20:00Z",
ip_white="127.0.0.1")
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.NewCluster(ctx, "default", &cassandra.ClusterArgs{
ClusterName: pulumi.String("cassandra-cluster-name-tf"),
DataCenterName: pulumi.String("dc-1"),
AutoRenew: pulumi.Bool(false),
InstanceType: pulumi.String("cassandra.c.large"),
MajorVersion: pulumi.String("3.11"),
NodeCount: pulumi.Int(2),
PayType: pulumi.String("PayAsYouGo"),
VswitchId: pulumi.String("vsw-xxxx"),
DiskSize: pulumi.Int(160),
DiskType: pulumi.String("cloud_ssd"),
MaintainStartTime: pulumi.String("18:00Z"),
MaintainEndTime: pulumi.String("20:00Z"),
IpWhite: pulumi.String("127.0.0.1"),
})
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 @default = new AliCloud.Cassandra.Cluster("default", new()
{
ClusterName = "cassandra-cluster-name-tf",
DataCenterName = "dc-1",
AutoRenew = false,
InstanceType = "cassandra.c.large",
MajorVersion = "3.11",
NodeCount = 2,
PayType = "PayAsYouGo",
VswitchId = "vsw-xxxx",
DiskSize = 160,
DiskType = "cloud_ssd",
MaintainStartTime = "18:00Z",
MaintainEndTime = "20:00Z",
IpWhite = "127.0.0.1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cassandra.Cluster;
import com.pulumi.alicloud.cassandra.ClusterArgs;
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) {
var default_ = new Cluster("default", ClusterArgs.builder()
.clusterName("cassandra-cluster-name-tf")
.dataCenterName("dc-1")
.autoRenew("false")
.instanceType("cassandra.c.large")
.majorVersion("3.11")
.nodeCount("2")
.payType("PayAsYouGo")
.vswitchId("vsw-xxxx")
.diskSize("160")
.diskType("cloud_ssd")
.maintainStartTime("18:00Z")
.maintainEndTime("20:00Z")
.ipWhite("127.0.0.1")
.build());
}
}
resources:
default:
type: alicloud:cassandra:Cluster
properties:
clusterName: cassandra-cluster-name-tf
dataCenterName: dc-1
autoRenew: 'false'
instanceType: cassandra.c.large
majorVersion: '3.11'
nodeCount: '2'
payType: PayAsYouGo
vswitchId: vsw-xxxx
diskSize: '160'
diskType: cloud_ssd
maintainStartTime: 18:00Z
maintainEndTime: 20:00Z
ipWhite: 127.0.0.1
This is a example for class netType cluster. You can find more detail with the examples/cassandra_cluster dir.
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_type: Optional[str] = None,
vswitch_id: Optional[str] = None,
pay_type: Optional[str] = None,
node_count: Optional[int] = None,
major_version: Optional[str] = None,
maintain_start_time: Optional[str] = None,
data_center_name: Optional[str] = None,
disk_type: Optional[str] = None,
ip_white: Optional[str] = None,
maintain_end_time: Optional[str] = None,
auto_renew: Optional[bool] = None,
disk_size: Optional[int] = None,
enable_public: Optional[bool] = None,
password: Optional[str] = None,
cluster_name: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
auto_renew_period: Optional[int] = None,
zone_id: Optional[str] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: alicloud:cassandra:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterResourceResourceFromCassandracluster = new AliCloud.Cassandra.Cluster("exampleclusterResourceResourceFromCassandracluster", new()
{
InstanceType = "string",
VswitchId = "string",
PayType = "string",
NodeCount = 0,
MajorVersion = "string",
MaintainStartTime = "string",
DataCenterName = "string",
DiskType = "string",
IpWhite = "string",
MaintainEndTime = "string",
AutoRenew = false,
DiskSize = 0,
EnablePublic = false,
Password = "string",
ClusterName = "string",
Period = 0,
PeriodUnit = "string",
SecurityGroups = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
AutoRenewPeriod = 0,
ZoneId = "string",
});
example, err := cassandra.NewCluster(ctx, "exampleclusterResourceResourceFromCassandracluster", &cassandra.ClusterArgs{
InstanceType: pulumi.String("string"),
VswitchId: pulumi.String("string"),
PayType: pulumi.String("string"),
NodeCount: pulumi.Int(0),
MajorVersion: pulumi.String("string"),
MaintainStartTime: pulumi.String("string"),
DataCenterName: pulumi.String("string"),
DiskType: pulumi.String("string"),
IpWhite: pulumi.String("string"),
MaintainEndTime: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
DiskSize: pulumi.Int(0),
EnablePublic: pulumi.Bool(false),
Password: pulumi.String("string"),
ClusterName: pulumi.String("string"),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AutoRenewPeriod: pulumi.Int(0),
ZoneId: pulumi.String("string"),
})
var exampleclusterResourceResourceFromCassandracluster = new Cluster("exampleclusterResourceResourceFromCassandracluster", ClusterArgs.builder()
.instanceType("string")
.vswitchId("string")
.payType("string")
.nodeCount(0)
.majorVersion("string")
.maintainStartTime("string")
.dataCenterName("string")
.diskType("string")
.ipWhite("string")
.maintainEndTime("string")
.autoRenew(false)
.diskSize(0)
.enablePublic(false)
.password("string")
.clusterName("string")
.period(0)
.periodUnit("string")
.securityGroups("string")
.tags(Map.of("string", "string"))
.autoRenewPeriod(0)
.zoneId("string")
.build());
examplecluster_resource_resource_from_cassandracluster = alicloud.cassandra.Cluster("exampleclusterResourceResourceFromCassandracluster",
instance_type="string",
vswitch_id="string",
pay_type="string",
node_count=0,
major_version="string",
maintain_start_time="string",
data_center_name="string",
disk_type="string",
ip_white="string",
maintain_end_time="string",
auto_renew=False,
disk_size=0,
enable_public=False,
password="string",
cluster_name="string",
period=0,
period_unit="string",
security_groups=["string"],
tags={
"string": "string",
},
auto_renew_period=0,
zone_id="string")
const exampleclusterResourceResourceFromCassandracluster = new alicloud.cassandra.Cluster("exampleclusterResourceResourceFromCassandracluster", {
instanceType: "string",
vswitchId: "string",
payType: "string",
nodeCount: 0,
majorVersion: "string",
maintainStartTime: "string",
dataCenterName: "string",
diskType: "string",
ipWhite: "string",
maintainEndTime: "string",
autoRenew: false,
diskSize: 0,
enablePublic: false,
password: "string",
clusterName: "string",
period: 0,
periodUnit: "string",
securityGroups: ["string"],
tags: {
string: "string",
},
autoRenewPeriod: 0,
zoneId: "string",
});
type: alicloud:cassandra:Cluster
properties:
autoRenew: false
autoRenewPeriod: 0
clusterName: string
dataCenterName: string
diskSize: 0
diskType: string
enablePublic: false
instanceType: string
ipWhite: string
maintainEndTime: string
maintainStartTime: string
majorVersion: string
nodeCount: 0
password: string
payType: string
period: 0
periodUnit: string
securityGroups:
- string
tags:
string: string
vswitchId: string
zoneId: string
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Cluster resource accepts the following input properties:
- Instance
Type string - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- Major
Version string - Cassandra major version. Now only support version
3.11
. - Node
Count int - The node count of Cassandra dataCenter-1 default to 2.
- Pay
Type string - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - Vswitch
Id string - The vswitch_id of dataCenter-1, can not empty.
- Auto
Renew bool - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - Auto
Renew intPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - Cluster
Name string - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Data
Center stringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Disk
Size int - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- Disk
Type string - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - Enable
Public bool - Ip
White string - Set the instance's IP whitelist in VPC network.
- Maintain
End stringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Password string
- Period int
- Period
Unit string - Security
Groups List<string> A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Zone
Id string - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- Instance
Type string - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- Major
Version string - Cassandra major version. Now only support version
3.11
. - Node
Count int - The node count of Cassandra dataCenter-1 default to 2.
- Pay
Type string - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - Vswitch
Id string - The vswitch_id of dataCenter-1, can not empty.
- Auto
Renew bool - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - Auto
Renew intPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - Cluster
Name string - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Data
Center stringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Disk
Size int - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- Disk
Type string - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - Enable
Public bool - Ip
White string - Set the instance's IP whitelist in VPC network.
- Maintain
End stringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Password string
- Period int
- Period
Unit string - Security
Groups []string A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- map[string]string
- A mapping of tags to assign to the resource.
- Zone
Id string - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- instance
Type String - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- major
Version String - Cassandra major version. Now only support version
3.11
. - node
Count Integer - The node count of Cassandra dataCenter-1 default to 2.
- pay
Type String - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - vswitch
Id String - The vswitch_id of dataCenter-1, can not empty.
- auto
Renew Boolean - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto
Renew IntegerPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster
Name String - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data
Center StringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk
Size Integer - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk
Type String - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable
Public Boolean - ip
White String - Set the instance's IP whitelist in VPC network.
- maintain
End StringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain
Start StringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- password String
- period Integer
- period
Unit String - security
Groups List<String> A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Map<String,String>
- A mapping of tags to assign to the resource.
- zone
Id String - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- instance
Type string - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- major
Version string - Cassandra major version. Now only support version
3.11
. - node
Count number - The node count of Cassandra dataCenter-1 default to 2.
- pay
Type string - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - vswitch
Id string - The vswitch_id of dataCenter-1, can not empty.
- auto
Renew boolean - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto
Renew numberPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster
Name string - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data
Center stringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk
Size number - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk
Type string - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable
Public boolean - ip
White string - Set the instance's IP whitelist in VPC network.
- maintain
End stringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain
Start stringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- password string
- period number
- period
Unit string - security
Groups string[] A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- zone
Id string - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- instance_
type str - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- major_
version str - Cassandra major version. Now only support version
3.11
. - node_
count int - The node count of Cassandra dataCenter-1 default to 2.
- pay_
type str - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - vswitch_
id str - The vswitch_id of dataCenter-1, can not empty.
- auto_
renew bool - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto_
renew_ intperiod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster_
name str - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data_
center_ strname - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk_
size int - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk_
type str - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable_
public bool - ip_
white str - Set the instance's IP whitelist in VPC network.
- maintain_
end_ strtime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain_
start_ strtime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- password str
- period int
- period_
unit str - security_
groups Sequence[str] A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- zone_
id str - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- instance
Type String - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- major
Version String - Cassandra major version. Now only support version
3.11
. - node
Count Number - The node count of Cassandra dataCenter-1 default to 2.
- pay
Type String - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - vswitch
Id String - The vswitch_id of dataCenter-1, can not empty.
- auto
Renew Boolean - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto
Renew NumberPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster
Name String - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data
Center StringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk
Size Number - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk
Type String - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable
Public Boolean - ip
White String - Set the instance's IP whitelist in VPC network.
- maintain
End StringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain
Start StringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- password String
- period Number
- period
Unit String - security
Groups List<String> A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Map<String>
- A mapping of tags to assign to the resource.
- zone
Id String - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Points List<string> - Status string
- Id string
- The provider-assigned unique ID for this managed resource.
- Public
Points []string - Status string
- id String
- The provider-assigned unique ID for this managed resource.
- public
Points List<String> - status String
- id string
- The provider-assigned unique ID for this managed resource.
- public
Points string[] - status string
- id str
- The provider-assigned unique ID for this managed resource.
- public_
points Sequence[str] - status str
- id String
- The provider-assigned unique ID for this managed resource.
- public
Points List<String> - status String
Look up Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
cluster_name: Optional[str] = None,
data_center_name: Optional[str] = None,
disk_size: Optional[int] = None,
disk_type: Optional[str] = None,
enable_public: Optional[bool] = None,
instance_type: Optional[str] = None,
ip_white: Optional[str] = None,
maintain_end_time: Optional[str] = None,
maintain_start_time: Optional[str] = None,
major_version: Optional[str] = None,
node_count: Optional[int] = None,
password: Optional[str] = None,
pay_type: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
public_points: Optional[Sequence[str]] = None,
security_groups: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Renew bool - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - Auto
Renew intPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - Cluster
Name string - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Data
Center stringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Disk
Size int - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- Disk
Type string - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - Enable
Public bool - Instance
Type string - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- Ip
White string - Set the instance's IP whitelist in VPC network.
- Maintain
End stringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Major
Version string - Cassandra major version. Now only support version
3.11
. - Node
Count int - The node count of Cassandra dataCenter-1 default to 2.
- Password string
- Pay
Type string - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - Period int
- Period
Unit string - Public
Points List<string> - Security
Groups List<string> A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Status string
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vswitch
Id string - The vswitch_id of dataCenter-1, can not empty.
- Zone
Id string - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- Auto
Renew bool - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - Auto
Renew intPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - Cluster
Name string - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Data
Center stringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - Disk
Size int - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- Disk
Type string - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - Enable
Public bool - Instance
Type string - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- Ip
White string - Set the instance's IP whitelist in VPC network.
- Maintain
End stringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- Major
Version string - Cassandra major version. Now only support version
3.11
. - Node
Count int - The node count of Cassandra dataCenter-1 default to 2.
- Password string
- Pay
Type string - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - Period int
- Period
Unit string - Public
Points []string - Security
Groups []string A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Status string
- map[string]string
- A mapping of tags to assign to the resource.
- Vswitch
Id string - The vswitch_id of dataCenter-1, can not empty.
- Zone
Id string - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- auto
Renew Boolean - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto
Renew IntegerPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster
Name String - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data
Center StringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk
Size Integer - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk
Type String - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable
Public Boolean - instance
Type String - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- ip
White String - Set the instance's IP whitelist in VPC network.
- maintain
End StringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain
Start StringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- major
Version String - Cassandra major version. Now only support version
3.11
. - node
Count Integer - The node count of Cassandra dataCenter-1 default to 2.
- password String
- pay
Type String - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - period Integer
- period
Unit String - public
Points List<String> - security
Groups List<String> A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- status String
- Map<String,String>
- A mapping of tags to assign to the resource.
- vswitch
Id String - The vswitch_id of dataCenter-1, can not empty.
- zone
Id String - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- auto
Renew boolean - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto
Renew numberPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster
Name string - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data
Center stringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk
Size number - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk
Type string - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable
Public boolean - instance
Type string - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- ip
White string - Set the instance's IP whitelist in VPC network.
- maintain
End stringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain
Start stringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- major
Version string - Cassandra major version. Now only support version
3.11
. - node
Count number - The node count of Cassandra dataCenter-1 default to 2.
- password string
- pay
Type string - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - period number
- period
Unit string - public
Points string[] - security
Groups string[] A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- status string
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vswitch
Id string - The vswitch_id of dataCenter-1, can not empty.
- zone
Id string - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- auto_
renew bool - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto_
renew_ intperiod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster_
name str - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data_
center_ strname - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk_
size int - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk_
type str - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable_
public bool - instance_
type str - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- ip_
white str - Set the instance's IP whitelist in VPC network.
- maintain_
end_ strtime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain_
start_ strtime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- major_
version str - Cassandra major version. Now only support version
3.11
. - node_
count int - The node count of Cassandra dataCenter-1 default to 2.
- password str
- pay_
type str - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - period int
- period_
unit str - public_
points Sequence[str] - security_
groups Sequence[str] A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- status str
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- vswitch_
id str - The vswitch_id of dataCenter-1, can not empty.
- zone_
id str - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
- auto
Renew Boolean - Auto renew of dataCenter-1,
true
orfalse
. System default tofalse
, valid when pay_type = PrePaid. - auto
Renew NumberPeriod - Period of dataCenter-1 auto renew, if auto renew is
true
, one of1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60
, valid when pay_type = Subscription. Unit: month. - cluster
Name String - Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - data
Center StringName - Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period
.
, underline_
, or dash-
are permitted. - disk
Size Number - User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
- Custom storage space; value range: [160, 2000].
- 80-GB increments.
- disk
Type String - The disk type of Cassandra dataCenter-1. Valid values are
cloud_ssd
,cloud_efficiency
,local_hdd_pro
,local_ssd_pro
, local_disk size is fixed. - enable
Public Boolean - instance
Type String - Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- ip
White String - Set the instance's IP whitelist in VPC network.
- maintain
End StringTime - The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- maintain
Start StringTime - The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
- major
Version String - Cassandra major version. Now only support version
3.11
. - node
Count Number - The node count of Cassandra dataCenter-1 default to 2.
- password String
- pay
Type String - The pay type of Cassandra dataCenter-1. Valid values are
Subscription
,PayAsYouGo
,System default toPayAsYouGo
. - period Number
- period
Unit String - public
Points List<String> - security
Groups List<String> A list of security group ids to associate with.
NOTE: Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- status String
- Map<String>
- A mapping of tags to assign to the resource.
- vswitch
Id String - The vswitch_id of dataCenter-1, can not empty.
- zone
Id String - The Zone to launch the Cassandra cluster. If vswitch_id is not empty, this zone_id can be "" or consistent.
Import
Cassandra cluster can be imported using the id, e.g.
$ pulumi import alicloud:cassandra/cluster:Cluster example cds-wz9sr400dd7xxxxx
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.