alicloud.clickhouse.DbCluster
Explore with Pulumi AI
Provides a Click House DBCluster resource.
For information about Click House DBCluster and how to use it, see What is DBCluster.
NOTE: Available since v1.134.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const region = config.get("region") || "cn-hangzhou";
const name = config.get("name") || "tf-example";
const default = alicloud.clickhouse.getRegions({
regionId: region,
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "10.4.0.0/24",
vpcId: defaultNetwork.id,
zoneId: _default.then(_default => _default.regions?.[0]?.zoneIds?.[0]?.zoneId),
});
const defaultDbCluster = new alicloud.clickhouse.DbCluster("default", {
dbClusterVersion: "23.8",
category: "Basic",
dbClusterClass: "S8",
dbClusterNetworkType: "vpc",
dbNodeGroupCount: 1,
paymentType: "PayAsYouGo",
dbNodeStorage: "100",
storageType: "cloud_essd",
vswitchId: defaultSwitch.id,
vpcId: defaultNetwork.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
region = config.get("region")
if region is None:
region = "cn-hangzhou"
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.clickhouse.get_regions(region_id=region)
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="10.4.0.0/24",
vpc_id=default_network.id,
zone_id=default.regions[0].zone_ids[0].zone_id)
default_db_cluster = alicloud.clickhouse.DbCluster("default",
db_cluster_version="23.8",
category="Basic",
db_cluster_class="S8",
db_cluster_network_type="vpc",
db_node_group_count=1,
payment_type="PayAsYouGo",
db_node_storage="100",
storage_type="cloud_essd",
vswitch_id=default_switch.id,
vpc_id=default_network.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/clickhouse"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
region := "cn-hangzhou"
if param := cfg.Get("region"); param != "" {
region = param
}
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{
RegionId: pulumi.StringRef(region),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: pulumi.String(_default.Regions[0].ZoneIds[0].ZoneId),
})
if err != nil {
return err
}
_, err = clickhouse.NewDbCluster(ctx, "default", &clickhouse.DbClusterArgs{
DbClusterVersion: pulumi.String("23.8"),
Category: pulumi.String("Basic"),
DbClusterClass: pulumi.String("S8"),
DbClusterNetworkType: pulumi.String("vpc"),
DbNodeGroupCount: pulumi.Int(1),
PaymentType: pulumi.String("PayAsYouGo"),
DbNodeStorage: pulumi.String("100"),
StorageType: pulumi.String("cloud_essd"),
VswitchId: defaultSwitch.ID(),
VpcId: defaultNetwork.ID(),
})
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 config = new Config();
var region = config.Get("region") ?? "cn-hangzhou";
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.ClickHouse.GetRegions.Invoke(new()
{
RegionId = region,
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "10.4.0.0/24",
VpcId = defaultNetwork.Id,
ZoneId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.ZoneIds[0]?.ZoneId)),
});
var defaultDbCluster = new AliCloud.ClickHouse.DbCluster("default", new()
{
DbClusterVersion = "23.8",
Category = "Basic",
DbClusterClass = "S8",
DbClusterNetworkType = "vpc",
DbNodeGroupCount = 1,
PaymentType = "PayAsYouGo",
DbNodeStorage = "100",
StorageType = "cloud_essd",
VswitchId = defaultSwitch.Id,
VpcId = defaultNetwork.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.clickhouse.ClickhouseFunctions;
import com.pulumi.alicloud.clickhouse.inputs.GetRegionsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.clickhouse.DbCluster;
import com.pulumi.alicloud.clickhouse.DbClusterArgs;
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) {
final var config = ctx.config();
final var region = config.get("region").orElse("cn-hangzhou");
final var name = config.get("name").orElse("tf-example");
final var default = ClickhouseFunctions.getRegions(GetRegionsArgs.builder()
.regionId(region)
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/24")
.vpcId(defaultNetwork.id())
.zoneId(default_.regions()[0].zoneIds()[0].zoneId())
.build());
var defaultDbCluster = new DbCluster("defaultDbCluster", DbClusterArgs.builder()
.dbClusterVersion("23.8")
.category("Basic")
.dbClusterClass("S8")
.dbClusterNetworkType("vpc")
.dbNodeGroupCount("1")
.paymentType("PayAsYouGo")
.dbNodeStorage("100")
.storageType("cloud_essd")
.vswitchId(defaultSwitch.id())
.vpcId(defaultNetwork.id())
.build());
}
}
configuration:
region:
type: string
default: cn-hangzhou
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vswitchName: ${name}
cidrBlock: 10.4.0.0/24
vpcId: ${defaultNetwork.id}
zoneId: ${default.regions[0].zoneIds[0].zoneId}
defaultDbCluster:
type: alicloud:clickhouse:DbCluster
name: default
properties:
dbClusterVersion: '23.8'
category: Basic
dbClusterClass: S8
dbClusterNetworkType: vpc
dbNodeGroupCount: '1'
paymentType: PayAsYouGo
dbNodeStorage: '100'
storageType: cloud_essd
vswitchId: ${defaultSwitch.id}
vpcId: ${defaultNetwork.id}
variables:
default:
fn::invoke:
Function: alicloud:clickhouse:getRegions
Arguments:
regionId: ${region}
Create DbCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbCluster(name: string, args: DbClusterArgs, opts?: CustomResourceOptions);
@overload
def DbCluster(resource_name: str,
args: DbClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
storage_type: Optional[str] = None,
db_cluster_class: Optional[str] = None,
payment_type: Optional[str] = None,
db_cluster_network_type: Optional[str] = None,
db_cluster_version: Optional[str] = None,
db_node_group_count: Optional[int] = None,
db_node_storage: Optional[str] = None,
maintain_time: Optional[str] = None,
encryption_type: Optional[str] = None,
encryption_key: Optional[str] = None,
multi_zone_vswitch_lists: Optional[Sequence[DbClusterMultiZoneVswitchListArgs]] = None,
db_cluster_description: Optional[str] = None,
period: Optional[str] = None,
renewal_status: Optional[str] = None,
status: Optional[str] = None,
db_cluster_access_white_lists: Optional[Sequence[DbClusterDbClusterAccessWhiteListArgs]] = None,
used_time: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None)
func NewDbCluster(ctx *Context, name string, args DbClusterArgs, opts ...ResourceOption) (*DbCluster, error)
public DbCluster(string name, DbClusterArgs args, CustomResourceOptions? opts = null)
public DbCluster(String name, DbClusterArgs args)
public DbCluster(String name, DbClusterArgs args, CustomResourceOptions options)
type: alicloud:clickhouse:DbCluster
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 DbClusterArgs
- 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 DbClusterArgs
- 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 DbClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbClusterArgs
- 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 dbClusterResource = new AliCloud.ClickHouse.DbCluster("dbClusterResource", new()
{
Category = "string",
StorageType = "string",
DbClusterClass = "string",
PaymentType = "string",
DbClusterNetworkType = "string",
DbClusterVersion = "string",
DbNodeGroupCount = 0,
DbNodeStorage = "string",
MaintainTime = "string",
EncryptionType = "string",
EncryptionKey = "string",
MultiZoneVswitchLists = new[]
{
new AliCloud.ClickHouse.Inputs.DbClusterMultiZoneVswitchListArgs
{
VswitchId = "string",
ZoneId = "string",
},
},
DbClusterDescription = "string",
Period = "string",
RenewalStatus = "string",
Status = "string",
DbClusterAccessWhiteLists = new[]
{
new AliCloud.ClickHouse.Inputs.DbClusterDbClusterAccessWhiteListArgs
{
DbClusterIpArrayAttribute = "string",
DbClusterIpArrayName = "string",
SecurityIpList = "string",
},
},
UsedTime = "string",
VpcId = "string",
VswitchId = "string",
ZoneId = "string",
});
example, err := clickhouse.NewDbCluster(ctx, "dbClusterResource", &clickhouse.DbClusterArgs{
Category: pulumi.String("string"),
StorageType: pulumi.String("string"),
DbClusterClass: pulumi.String("string"),
PaymentType: pulumi.String("string"),
DbClusterNetworkType: pulumi.String("string"),
DbClusterVersion: pulumi.String("string"),
DbNodeGroupCount: pulumi.Int(0),
DbNodeStorage: pulumi.String("string"),
MaintainTime: pulumi.String("string"),
EncryptionType: pulumi.String("string"),
EncryptionKey: pulumi.String("string"),
MultiZoneVswitchLists: clickhouse.DbClusterMultiZoneVswitchListArray{
&clickhouse.DbClusterMultiZoneVswitchListArgs{
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
},
},
DbClusterDescription: pulumi.String("string"),
Period: pulumi.String("string"),
RenewalStatus: pulumi.String("string"),
Status: pulumi.String("string"),
DbClusterAccessWhiteLists: clickhouse.DbClusterDbClusterAccessWhiteListArray{
&clickhouse.DbClusterDbClusterAccessWhiteListArgs{
DbClusterIpArrayAttribute: pulumi.String("string"),
DbClusterIpArrayName: pulumi.String("string"),
SecurityIpList: pulumi.String("string"),
},
},
UsedTime: pulumi.String("string"),
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var dbClusterResource = new DbCluster("dbClusterResource", DbClusterArgs.builder()
.category("string")
.storageType("string")
.dbClusterClass("string")
.paymentType("string")
.dbClusterNetworkType("string")
.dbClusterVersion("string")
.dbNodeGroupCount(0)
.dbNodeStorage("string")
.maintainTime("string")
.encryptionType("string")
.encryptionKey("string")
.multiZoneVswitchLists(DbClusterMultiZoneVswitchListArgs.builder()
.vswitchId("string")
.zoneId("string")
.build())
.dbClusterDescription("string")
.period("string")
.renewalStatus("string")
.status("string")
.dbClusterAccessWhiteLists(DbClusterDbClusterAccessWhiteListArgs.builder()
.dbClusterIpArrayAttribute("string")
.dbClusterIpArrayName("string")
.securityIpList("string")
.build())
.usedTime("string")
.vpcId("string")
.vswitchId("string")
.zoneId("string")
.build());
db_cluster_resource = alicloud.clickhouse.DbCluster("dbClusterResource",
category="string",
storage_type="string",
db_cluster_class="string",
payment_type="string",
db_cluster_network_type="string",
db_cluster_version="string",
db_node_group_count=0,
db_node_storage="string",
maintain_time="string",
encryption_type="string",
encryption_key="string",
multi_zone_vswitch_lists=[{
"vswitch_id": "string",
"zone_id": "string",
}],
db_cluster_description="string",
period="string",
renewal_status="string",
status="string",
db_cluster_access_white_lists=[{
"db_cluster_ip_array_attribute": "string",
"db_cluster_ip_array_name": "string",
"security_ip_list": "string",
}],
used_time="string",
vpc_id="string",
vswitch_id="string",
zone_id="string")
const dbClusterResource = new alicloud.clickhouse.DbCluster("dbClusterResource", {
category: "string",
storageType: "string",
dbClusterClass: "string",
paymentType: "string",
dbClusterNetworkType: "string",
dbClusterVersion: "string",
dbNodeGroupCount: 0,
dbNodeStorage: "string",
maintainTime: "string",
encryptionType: "string",
encryptionKey: "string",
multiZoneVswitchLists: [{
vswitchId: "string",
zoneId: "string",
}],
dbClusterDescription: "string",
period: "string",
renewalStatus: "string",
status: "string",
dbClusterAccessWhiteLists: [{
dbClusterIpArrayAttribute: "string",
dbClusterIpArrayName: "string",
securityIpList: "string",
}],
usedTime: "string",
vpcId: "string",
vswitchId: "string",
zoneId: "string",
});
type: alicloud:clickhouse:DbCluster
properties:
category: string
dbClusterAccessWhiteLists:
- dbClusterIpArrayAttribute: string
dbClusterIpArrayName: string
securityIpList: string
dbClusterClass: string
dbClusterDescription: string
dbClusterNetworkType: string
dbClusterVersion: string
dbNodeGroupCount: 0
dbNodeStorage: string
encryptionKey: string
encryptionType: string
maintainTime: string
multiZoneVswitchLists:
- vswitchId: string
zoneId: string
paymentType: string
period: string
renewalStatus: string
status: string
storageType: string
usedTime: string
vpcId: string
vswitchId: string
zoneId: string
DbCluster 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 DbCluster resource accepts the following input properties:
- Category string
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - Db
Cluster stringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- Db
Cluster stringNetwork Type - The DBCluster network type. Valid values:
vpc
. - Db
Cluster stringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - Db
Node intGroup Count - The db node group count. The number should between 1 and 48.
- Db
Node stringStorage - The db node storage.
- Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - Storage
Type string - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - Db
Cluster List<Pulumi.Access White Lists Ali Cloud. Click House. Inputs. Db Cluster Db Cluster Access White List> - The db cluster access white list. See
db_cluster_access_white_list
below. - Db
Cluster stringDescription - The DBCluster description.
- Encryption
Key string - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - Encryption
Type string - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- Maintain
Time string - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - Multi
Zone List<Pulumi.Vswitch Lists Ali Cloud. Click House. Inputs. Db Cluster Multi Zone Vswitch List> - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - Period string
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - Renewal
Status string - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - Status string
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - Used
Time string - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - Vpc
Id string - The id of the VPC.
- Vswitch
Id string - The vswitch id of DBCluster.
- Zone
Id string - The zone ID of the instance.
- Category string
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - Db
Cluster stringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- Db
Cluster stringNetwork Type - The DBCluster network type. Valid values:
vpc
. - Db
Cluster stringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - Db
Node intGroup Count - The db node group count. The number should between 1 and 48.
- Db
Node stringStorage - The db node storage.
- Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - Storage
Type string - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - Db
Cluster []DbAccess White Lists Cluster Db Cluster Access White List Args - The db cluster access white list. See
db_cluster_access_white_list
below. - Db
Cluster stringDescription - The DBCluster description.
- Encryption
Key string - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - Encryption
Type string - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- Maintain
Time string - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - Multi
Zone []DbVswitch Lists Cluster Multi Zone Vswitch List Args - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - Period string
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - Renewal
Status string - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - Status string
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - Used
Time string - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - Vpc
Id string - The id of the VPC.
- Vswitch
Id string - The vswitch id of DBCluster.
- Zone
Id string - The zone ID of the instance.
- category String
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - db
Cluster StringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db
Cluster StringNetwork Type - The DBCluster network type. Valid values:
vpc
. - db
Cluster StringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db
Node IntegerGroup Count - The db node group count. The number should between 1 and 48.
- db
Node StringStorage - The db node storage.
- payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - storage
Type String - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - db
Cluster List<DbAccess White Lists Cluster Db Cluster Access White List> - The db cluster access white list. See
db_cluster_access_white_list
below. - db
Cluster StringDescription - The DBCluster description.
- encryption
Key String - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption
Type String - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain
Time String - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi
Zone List<DbVswitch Lists Cluster Multi Zone Vswitch List> - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - period String
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - renewal
Status String - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status String
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - used
Time String - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc
Id String - The id of the VPC.
- vswitch
Id String - The vswitch id of DBCluster.
- zone
Id String - The zone ID of the instance.
- category string
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - db
Cluster stringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db
Cluster stringNetwork Type - The DBCluster network type. Valid values:
vpc
. - db
Cluster stringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db
Node numberGroup Count - The db node group count. The number should between 1 and 48.
- db
Node stringStorage - The db node storage.
- payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - storage
Type string - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - db
Cluster DbAccess White Lists Cluster Db Cluster Access White List[] - The db cluster access white list. See
db_cluster_access_white_list
below. - db
Cluster stringDescription - The DBCluster description.
- encryption
Key string - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption
Type string - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain
Time string - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi
Zone DbVswitch Lists Cluster Multi Zone Vswitch List[] - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - period string
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - renewal
Status string - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status string
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - used
Time string - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc
Id string - The id of the VPC.
- vswitch
Id string - The vswitch id of DBCluster.
- zone
Id string - The zone ID of the instance.
- category str
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - db_
cluster_ strclass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db_
cluster_ strnetwork_ type - The DBCluster network type. Valid values:
vpc
. - db_
cluster_ strversion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db_
node_ intgroup_ count - The db node group count. The number should between 1 and 48.
- db_
node_ strstorage - The db node storage.
- payment_
type str - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - storage_
type str - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - db_
cluster_ Sequence[Dbaccess_ white_ lists Cluster Db Cluster Access White List Args] - The db cluster access white list. See
db_cluster_access_white_list
below. - db_
cluster_ strdescription - The DBCluster description.
- encryption_
key str - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption_
type str - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain_
time str - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi_
zone_ Sequence[Dbvswitch_ lists Cluster Multi Zone Vswitch List Args] - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - period str
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - renewal_
status str - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status str
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - used_
time str - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc_
id str - The id of the VPC.
- vswitch_
id str - The vswitch id of DBCluster.
- zone_
id str - The zone ID of the instance.
- category String
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - db
Cluster StringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db
Cluster StringNetwork Type - The DBCluster network type. Valid values:
vpc
. - db
Cluster StringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db
Node NumberGroup Count - The db node group count. The number should between 1 and 48.
- db
Node StringStorage - The db node storage.
- payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - storage
Type String - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - db
Cluster List<Property Map>Access White Lists - The db cluster access white list. See
db_cluster_access_white_list
below. - db
Cluster StringDescription - The DBCluster description.
- encryption
Key String - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption
Type String - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain
Time String - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi
Zone List<Property Map>Vswitch Lists - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - period String
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - renewal
Status String - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status String
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - used
Time String - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc
Id String - The id of the VPC.
- vswitch
Id String - The vswitch id of DBCluster.
- zone
Id String - The zone ID of the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbCluster resource produces the following output properties:
- Connection
String string - (Available since v1.196.0) - The connection string of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- (Available since v1.196.0) The connection port of the cluster.
- Connection
String string - (Available since v1.196.0) - The connection string of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- (Available since v1.196.0) The connection port of the cluster.
- connection
String String - (Available since v1.196.0) - The connection string of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- (Available since v1.196.0) The connection port of the cluster.
- connection
String string - (Available since v1.196.0) - The connection string of the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- port string
- (Available since v1.196.0) The connection port of the cluster.
- connection_
string str - (Available since v1.196.0) - The connection string of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- port str
- (Available since v1.196.0) The connection port of the cluster.
- connection
String String - (Available since v1.196.0) - The connection string of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- (Available since v1.196.0) The connection port of the cluster.
Look up Existing DbCluster Resource
Get an existing DbCluster 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?: DbClusterState, opts?: CustomResourceOptions): DbCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category: Optional[str] = None,
connection_string: Optional[str] = None,
db_cluster_access_white_lists: Optional[Sequence[DbClusterDbClusterAccessWhiteListArgs]] = None,
db_cluster_class: Optional[str] = None,
db_cluster_description: Optional[str] = None,
db_cluster_network_type: Optional[str] = None,
db_cluster_version: Optional[str] = None,
db_node_group_count: Optional[int] = None,
db_node_storage: Optional[str] = None,
encryption_key: Optional[str] = None,
encryption_type: Optional[str] = None,
maintain_time: Optional[str] = None,
multi_zone_vswitch_lists: Optional[Sequence[DbClusterMultiZoneVswitchListArgs]] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
port: Optional[str] = None,
renewal_status: Optional[str] = None,
status: Optional[str] = None,
storage_type: Optional[str] = None,
used_time: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> DbCluster
func GetDbCluster(ctx *Context, name string, id IDInput, state *DbClusterState, opts ...ResourceOption) (*DbCluster, error)
public static DbCluster Get(string name, Input<string> id, DbClusterState? state, CustomResourceOptions? opts = null)
public static DbCluster get(String name, Output<String> id, DbClusterState 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.
- Category string
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - Connection
String string - (Available since v1.196.0) - The connection string of the cluster.
- Db
Cluster List<Pulumi.Access White Lists Ali Cloud. Click House. Inputs. Db Cluster Db Cluster Access White List> - The db cluster access white list. See
db_cluster_access_white_list
below. - Db
Cluster stringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- Db
Cluster stringDescription - The DBCluster description.
- Db
Cluster stringNetwork Type - The DBCluster network type. Valid values:
vpc
. - Db
Cluster stringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - Db
Node intGroup Count - The db node group count. The number should between 1 and 48.
- Db
Node stringStorage - The db node storage.
- Encryption
Key string - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - Encryption
Type string - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- Maintain
Time string - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - Multi
Zone List<Pulumi.Vswitch Lists Ali Cloud. Click House. Inputs. Db Cluster Multi Zone Vswitch List> - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - Period string
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - Port string
- (Available since v1.196.0) The connection port of the cluster.
- Renewal
Status string - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - Status string
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - Storage
Type string - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - Used
Time string - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - Vpc
Id string - The id of the VPC.
- Vswitch
Id string - The vswitch id of DBCluster.
- Zone
Id string - The zone ID of the instance.
- Category string
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - Connection
String string - (Available since v1.196.0) - The connection string of the cluster.
- Db
Cluster []DbAccess White Lists Cluster Db Cluster Access White List Args - The db cluster access white list. See
db_cluster_access_white_list
below. - Db
Cluster stringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- Db
Cluster stringDescription - The DBCluster description.
- Db
Cluster stringNetwork Type - The DBCluster network type. Valid values:
vpc
. - Db
Cluster stringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - Db
Node intGroup Count - The db node group count. The number should between 1 and 48.
- Db
Node stringStorage - The db node storage.
- Encryption
Key string - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - Encryption
Type string - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- Maintain
Time string - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - Multi
Zone []DbVswitch Lists Cluster Multi Zone Vswitch List Args - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - Period string
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - Port string
- (Available since v1.196.0) The connection port of the cluster.
- Renewal
Status string - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - Status string
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - Storage
Type string - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - Used
Time string - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - Vpc
Id string - The id of the VPC.
- Vswitch
Id string - The vswitch id of DBCluster.
- Zone
Id string - The zone ID of the instance.
- category String
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - connection
String String - (Available since v1.196.0) - The connection string of the cluster.
- db
Cluster List<DbAccess White Lists Cluster Db Cluster Access White List> - The db cluster access white list. See
db_cluster_access_white_list
below. - db
Cluster StringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db
Cluster StringDescription - The DBCluster description.
- db
Cluster StringNetwork Type - The DBCluster network type. Valid values:
vpc
. - db
Cluster StringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db
Node IntegerGroup Count - The db node group count. The number should between 1 and 48.
- db
Node StringStorage - The db node storage.
- encryption
Key String - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption
Type String - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain
Time String - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi
Zone List<DbVswitch Lists Cluster Multi Zone Vswitch List> - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period String
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - port String
- (Available since v1.196.0) The connection port of the cluster.
- renewal
Status String - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status String
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - storage
Type String - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - used
Time String - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc
Id String - The id of the VPC.
- vswitch
Id String - The vswitch id of DBCluster.
- zone
Id String - The zone ID of the instance.
- category string
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - connection
String string - (Available since v1.196.0) - The connection string of the cluster.
- db
Cluster DbAccess White Lists Cluster Db Cluster Access White List[] - The db cluster access white list. See
db_cluster_access_white_list
below. - db
Cluster stringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db
Cluster stringDescription - The DBCluster description.
- db
Cluster stringNetwork Type - The DBCluster network type. Valid values:
vpc
. - db
Cluster stringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db
Node numberGroup Count - The db node group count. The number should between 1 and 48.
- db
Node stringStorage - The db node storage.
- encryption
Key string - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption
Type string - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain
Time string - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi
Zone DbVswitch Lists Cluster Multi Zone Vswitch List[] - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period string
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - port string
- (Available since v1.196.0) The connection port of the cluster.
- renewal
Status string - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status string
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - storage
Type string - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - used
Time string - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc
Id string - The id of the VPC.
- vswitch
Id string - The vswitch id of DBCluster.
- zone
Id string - The zone ID of the instance.
- category str
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - connection_
string str - (Available since v1.196.0) - The connection string of the cluster.
- db_
cluster_ Sequence[Dbaccess_ white_ lists Cluster Db Cluster Access White List Args] - The db cluster access white list. See
db_cluster_access_white_list
below. - db_
cluster_ strclass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db_
cluster_ strdescription - The DBCluster description.
- db_
cluster_ strnetwork_ type - The DBCluster network type. Valid values:
vpc
. - db_
cluster_ strversion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db_
node_ intgroup_ count - The db node group count. The number should between 1 and 48.
- db_
node_ strstorage - The db node storage.
- encryption_
key str - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption_
type str - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain_
time str - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi_
zone_ Sequence[Dbvswitch_ lists Cluster Multi Zone Vswitch List Args] - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - payment_
type str - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period str
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - port str
- (Available since v1.196.0) The connection port of the cluster.
- renewal_
status str - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status str
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - storage_
type str - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - used_
time str - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc_
id str - The id of the VPC.
- vswitch_
id str - The vswitch id of DBCluster.
- zone_
id str - The zone ID of the instance.
- category String
- The Category of DBCluster. Valid values:
Basic
,HighAvailability
. - connection
String String - (Available since v1.196.0) - The connection string of the cluster.
- db
Cluster List<Property Map>Access White Lists - The db cluster access white list. See
db_cluster_access_white_list
below. - db
Cluster StringClass - The DBCluster class. According to the category, db_cluster_class has two value ranges:
- Under the condition that the category is the
Basic
, Valid values:LS20
,LS40
,LS80
,S8
,S16
,S32
,S64
,S80
,S104
. - Under the condition that the category is the
HighAvailability
, Valid values:LC20
,LC40
,LC80
,C8
,C16
,C32
,C64
,C80
,C104
.
- Under the condition that the category is the
- db
Cluster StringDescription - The DBCluster description.
- db
Cluster StringNetwork Type - The DBCluster network type. Valid values:
vpc
. - db
Cluster StringVersion - The DBCluster version. Valid values:
20.3.10.75
,20.8.7.15
,21.8.10.19
,22.8.5.29
,23.8
. NOTE:19.15.2.2
is no longer supported. From version 1.191.0,db_cluster_version
can be set to22.8.5.29
. - db
Node NumberGroup Count - The db node group count. The number should between 1 and 48.
- db
Node StringStorage - The db node storage.
- encryption
Key String - Key management service KMS key ID. It is valid and required when encryption_type is
CloudDisk
. - encryption
Type String - Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
- maintain
Time String - The maintenance window of DBCluster. Valid format:
hh:mmZ-hh:mm Z
. - multi
Zone List<Property Map>Vswitch Lists - The zone IDs and
corresponding vswitch IDs and zone IDs of multi-zone setup. if set, a multi-zone DBCluster will be created. Currently only support 2 available zones, primary zone not included. See
multi_zone_vswitch_list
below. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period String
- Pre-paid cluster of the pay-as-you-go cycle. It is valid and required when payment_type is
Subscription
. Valid values:Month
,Year
. - port String
- (Available since v1.196.0) The connection port of the cluster.
- renewal
Status String - The renewal status of the resource. Valid values:
AutoRenewal
,Normal
. It is valid and required when payment_type isSubscription
. Whenrenewal_status
is set toAutoRenewal
, the resource is renewed automatically. - status String
- The status of the resource. Valid values:
Running
,Creating
,Deleting
,Restarting
,Preparing
. - storage
Type String - Storage type of DBCluster. Valid values:
cloud_essd
,cloud_efficiency
,cloud_essd_pl2
,cloud_essd_pl3
. - used
Time String - The used time of DBCluster. It is valid and required when payment_type is
Subscription
. item choices: [1-9] when period isMonth
, [1-3] when period isYear
. - vpc
Id String - The id of the VPC.
- vswitch
Id String - The vswitch id of DBCluster.
- zone
Id String - The zone ID of the instance.
Supporting Types
DbClusterDbClusterAccessWhiteList, DbClusterDbClusterAccessWhiteListArgs
- Db
Cluster stringIp Array Attribute - Field
db_cluster_ip_array_attribute
has been removed from provider. - Db
Cluster stringIp Array Name - Whitelist group name.
- Security
Ip stringList - The IP address list under the whitelist group.
- Db
Cluster stringIp Array Attribute - Field
db_cluster_ip_array_attribute
has been removed from provider. - Db
Cluster stringIp Array Name - Whitelist group name.
- Security
Ip stringList - The IP address list under the whitelist group.
- db
Cluster StringIp Array Attribute - Field
db_cluster_ip_array_attribute
has been removed from provider. - db
Cluster StringIp Array Name - Whitelist group name.
- security
Ip StringList - The IP address list under the whitelist group.
- db
Cluster stringIp Array Attribute - Field
db_cluster_ip_array_attribute
has been removed from provider. - db
Cluster stringIp Array Name - Whitelist group name.
- security
Ip stringList - The IP address list under the whitelist group.
- db_
cluster_ strip_ array_ attribute - Field
db_cluster_ip_array_attribute
has been removed from provider. - db_
cluster_ strip_ array_ name - Whitelist group name.
- security_
ip_ strlist - The IP address list under the whitelist group.
- db
Cluster StringIp Array Attribute - Field
db_cluster_ip_array_attribute
has been removed from provider. - db
Cluster StringIp Array Name - Whitelist group name.
- security
Ip StringList - The IP address list under the whitelist group.
DbClusterMultiZoneVswitchList, DbClusterMultiZoneVswitchListArgs
- vswitch_
id str - The ID of the vswitch.
- zone_
id str - The zone ID of the vswitch.
Import
Click House DBCluster can be imported using the id, e.g.
$ pulumi import alicloud:clickhouse/dbCluster:DbCluster example <id>
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.