alicloud.cassandra.DataCenter
Explore with Pulumi AI
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.
DEPRECATED: This resource has been deprecated from version
1.220.0
.
Example Usage
Create a cassandra dataCenter
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-xxxx1",
diskSize: 160,
diskType: "cloud_ssd",
maintainStartTime: "18:00Z",
maintainEndTime: "20:00Z",
ipWhite: "127.0.0.1",
});
const defaultDataCenter = new alicloud.cassandra.DataCenter("default", {
clusterId: _default.id,
dataCenterName: "dc-2",
autoRenew: false,
instanceType: "cassandra.c.large",
nodeCount: 2,
payType: "PayAsYouGo",
vswitchId: "vsw-xxxx2",
diskSize: 160,
diskType: "cloud_ssd",
});
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-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("default",
cluster_id=default.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")
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-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, "default", &cassandra.DataCenterArgs{
ClusterId: _default.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
})
}
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-xxxx1",
DiskSize = 160,
DiskType = "cloud_ssd",
MaintainStartTime = "18:00Z",
MaintainEndTime = "20:00Z",
IpWhite = "127.0.0.1",
});
var defaultDataCenter = new AliCloud.Cassandra.DataCenter("default", new()
{
ClusterId = @default.Id,
DataCenterName = "dc-2",
AutoRenew = false,
InstanceType = "cassandra.c.large",
NodeCount = 2,
PayType = "PayAsYouGo",
VswitchId = "vsw-xxxx2",
DiskSize = 160,
DiskType = "cloud_ssd",
});
});
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 com.pulumi.alicloud.cassandra.DataCenter;
import com.pulumi.alicloud.cassandra.DataCenterArgs;
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-xxxx1")
.diskSize("160")
.diskType("cloud_ssd")
.maintainStartTime("18:00Z")
.maintainEndTime("20:00Z")
.ipWhite("127.0.0.1")
.build());
var defaultDataCenter = new DataCenter("defaultDataCenter", DataCenterArgs.builder()
.clusterId(default_.id())
.dataCenterName("dc-2")
.autoRenew("false")
.instanceType("cassandra.c.large")
.nodeCount("2")
.payType("PayAsYouGo")
.vswitchId("vsw-xxxx2")
.diskSize("160")
.diskType("cloud_ssd")
.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-xxxx1
diskSize: '160'
diskType: cloud_ssd
maintainStartTime: 18:00Z
maintainEndTime: 20:00Z
ipWhite: 127.0.0.1
defaultDataCenter:
type: alicloud:cassandra:DataCenter
name: default
properties:
clusterId: ${default.id}
dataCenterName: dc-2
autoRenew: 'false'
instanceType: cassandra.c.large
nodeCount: '2'
payType: PayAsYouGo
vswitchId: vsw-xxxx2
diskSize: '160'
diskType: cloud_ssd
This is a example for class netType dataCenter. You can find more detail with the examples/cassandra_data_center dir.
Create DataCenter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataCenter(name: string, args: DataCenterArgs, opts?: CustomResourceOptions);
@overload
def DataCenter(resource_name: str,
args: DataCenterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataCenter(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_type: Optional[str] = None,
vswitch_id: Optional[str] = None,
cluster_id: Optional[str] = None,
pay_type: Optional[str] = None,
node_count: Optional[int] = None,
data_center_name: Optional[str] = None,
enable_public: Optional[bool] = None,
disk_type: Optional[str] = None,
disk_size: Optional[int] = None,
auto_renew: Optional[bool] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
auto_renew_period: Optional[int] = None,
zone_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataCenterResource = new AliCloud.Cassandra.DataCenter("dataCenterResource", new()
{
InstanceType = "string",
VswitchId = "string",
ClusterId = "string",
PayType = "string",
NodeCount = 0,
DataCenterName = "string",
EnablePublic = false,
DiskType = "string",
DiskSize = 0,
AutoRenew = false,
Period = 0,
PeriodUnit = "string",
AutoRenewPeriod = 0,
ZoneId = "string",
});
example, err := cassandra.NewDataCenter(ctx, "dataCenterResource", &cassandra.DataCenterArgs{
InstanceType: pulumi.String("string"),
VswitchId: pulumi.String("string"),
ClusterId: pulumi.String("string"),
PayType: pulumi.String("string"),
NodeCount: pulumi.Int(0),
DataCenterName: pulumi.String("string"),
EnablePublic: pulumi.Bool(false),
DiskType: pulumi.String("string"),
DiskSize: pulumi.Int(0),
AutoRenew: pulumi.Bool(false),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
AutoRenewPeriod: pulumi.Int(0),
ZoneId: pulumi.String("string"),
})
var dataCenterResource = new DataCenter("dataCenterResource", DataCenterArgs.builder()
.instanceType("string")
.vswitchId("string")
.clusterId("string")
.payType("string")
.nodeCount(0)
.dataCenterName("string")
.enablePublic(false)
.diskType("string")
.diskSize(0)
.autoRenew(false)
.period(0)
.periodUnit("string")
.autoRenewPeriod(0)
.zoneId("string")
.build());
data_center_resource = alicloud.cassandra.DataCenter("dataCenterResource",
instance_type="string",
vswitch_id="string",
cluster_id="string",
pay_type="string",
node_count=0,
data_center_name="string",
enable_public=False,
disk_type="string",
disk_size=0,
auto_renew=False,
period=0,
period_unit="string",
auto_renew_period=0,
zone_id="string")
const dataCenterResource = new alicloud.cassandra.DataCenter("dataCenterResource", {
instanceType: "string",
vswitchId: "string",
clusterId: "string",
payType: "string",
nodeCount: 0,
dataCenterName: "string",
enablePublic: false,
diskType: "string",
diskSize: 0,
autoRenew: false,
period: 0,
periodUnit: "string",
autoRenewPeriod: 0,
zoneId: "string",
});
type: alicloud:cassandra:DataCenter
properties:
autoRenew: false
autoRenewPeriod: 0
clusterId: string
dataCenterName: string
diskSize: 0
diskType: string
enablePublic: false
instanceType: string
nodeCount: 0
payType: string
period: 0
periodUnit: string
vswitchId: string
zoneId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Auto
Renew bool - Auto renew of dataCenter-2,
true
orfalse
. 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- Auto
Renew bool - Auto renew of dataCenter-2,
true
orfalse
. 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 Integer - 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- auto
Renew Boolean - Auto renew of dataCenter-2,
true
orfalse
. System default tofalse
, valid when pay_type = Subscription. - auto
Renew IntegerPeriod - 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 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.
- 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 Integer
- 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- auto
Renew boolean - Auto renew of dataCenter-2,
true
orfalse
. 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 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 toPayAsYouGo
. - vswitch_
id str The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- auto_
renew bool - Auto renew of dataCenter-2,
true
orfalse
. 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_ 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 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.
- 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- auto
Renew Boolean - Auto renew of dataCenter-2,
true
orfalse
. 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.
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 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_ strid - id str
- The provider-assigned unique ID for this managed resource.
- public_
points Sequence[str] - status str
- data
Center StringId - id String
- The provider-assigned unique ID for this managed resource.
- public
Points List<String> - status String
Look up 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.
- Auto
Renew bool - Auto renew of dataCenter-2,
true
orfalse
. 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- 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,
true
orfalse
. 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- 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,
true
orfalse
. System default tofalse
, valid when pay_type = Subscription. - auto
Renew IntegerPeriod - 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 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.
- 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 Integer - 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 Integer
- 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- 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,
true
orfalse
. 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- 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,
true
orfalse
. 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 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 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 toPayAsYouGo
. - 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.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- zone_
id str - 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,
true
orfalse
. 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 List<String> - status String
- vswitch
Id String The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
NOTE: Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, auto_renew_period and so on) will be supported in the furture.
- zone
Id 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
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.