Skip to content

DBInstanceProps

Properties for defining a DBInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-selectdb-dbinstance

Initializer

using AlibabaCloud.SDK.ROS.CDK.Selectdb;
new DBInstanceProps {
    object CacheSize,
    object ChargeType,
    object DbInstanceClass,
    object EngineVersion,
    object VpcId,
    object VSwitchId,
    object ZoneId,
    object AccountPassword = null,
    object ConnectionString = null,
    object DbInstanceDescription = null,
    object Engine = null,
    object Period = null,
    object ResourceGroupId = null,
    object SecurityIpList = null,
    TagsProperty[] Tags = null,
    object UsedTime = null
};

Properties

Name Type Description
CacheSize object Property cacheSize: Reserve cache size.
ChargeType object Property chargeType: The paid type of instance.Value: Postpaid: Postpaid (pay per quantity). Prepaid: Prepaid (year and monthly).
DbInstanceClass object Property dbInstanceClass: The class of the DB instance.
EngineVersion object Property engineVersion: The database version.
VpcId object Property vpcId: VPC id.
VSwitchId object Property vSwitchId: Switch ID.
ZoneId object Property zoneId: Availability Zone ID.
AccountPassword object Property accountPassword: The password of the instance login account, the current account name of selectdb can only be admin.
ConnectionString object Property connectionString: Database connection address.
DbInstanceDescription object Property dbInstanceDescription: Example Notes Information.
Engine object Property engine: Database type, default value is selectdb.
Period object Property period: Specify the prepaid cluster as annual or monthly type.Value description: Year: Year-end type. Month: Month type. Note This parameter takes effect and is required only if ChargeType is Prepaid.
ResourceGroupId object Property resourceGroupId: Resource Group ID.
SecurityIpList object Property securityIpList: The default IP whitelist of the instance.
Tags TagsProperty[] Property tags: The list of tags in the form of key\/value pairs.
UsedTime object Property usedTime: The subscription duration of the subscription instance.

CacheSizeRequired

public object CacheSize { get; set; }
  • Type: object

Property cacheSize: Reserve cache size.


ChargeTypeRequired

public object ChargeType { get; set; }
  • Type: object

Property chargeType: The paid type of instance.Value: Postpaid: Postpaid (pay per quantity). Prepaid: Prepaid (year and monthly).


DbInstanceClassRequired

public object DbInstanceClass { get; set; }
  • Type: object

Property dbInstanceClass: The class of the DB instance.

Call DescribeAllDBInstanceClass API to check the latest class list


EngineVersionRequired

public object EngineVersion { get; set; }
  • Type: object

Property engineVersion: The database version.

The default value is 4.1. Valid values:

  • 4.0
  • 4.1

VpcIdRequired

public object VpcId { get; set; }
  • Type: object

Property vpcId: VPC id.


VSwitchIdRequired

public object VSwitchId { get; set; }
  • Type: object

Property vSwitchId: Switch ID.


ZoneIdRequired

public object ZoneId { get; set; }
  • Type: object

Property zoneId: Availability Zone ID.


AccountPasswordOptional

public object AccountPassword { get; set; }
  • Type: object

Property accountPassword: The password of the instance login account, the current account name of selectdb can only be admin.


ConnectionStringOptional

public object ConnectionString { get; set; }
  • Type: object

Property connectionString: Database connection address.


DbInstanceDescriptionOptional

public object DbInstanceDescription { get; set; }
  • Type: object

Property dbInstanceDescription: Example Notes Information.


EngineOptional

public object Engine { get; set; }
  • Type: object

Property engine: Database type, default value is selectdb.


PeriodOptional

public object Period { get; set; }
  • Type: object

Property period: Specify the prepaid cluster as annual or monthly type.Value description: Year: Year-end type. Month: Month type. Note This parameter takes effect and is required only if ChargeType is Prepaid.


ResourceGroupIdOptional

public object ResourceGroupId { get; set; }
  • Type: object

Property resourceGroupId: Resource Group ID.


SecurityIpListOptional

public object SecurityIpList { get; set; }
  • Type: object

Property securityIpList: The default IP whitelist of the instance.


TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: The list of tags in the form of key\/value pairs.

You can define a maximum of 20 tags.


UsedTimeOptional

public object UsedTime { get; set; }
  • Type: object

Property usedTime: The subscription duration of the subscription instance.

Valid values:

  • If Period is set to Year, valid values are 1, 2, 3, 4, and 5.
  • If Period is set to Month, valid values are integers from 1 to 12.

This parameter is required and takes effect only when ChargeType is set to Prepaid.