DBInstanceProps
Properties for defining a DBInstance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-gpdb-dbinstance
Initializer
using AlibabaCloud.SDK.ROS.CDK.Gpdb;
new DBInstanceProps {
object EngineVersion,
object VSwitchId,
object ZoneId,
object AiNodeSpecInfos = null,
object BackupId = null,
object CacheStorageSize = null,
object CreateSampleData = null,
object DbInstanceCategory = null,
object DbInstanceClass = null,
object DbInstanceDescription = null,
object DbInstanceGroupCount = null,
object DbInstanceMode = null,
object DeployMode = null,
object EnableSsl = null,
object EncryptionKey = null,
object EncryptionType = null,
object IdleTime = null,
object InstanceSpec = null,
object MasterAiSpec = null,
object MasterCu = null,
object MasterNodeNum = null,
object PayType = null,
object Period = null,
object PeriodUnit = null,
object PrivateIpAddress = null,
object ProdType = null,
object ResourceGroupId = null,
object SecurityIpList = null,
object SegDiskPerformanceLevel = null,
object SegNodeNum = null,
object SegStorageType = null,
object ServerlessMode = null,
object ServerlessResource = null,
object SrcDbInstanceName = null,
object StandbyVSwitchId = null,
object StandbyZoneId = null,
object StorageSize = null,
TagsProperty[] Tags = null,
object VectorConfigurationStatus = null,
object VpcId = null
};
Properties
| Name | Type | Description |
|---|---|---|
EngineVersion | object | Property engineVersion: The version of the database engine. |
VSwitchId | object | Property vSwitchId: The vSwitch ID. |
ZoneId | object | Property zoneId: The zone ID of the instance, such as cn-hangzhou-d. |
AiNodeSpecInfos | object | Property aiNodeSpecInfos: AI node spec infos. |
BackupId | object | Property backupId: Backup set ID. |
CacheStorageSize | object | Property cacheStorageSize: The cache size for a serverless instance, in GB. |
CreateSampleData | object | Property createSampleData: Whether to load the sample data set after the instance is created. |
DbInstanceCategory | object | Property dbInstanceCategory: The instance edition. |
DbInstanceClass | object | Property dbInstanceClass: The instance type. |
DbInstanceDescription | object | Property dbInstanceDescription: The description of the instance. |
DbInstanceGroupCount | object | Property dbInstanceGroupCount: The number of compute groups. |
DbInstanceMode | object | Property dbInstanceMode: The db instance mode. |
DeployMode | object | Property deployMode: The deployment mode. |
EnableSsl | object | Property enableSsl: Whether to enable SSL encryption. |
EncryptionKey | object | Property encryptionKey: If the EncryptionType parameter is set to CloudDisk, you must specify this parameter to the encryption key that is in the same region with the disks that is specified by the EncryptionType parameter. |
EncryptionType | object | Property encryptionType: The type of the encryption. |
IdleTime | object | Property idleTime: The period of inactivity, in seconds, after which the instance is considered idle. |
InstanceSpec | object | Property instanceSpec: The instance type for the compute nodes. |
MasterAiSpec | object | Property masterAiSpec: If you need to change the Master node to MasterAI node, specify this parameter. |
MasterCu | object | Property masterCu: The resources for the coordinator node. |
MasterNodeNum | object | Property masterNodeNum: The number of master nodes. |
PayType | object | Property payType: The billing method of the instance. |
Period | object | Property period: The subscription period. |
PeriodUnit | object | Property periodUnit: Unit of subscription period, it could be Month\/Year. |
PrivateIpAddress | object | Property privateIpAddress: This parameter is deprecated. |
ProdType | object | Property prodType: Prod type. |
ResourceGroupId | object | Property resourceGroupId: The ID of the resource group. |
SecurityIpList | object | Property securityIpList: The IP address whitelist for the instance. |
SegDiskPerformanceLevel | object | Property segDiskPerformanceLevel: The performance level of the ESSDs. |
SegNodeNum | object | Property segNodeNum: Calculate the number of nodes. |
SegStorageType | object | Property segStorageType: The disk type of segment nodes. |
ServerlessMode | object | Property serverlessMode: Mode of the Serverless instance. |
ServerlessResource | object | Property serverlessResource: The threshold for computing resources, in AnalyticDB Compute Units (ACUs). |
SrcDbInstanceName | object | Property srcDbInstanceName: Clone source instance ID. |
StandbyVSwitchId | object | Property standbyVSwitchId: The ID of the vSwitch in the standby zone. |
StandbyZoneId | object | Property standbyZoneId: The ID of the standby zone. |
StorageSize | object | Property storageSize: The storage capacity for the instance, in GB. |
Tags | TagsProperty[] | Property tags: The list of instance tags in the form of key\/value pairs. |
VectorConfigurationStatus | object | Property vectorConfigurationStatus: the status of vector configuration. |
VpcId | object | Property vpcId: The VPC ID of the instance. |
EngineVersionRequired
public object EngineVersion { get; set; }
- Type: object
Property engineVersion: The version of the database engine.
For example: 6.0、7.0
VSwitchIdRequired
public object VSwitchId { get; set; }
- Type: object
Property vSwitchId: The vSwitch ID.
- This parameter is required.
- The vSwitch must be in the zone specified by
ZoneId.
ZoneIdRequired
public object ZoneId { get; set; }
- Type: object
Property zoneId: The zone ID of the instance, such as cn-hangzhou-d.
You can call the DescribeRegions operation to query the most recent zone list.
AiNodeSpecInfosOptional
public object AiNodeSpecInfos { get; set; }
- Type: object
Property aiNodeSpecInfos: AI node spec infos.
BackupIdOptional
public object BackupId { get; set; }
- Type: object
Property backupId: Backup set ID.
You can call DescribeDataBackups to view the backup set IDs of all backup sets under the target instance.
CacheStorageSizeOptional
public object CacheStorageSize { get; set; }
- Type: object
Property cacheStorageSize: The cache size for a serverless instance, in GB.
CreateSampleDataOptional
public object CreateSampleData { get; set; }
- Type: object
Property createSampleData: Whether to load the sample data set after the instance is created.
The value can be: true: load the sample dataset. false: not to load the sample dataset
DbInstanceCategoryOptional
public object DbInstanceCategory { get; set; }
- Type: object
Property dbInstanceCategory: The instance edition.
Valid values:
- HighAvailability: High-availability Edition
- Basic: Basic Edition
This parameter is required for instances in elastic storage mode.
DbInstanceClassOptional
public object DbInstanceClass { get; set; }
- Type: object
Property dbInstanceClass: The instance type.
For more information, see the description of the DBInstanceClass parameter.
This parameter is required for instances in reserved storage mode.
DbInstanceDescriptionOptional
public object DbInstanceDescription { get; set; }
- Type: object
Property dbInstanceDescription: The description of the instance.
The description cannot exceed 256 characters in length.
DbInstanceGroupCountOptional
public object DbInstanceGroupCount { get; set; }
- Type: object
Property dbInstanceGroupCount: The number of compute groups.
Valid values: 2, 4, 8, 12, 16, 24, 32, 64, 96, and 128.
This parameter is required for instances in reserved storage mode.
DbInstanceModeOptional
public object DbInstanceMode { get; set; }
- Type: object
Property dbInstanceMode: The db instance mode.
Valid values: StorageElastic, Serverless, Classic.
DeployModeOptional
public object DeployMode { get; set; }
- Type: object
Property deployMode: The deployment mode.
Valid values:
- multiple: multi-AZ deployment.
- single: single-AZ deployment.
- If this parameter is not specified, the default value is single.
- Defaults to
single(single-AZ deployment), which is the only mode currently supported.
EnableSslOptional
public object EnableSsl { get; set; }
- Type: object
Property enableSsl: Whether to enable SSL encryption.
Valid values: true: Enable SSL encryption. false (default): Do not enable SSL encryption.
EncryptionKeyOptional
public object EncryptionKey { get; set; }
- Type: object
Property encryptionKey: If the EncryptionType parameter is set to CloudDisk, you must specify this parameter to the encryption key that is in the same region with the disks that is specified by the EncryptionType parameter.
Otherwise, leave this parameter empty.
EncryptionTypeOptional
public object EncryptionType { get; set; }
- Type: object
Property encryptionType: The type of the encryption.
Default value: NULL. Valid values: NULL: Encryption is disabled. CloudDisk: Encryption is enabled on disks and the encryption key is specified by using the EncryptionKey parameter. Note: Disk encryption cannot be disabled after it is enabled.
IdleTimeOptional
public object IdleTime { get; set; }
- Type: object
Property idleTime: The period of inactivity, in seconds, after which the instance is considered idle.
Minimum value: 60. Default value: 600.
This parameter is required only for serverless instances that use auto-scheduling.
InstanceSpecOptional
public object InstanceSpec { get; set; }
- Type: object
Property instanceSpec: The instance type for the compute nodes.
Valid values for a High-availability Edition instance in elastic storage mode:
- 2C16G
- 4C32G
- 16C128G Valid values for a Basic Edition instance in elastic storage mode:
- 2C8G
- 4C16G
- 8C32G
- 16C64G Valid values for a serverless instance:
- 4C16G
- 8C32G
This parameter is required for instances in elastic storage mode or serverless mode.
MasterAiSpecOptional
public object MasterAiSpec { get; set; }
- Type: object
Property masterAiSpec: If you need to change the Master node to MasterAI node, specify this parameter.
This parameter cannot be specified at the same time as MasterCU. Only some regions and availability zones support changing the Master node to MasterAI node. Only Basic edition instances of AnalyticDB PostgreSQL 7.0 support MasterAI nodes. You can query all possible values of this parameter on the Master node reconfiguration sales page.
MasterCuOptional
public object MasterCu { get; set; }
- Type: object
Property masterCu: The resources for the coordinator node.
Valid values:
- 2 CU
- 4 CU
- 8 CU
- 16 CU
- 32 CU
You are charged for coordinator node resources of 8 CUs or more.
MasterNodeNumOptional
public object MasterNodeNum { get; set; }
- Type: object
Property masterNodeNum: The number of master nodes.
Minimum is 1, max is 2.
PayTypeOptional
public object PayType { get; set; }
- Type: object
Property payType: The billing method of the instance.
Default value: Postpaid. Valid values: Postpaid: pay-as-you-go Prepaid: subscription
PeriodOptional
public object Period { get; set; }
- Type: object
Property period: The subscription period.
While choose by pay by month, it could be from 1 to 11. While choose pay by year, it could be from 1 to 3.
PeriodUnitOptional
public object PeriodUnit { get; set; }
- Type: object
Property periodUnit: Unit of subscription period, it could be Month\/Year.
Default value is Month.
PrivateIpAddressOptional
public object PrivateIpAddress { get; set; }
- Type: object
Property privateIpAddress: This parameter is deprecated.
ProdTypeOptional
public object ProdType { get; set; }
- Type: object
Property prodType: Prod type.
The value can be: standard, cost-effective. The default value is standard.
ResourceGroupIdOptional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: The ID of the resource group.
SecurityIpListOptional
public object SecurityIpList { get; set; }
- Type: object
Property securityIpList: The IP address whitelist for the instance.
A value of 127.0.0.1 blocks all external access. After you create the instance, you can call the ModifySecurityIps operation to modify the IP address whitelist.
SegDiskPerformanceLevelOptional
public object SegDiskPerformanceLevel { get; set; }
- Type: object
Property segDiskPerformanceLevel: The performance level of the ESSDs.
Valid values:
- pl0: PL0
- pl1: PL1
- pl2: PL2
- This parameter applies only if the segment node storage type is ESSD.
- If this parameter is not specified, pl1 is used by default.
SegNodeNumOptional
public object SegNodeNum { get; set; }
- Type: object
Property segNodeNum: Calculate the number of nodes.
The value can be:
- When DBInstanceMode is StorageElastic and DBInstanceCategory is HighAvailability, the value ranges from 4 to 512. The value must be a multiple of 4.
- When DBInstanceMode is StorageElastic and DBInstanceCategory is Basic, the value ranges from 2 to 512. The value must be a multiple of 2.
- When DBInstanceMode is Serverless, The value ranges from 2 to 512. The value must be a multiple of 2.
SegStorageTypeOptional
public object SegStorageType { get; set; }
- Type: object
Property segStorageType: The disk type of segment nodes.
For example: cloud_essd, cloud_efficiency. This parameter must be passed in to create a storage elastic mode instance. Storage Elastic Mode Basic Edition instances only support ESSD cloud disks.
ServerlessModeOptional
public object ServerlessMode { get; set; }
- Type: object
Property serverlessMode: Mode of the Serverless instance.
The value can be: Manual: manual scheduling is the default value. Auto: indicates automatic scheduling.
ServerlessResourceOptional
public object ServerlessResource { get; set; }
- Type: object
Property serverlessResource: The threshold for computing resources, in AnalyticDB Compute Units (ACUs).
The value must be a multiple of 8, ranging from 8 to 32. The default value is 32.
This parameter is required only for serverless instances that use auto-scheduling.
SrcDbInstanceNameOptional
public object SrcDbInstanceName { get; set; }
- Type: object
Property srcDbInstanceName: Clone source instance ID.
You can call the DescribeDBInstances interface to view the details of all AnalyticDB PostgreSQL instances in the target region, including the instance ID.
StandbyVSwitchIdOptional
public object StandbyVSwitchId { get; set; }
- Type: object
Property standbyVSwitchId: The ID of the vSwitch in the standby zone.
- This parameter is required only for a multi-AZ deployment.
- The vSwitch must be in the standby zone specified in
StandbyZoneId.
StandbyZoneIdOptional
public object StandbyZoneId { get; set; }
- Type: object
Property standbyZoneId: The ID of the standby zone.
- This parameter is required only for a multi-AZ deployment.
- You can call the DescribeRegions operation to query the IDs of available zones.
- The standby zone must be different from the primary zone.
StorageSizeOptional
public object StorageSize { get; set; }
- Type: object
Property storageSize: The storage capacity for the instance, in GB.
Valid values: .
This parameter is required for instances in elastic storage mode.
TagsOptional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags: The list of instance tags in the form of key\/value pairs.
You can define a maximum of 20 tags for instance.
VectorConfigurationStatusOptional
public object VectorConfigurationStatus { get; set; }
- Type: object
Property vectorConfigurationStatus: the status of vector configuration.
The value can be:Y: Turn on vector engine optimization.N: Turn off vector engine optimization (default value).
VpcIdOptional
public object VpcId { get; set; }
- Type: object
Property vpcId: The VPC ID of the instance.
If you set the InstanceNetworkType parameter to VPC, you must also specify the VPCId parameter. The specified region of the VPC must be the same as the RegionId value.