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.
Create a DataCenter Resource
new DataCenter(name: string, args: DataCenterArgs, opts?: CustomResourceOptions);def DataCenter(resource_name, opts=None, auto_renew=None, auto_renew_period=None, cluster_id=None, data_center_name=None, disk_size=None, disk_type=None, enable_public=None, instance_type=None, node_count=None, pay_type=None, period=None, period_unit=None, vswitch_id=None, zone_id=None, __props__=None);func NewDataCenter(ctx *Context, name string, args DataCenterArgs, opts ...ResourceOption) (*DataCenter, error)public DataCenter(string name, DataCenterArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
DataCenter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DataCenter resource accepts the following input properties:
- Cluster
Id string Cassandra cluster id of dataCenter-2 belongs to.
- Instance
Type string 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 string The pay type of Cassandra dataCenter-2. Valid values are
Subscription,PayAsYouGo. System default toPayAsYouGo.- Vswitch
Id string The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
- Auto
Renew bool Auto renew of dataCenter-2,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- Auto
Renew intPeriod Period of dataCenter-2 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.- Data
Center stringName 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 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.- Enable
Public bool - Period int
- Period
Unit string - Zone
Id string The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be “” or consistent.
- Cluster
Id string Cassandra cluster id of dataCenter-2 belongs to.
- Instance
Type string 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 string The pay type of Cassandra dataCenter-2. Valid values are
Subscription,PayAsYouGo. System default toPayAsYouGo.- Vswitch
Id string The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
- Auto
Renew bool Auto renew of dataCenter-2,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- Auto
Renew intPeriod Period of dataCenter-2 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.- Data
Center stringName 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 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.- Enable
Public bool - Period int
- Period
Unit string - Zone
Id string The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be “” or consistent.
- cluster
Id string Cassandra cluster id of dataCenter-2 belongs to.
- instance
Type string Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- node
Count number The node count of Cassandra dataCenter-2, default to 2.
- pay
Type string The pay type of Cassandra dataCenter-2. Valid values are
Subscription,PayAsYouGo. System default toPayAsYouGo.- vswitch
Id string The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
- auto
Renew boolean Auto renew of dataCenter-2,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- auto
Renew numberPeriod Period of dataCenter-2 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.- data
Center stringName 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 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.
- disk
Type 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.- enable
Public boolean - period number
- period
Unit string - zone
Id 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 float 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 toPayAsYouGo.- 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,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- auto_
renew_ floatperiod Period of dataCenter-2 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.- data_
center_ strname 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 float 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 float
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataCenter resource produces the following output properties:
- Data
Center stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Public
Points List<string> - Status string
- Data
Center stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Public
Points []string - Status string
- data
Center stringId - id string
- The provider-assigned unique ID for this managed resource.
- public
Points string[] - status string
- data_
center_ strid - id str
- The provider-assigned unique ID for this managed resource.
- public_
points List[str] - status str
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): DataCenterstatic get(resource_name, id, opts=None, auto_renew=None, auto_renew_period=None, cluster_id=None, data_center_id=None, data_center_name=None, disk_size=None, disk_type=None, enable_public=None, instance_type=None, node_count=None, pay_type=None, period=None, period_unit=None, public_points=None, status=None, vswitch_id=None, zone_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Auto
Renew bool Auto renew of dataCenter-2,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- Auto
Renew intPeriod Period of dataCenter-2 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
Id string Cassandra cluster id of dataCenter-2 belongs to.
- Data
Center stringId - Data
Center stringName 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 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.- Enable
Public bool - Instance
Type string 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 string The pay type of Cassandra dataCenter-2. Valid values are
Subscription,PayAsYouGo. System default toPayAsYouGo.- Period int
- Period
Unit string - Public
Points List<string> - Status string
- Vswitch
Id string The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
- Zone
Id 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,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- Auto
Renew intPeriod Period of dataCenter-2 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
Id string Cassandra cluster id of dataCenter-2 belongs to.
- Data
Center stringId - Data
Center stringName 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 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.- Enable
Public bool - Instance
Type string 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 string The pay type of Cassandra dataCenter-2. Valid values are
Subscription,PayAsYouGo. System default toPayAsYouGo.- Period int
- Period
Unit string - Public
Points []string - Status string
- Vswitch
Id string The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
- Zone
Id string The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be “” or consistent.
- auto
Renew boolean Auto renew of dataCenter-2,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- auto
Renew numberPeriod Period of dataCenter-2 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
Id string Cassandra cluster id of dataCenter-2 belongs to.
- data
Center stringId - data
Center stringName 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 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.
- disk
Type 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.- enable
Public boolean - instance
Type string Instance specification. See Instance specifications. Or you can call describeInstanceType api.
- node
Count number The node count of Cassandra dataCenter-2, default to 2.
- pay
Type string The pay type of Cassandra dataCenter-2. Valid values are
Subscription,PayAsYouGo. System default toPayAsYouGo.- period number
- period
Unit string - public
Points string[] - status string
- vswitch
Id string The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
- zone
Id 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,
trueorfalse. System default tofalse, valid when pay_type = Subscription.- auto_
renew_ floatperiod Period of dataCenter-2 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_
id str Cassandra cluster id of dataCenter-2 belongs to.
- data_
center_ strid - data_
center_ strname 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 float 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 float 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 toPayAsYouGo.- period float
- period_
unit str - public_
points List[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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.