Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

DataCenter

Provides a Cassandra dataCenter resource supports replica set dataCenters 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: Create a cassandra dataCenter need a clusterId,so need create a cassandra cluster first.

NOTE: The following regions support create Vpc network Cassandra cluster. The official website mark more regions. Or you can call DescribeRegions.

NOTE: Create Cassandra dataCenter or change dataCenter type and storage would cost 30 minutes. Please make full preparation.

Example Usage

Create a cassandra dataCenter

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultCluster = new AliCloud.Cassandra.Cluster("defaultCluster", new AliCloud.Cassandra.ClusterArgs
        {
            ClusterName = "cassandra-cluster-name-tf",
            DataCenterName = "dc-1",
            AutoRenew = false,
            InstanceType = "cassandra.c.large",
            MajorVersion = "3.11",
            NodeCount = 2,
            PayType = "PayAsYouGo",
            VswitchId = "vsw-xxxx1",
            DiskSize = 160,
            DiskType = "cloud_ssd",
            MaintainStartTime = "18:00Z",
            MaintainEndTime = "20:00Z",
            IpWhite = "127.0.0.1",
        });
        var defaultDataCenter = new AliCloud.Cassandra.DataCenter("defaultDataCenter", new AliCloud.Cassandra.DataCenterArgs
        {
            ClusterId = defaultCluster.Id,
            DataCenterName = "dc-2",
            AutoRenew = false,
            InstanceType = "cassandra.c.large",
            NodeCount = 2,
            PayType = "PayAsYouGo",
            VswitchId = "vsw-xxxx2",
            DiskSize = 160,
            DiskType = "cloud_ssd",
        });
    }

}
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 {
		defaultCluster, err := cassandra.NewCluster(ctx, "defaultCluster", &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-xxxx1"),
			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
		}
		_, err = cassandra.NewDataCenter(ctx, "defaultDataCenter", &cassandra.DataCenterArgs{
			ClusterId:      defaultCluster.ID(),
			DataCenterName: pulumi.String("dc-2"),
			AutoRenew:      pulumi.Bool(false),
			InstanceType:   pulumi.String("cassandra.c.large"),
			NodeCount:      pulumi.Int(2),
			PayType:        pulumi.String("PayAsYouGo"),
			VswitchId:      pulumi.String("vsw-xxxx2"),
			DiskSize:       pulumi.Int(160),
			DiskType:       pulumi.String("cloud_ssd"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_cluster = alicloud.cassandra.Cluster("defaultCluster",
    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-xxxx1",
    disk_size=160,
    disk_type="cloud_ssd",
    maintain_start_time="18:00Z",
    maintain_end_time="20:00Z",
    ip_white="127.0.0.1")
default_data_center = alicloud.cassandra.DataCenter("defaultDataCenter",
    cluster_id=default_cluster.id,
    data_center_name="dc-2",
    auto_renew=False,
    instance_type="cassandra.c.large",
    node_count=2,
    pay_type="PayAsYouGo",
    vswitch_id="vsw-xxxx2",
    disk_size=160,
    disk_type="cloud_ssd")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultCluster = new alicloud.cassandra.Cluster("defaultCluster", {
    clusterName: "cassandra-cluster-name-tf",
    dataCenterName: "dc-1",
    autoRenew: "false",
    instanceType: "cassandra.c.large",
    majorVersion: "3.11",
    nodeCount: "2",
    payType: "PayAsYouGo",
    vswitchId: "vsw-xxxx1",
    diskSize: "160",
    diskType: "cloud_ssd",
    maintainStartTime: "18:00Z",
    maintainEndTime: "20:00Z",
    ipWhite: "127.0.0.1",
});
const defaultDataCenter = new alicloud.cassandra.DataCenter("defaultDataCenter", {
    clusterId: defaultCluster.id,
    dataCenterName: "dc-2",
    autoRenew: "false",
    instanceType: "cassandra.c.large",
    nodeCount: "2",
    payType: "PayAsYouGo",
    vswitchId: "vsw-xxxx2",
    diskSize: "160",
    diskType: "cloud_ssd",
});

Coming soon!

Create a DataCenter Resource

new DataCenter(name: string, args: DataCenterArgs, opts?: CustomResourceOptions);
@overload
def DataCenter(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               auto_renew: Optional[bool] = None,
               auto_renew_period: Optional[int] = None,
               cluster_id: 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,
               node_count: Optional[int] = None,
               pay_type: Optional[str] = None,
               period: Optional[int] = None,
               period_unit: Optional[str] = None,
               vswitch_id: Optional[str] = None,
               zone_id: Optional[str] = None)
@overload
def DataCenter(resource_name: str,
               args: DataCenterArgs,
               opts: Optional[ResourceOptions] = None)
func NewDataCenter(ctx *Context, name string, args DataCenterArgs, opts ...ResourceOption) (*DataCenter, error)
public DataCenter(string name, DataCenterArgs args, CustomResourceOptions? opts = null)
public DataCenter(String name, DataCenterArgs args)
public DataCenter(String name, DataCenterArgs args, CustomResourceOptions options)
type: alicloud:cassandra:DataCenter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DataCenterArgs
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 DataCenterArgs
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 DataCenterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DataCenterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DataCenterArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DataCenter 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 DataCenter resource accepts the following input properties:

ClusterId string

Cassandra cluster id of dataCenter-2 belongs to.

InstanceType string

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

NodeCount int

The node count of Cassandra dataCenter-2, default to 2.

PayType string

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

VswitchId string

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

AutoRenew bool

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

AutoRenewPeriod int

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

DataCenterName string

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

DiskSize int

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
DiskType string

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

EnablePublic bool
Period int
PeriodUnit string
ZoneId string

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

ClusterId string

Cassandra cluster id of dataCenter-2 belongs to.

InstanceType string

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

NodeCount int

The node count of Cassandra dataCenter-2, default to 2.

PayType string

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

VswitchId string

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

AutoRenew bool

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

AutoRenewPeriod int

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

DataCenterName string

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

DiskSize int

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
DiskType string

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

EnablePublic bool
Period int
PeriodUnit string
ZoneId string

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

clusterId String

Cassandra cluster id of dataCenter-2 belongs to.

instanceType String

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

nodeCount Integer

The node count of Cassandra dataCenter-2, default to 2.

payType String

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

vswitchId String

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

autoRenew Boolean

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

autoRenewPeriod Integer

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

dataCenterName String

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

diskSize Integer

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
diskType String

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enablePublic Boolean
period Integer
periodUnit String
zoneId String

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

clusterId string

Cassandra cluster id of dataCenter-2 belongs to.

instanceType string

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

nodeCount number

The node count of Cassandra dataCenter-2, default to 2.

payType string

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

vswitchId string

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

autoRenew boolean

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

autoRenewPeriod number

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

dataCenterName string

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

diskSize number

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
diskType string

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enablePublic boolean
period number
periodUnit string
zoneId string

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

cluster_id str

Cassandra cluster id of dataCenter-2 belongs to.

instance_type str

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

node_count int

The node count of Cassandra dataCenter-2, default to 2.

pay_type str

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

vswitch_id str

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

auto_renew bool

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

auto_renew_period int

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

data_center_name str

Cassandra dataCenter-2 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 one core 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-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enable_public bool
period int
period_unit str
zone_id str

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

clusterId String

Cassandra cluster id of dataCenter-2 belongs to.

instanceType String

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

nodeCount Number

The node count of Cassandra dataCenter-2, default to 2.

payType String

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

vswitchId String

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

autoRenew Boolean

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

autoRenewPeriod Number

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

dataCenterName String

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

diskSize Number

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
diskType String

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enablePublic Boolean
period Number
periodUnit String
zoneId String

The Zone to launch the Cassandra dataCenter-2. 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 DataCenter resource produces the following output properties:

DataCenterId string
Id string

The provider-assigned unique ID for this managed resource.

PublicPoints List<string>
Status string
DataCenterId string
Id string

The provider-assigned unique ID for this managed resource.

PublicPoints []string
Status string
dataCenterId String
id String

The provider-assigned unique ID for this managed resource.

publicPoints List
status String
dataCenterId string
id string

The provider-assigned unique ID for this managed resource.

publicPoints string[]
status string
data_center_id str
id str

The provider-assigned unique ID for this managed resource.

public_points Sequence[str]
status str
dataCenterId String
id String

The provider-assigned unique ID for this managed resource.

publicPoints List
status String

Look up an Existing DataCenter Resource

Get an existing DataCenter 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?: DataCenterState, opts?: CustomResourceOptions): DataCenter
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_renew: Optional[bool] = None,
        auto_renew_period: Optional[int] = None,
        cluster_id: Optional[str] = None,
        data_center_id: 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,
        node_count: Optional[int] = None,
        pay_type: Optional[str] = None,
        period: Optional[int] = None,
        period_unit: Optional[str] = None,
        public_points: Optional[Sequence[str]] = None,
        status: Optional[str] = None,
        vswitch_id: Optional[str] = None,
        zone_id: Optional[str] = None) -> DataCenter
func GetDataCenter(ctx *Context, name string, id IDInput, state *DataCenterState, opts ...ResourceOption) (*DataCenter, error)
public static DataCenter Get(string name, Input<string> id, DataCenterState? state, CustomResourceOptions? opts = null)
public static DataCenter get(String name, Output<String> id, DataCenterState 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.
The following state arguments are supported:
AutoRenew bool

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

AutoRenewPeriod int

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

ClusterId string

Cassandra cluster id of dataCenter-2 belongs to.

DataCenterId string
DataCenterName string

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

DiskSize int

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
DiskType string

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

EnablePublic bool
InstanceType string

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

NodeCount int

The node count of Cassandra dataCenter-2, default to 2.

PayType string

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

Period int
PeriodUnit string
PublicPoints List<string>
Status string
VswitchId string

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

ZoneId string

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

AutoRenew bool

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

AutoRenewPeriod int

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

ClusterId string

Cassandra cluster id of dataCenter-2 belongs to.

DataCenterId string
DataCenterName string

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

DiskSize int

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
DiskType string

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

EnablePublic bool
InstanceType string

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

NodeCount int

The node count of Cassandra dataCenter-2, default to 2.

PayType string

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

Period int
PeriodUnit string
PublicPoints []string
Status string
VswitchId string

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

ZoneId string

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

autoRenew Boolean

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

autoRenewPeriod Integer

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

clusterId String

Cassandra cluster id of dataCenter-2 belongs to.

dataCenterId String
dataCenterName String

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

diskSize Integer

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
diskType String

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enablePublic Boolean
instanceType String

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

nodeCount Integer

The node count of Cassandra dataCenter-2, default to 2.

payType String

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

period Integer
periodUnit String
publicPoints List
status String
vswitchId String

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

zoneId String

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

autoRenew boolean

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

autoRenewPeriod number

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

clusterId string

Cassandra cluster id of dataCenter-2 belongs to.

dataCenterId string
dataCenterName string

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

diskSize number

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
diskType string

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enablePublic boolean
instanceType string

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

nodeCount number

The node count of Cassandra dataCenter-2, default to 2.

payType string

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

period number
periodUnit string
publicPoints string[]
status string
vswitchId string

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

zoneId string

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

auto_renew bool

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

auto_renew_period int

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

cluster_id str

Cassandra cluster id of dataCenter-2 belongs to.

data_center_id str
data_center_name str

Cassandra dataCenter-2 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 one core 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-2. 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.

node_count int

The node count of Cassandra dataCenter-2, default to 2.

pay_type str

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

period int
period_unit str
public_points Sequence[str]
status str
vswitch_id str

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

zone_id str

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

autoRenew Boolean

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

autoRenewPeriod Number

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

clusterId String

Cassandra cluster id of dataCenter-2 belongs to.

dataCenterId String
dataCenterName String

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

diskSize Number

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

  • Custom storage space; value range: [160, 2000].
  • 80-GB increments.
diskType String

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

enablePublic Boolean
instanceType String

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

nodeCount Number

The node count of Cassandra dataCenter-2, default to 2.

payType String

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

period Number
periodUnit String
publicPoints List
status String
vswitchId String

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

zoneId String

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.

Import

If you need full function, please import Cassandra cluster first. Cassandra dataCenter can be imported using the dcId:clusterId, e.g.

 $ pulumi import alicloud:cassandra/dataCenter:DataCenter dc_2 cn-shenxxxx-x:cds-wz933ryoaurxxxxx

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.