Skip to content

DrdsInstanceProps

Properties for defining a DrdsInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-drds-drdsinstance

Initializer

using AlibabaCloud.SDK.ROS.CDK.Drds;
new DrdsInstanceProps {
    object Description,
    object InstanceSeries,
    object PayType,
    object Specification,
    object Type,
    object ZoneId,
    object Duration = null,
    object IsAutoRenew = null,
    object MySqlVersion = null,
    object PricingCycle = null,
    object ResourceGroupId = null,
    TagsProperty[] Tags = null,
    object VpcId = null,
    object VswitchId = null
};

Properties

Name Type Description
Description object Property description: Specifies the description of the instance.
InstanceSeries object Property instanceSeries: Specifies the instance type of the instance.
PayType object Property payType: Specifies the billing method of the instance.
Specification object Property specification: Specifies the specification code of the instance.
Type object Property type: Specifies the type of the instance.
ZoneId object Property zoneId: Availability zone, an available zone belongs to a certain zone, such as Hangzhou Availability Zone A (cn-hangzhou-a) belongs to the region Hangzhou (cn-hangzhou).
Duration object Property duration: The number of cycles ordered.
IsAutoRenew object Property isAutoRenew: Specifies whether to enable automatic renewal.
MySqlVersion object Property mySqlVersion: Specifies the MySQL version that is supported by the instance.
PricingCycle object Property pricingCycle: Specifies the unit of the subscription duration of the subscription instance.
ResourceGroupId object Property resourceGroupId: Resource group id.
Tags TagsProperty[] Property tags: Tags to attach to instance.
VpcId object Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type.
VswitchId object Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type.

DescriptionRequired

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

Property description: Specifies the description of the instance.

The description must meet the following requirements:

  • The description cannot contain the prefix http:// or https://.
  • The description must start with a letter or a Chinese character, and can contain uppercase and lowercase letters, Chinese characters, digits, underscores (_), and hyphens (-).
  • The description must be 2 to 256 characters in length.

InstanceSeriesRequired

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

Property instanceSeries: Specifies the instance type of the instance.

Valid values:

  • drds.sn2.4c16g: The instance is of the Starter Edition.
  • drds.sn2.8c32g: The instance is of the Standard Edition
  • drds.sn2.16c64g: The instance is of the Enterprise Edition.

PayTypeRequired

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

Property payType: Specifies the billing method of the instance.

Valid values:

  • drdsPre: The instance uses the subscription billing method.
  • drdsPost: The instance uses the pay-as-you-go billing method.
  • drdsRo: By default, the pay-as-you-go billing method is used when you create read-only instances.

SpecificationRequired

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

Property specification: Specifies the specification code of the instance.

The value consists of the instance type and the specified instance specification. For example, you can set the value to drds.sn2.4c16g.8c32g.


TypeRequired

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

Property type: Specifies the type of the instance.

Set the value to PRIVATE. The value PRIVATE specifies that the instance is a dedicated instance.

You can also set the value to 1 to specify that the instance is a dedicated instance.


ZoneIdRequired

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

Property zoneId: Availability zone, an available zone belongs to a certain zone, such as Hangzhou Availability Zone A (cn-hangzhou-a) belongs to the region Hangzhou (cn-hangzhou).


DurationOptional

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

Property duration: The number of cycles ordered.

When PricingCycle=year, the value is 1-3; when PricingCycle=month, the value is 1-9. The parameter takes effect when the payment type is drdsPre.


IsAutoRenewOptional

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

Property isAutoRenew: Specifies whether to enable automatic renewal.

Valid values:

  • true: If the PricingCycle parameter is set to month, the subscription is automatically renewed for one month. If the PricingCycle parameter is set to year, the subscription is automatically renewed for one year.
  • false: The auto-renewal feature is disabled for the instance.

This parameter only takes effect when the PayType parameter is set to drdsPre.


MySqlVersionOptional

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

Property mySqlVersion: Specifies the MySQL version that is supported by the instance.

Valid values:

  • 5: The instance is fully compatible with MySQL 5.x. This value is the default value.
  • 8: The instance is fully compatible with MySQL 8.0.

This parameter only takes effect when you create a primary instance. By default, the MySQL version of the read-only instance is the same as that of the primary instance.


PricingCycleOptional

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

Property pricingCycle: Specifies the unit of the subscription duration of the subscription instance.

Valid values:

  • year: The unit of the subscription duration is year.
  • month: The unit of the subscription duration is month.

This parameter is required if you set the PayType parameter to drdsPre.


ResourceGroupIdOptional

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

Property resourceGroupId: Resource group id.


TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.


VpcIdOptional

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

Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type.


VswitchIdOptional

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

Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type.