ReadOnlyDBInstanceProps
Properties for defining a ReadOnlyDBInstance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rds-readonlydbinstance
Initializer
using AlibabaCloud.SDK.ROS.CDK.Rds;
new ReadOnlyDBInstanceProps {
object DbInstanceClass,
object DbInstanceId,
object DbInstanceStorage,
object EngineVersion,
object ZoneId,
object AutoRenew = null,
object Category = null,
object DbInstanceDescription = null,
object DbInstanceStorageType = null,
object DedicatedHostGroupId = null,
object DeletionProtection = null,
object PayType = null,
object Period = null,
object PeriodType = null,
object PrivateIpAddress = null,
object ResourceGroupId = null,
System.Collections.Generic.IDictionary<string, object> Tags = null,
object TargetDedicatedHostIdForMaster = null,
object VpcId = null,
object VSwitchId = null
};
Properties
Name | Type | Description |
---|---|---|
DbInstanceClass |
object |
Property dbInstanceClass: The type of the instance. |
DbInstanceId |
object |
Property dbInstanceId: The ID of the master instance. |
DbInstanceStorage |
object |
Property dbInstanceStorage: The storage space of the instance. |
EngineVersion |
object |
Property engineVersion: The version of the database. |
ZoneId |
object |
Property zoneId: The ID of the zone. |
AutoRenew |
object |
Property autoRenew: Specifies whether to enable auto-renewal. |
Category |
object |
Property category: The RDS edition of the read-only instance. |
DbInstanceDescription |
object |
Property dbInstanceDescription: Description of created database instance. |
DbInstanceStorageType |
object |
Property dbInstanceStorageType: The type of storage media that is used by the instance. |
DedicatedHostGroupId |
object |
Property dedicatedHostGroupId: The ID of the dedicated cluster to which the read-only instance belongs. |
DeletionProtection |
object |
Property deletionProtection: Specifies whether to enable the release protection feature for the read-only instance. |
PayType |
object |
Property payType: The billing method. |
Period |
object |
Property period: The subscription duration. |
PeriodType |
object |
Property periodType: Charge period for created instances. |
PrivateIpAddress |
object |
Property privateIpAddress: The private IP address of the read-only instance. |
ResourceGroupId |
object |
Property resourceGroupId: Resource group id. |
Tags |
System.Collections.Generic.IDictionary |
Property tags: The tags of an instance. |
TargetDedicatedHostIdForMaster |
object |
Property targetDedicatedHostIdForMaster: The ID of the host on which the primary instance resides. |
VpcId |
object |
Property vpcId: The ID of the VPC. |
VSwitchId |
object |
Property vSwitchId: The ID of the VSwitch. |
DbInstanceClass
Required
public object DbInstanceClass { get; set; }
- Type: object
Property dbInstanceClass: The type of the instance.
For more information, see Instance type list. The type of the read-only instance must be no less than that of the master instance. Otherwise, the read-only instance incurs high latency and high load.
DbInstanceId
Required
public object DbInstanceId { get; set; }
- Type: object
Property dbInstanceId: The ID of the master instance.
DbInstanceStorage
Required
public object DbInstanceStorage { get; set; }
- Type: object
Property dbInstanceStorage: The storage space of the instance.
Value range: 5 to 3000. The value must be a multiple of 5. Unit: GB.
EngineVersion
Required
public object EngineVersion { get; set; }
- Type: object
Property engineVersion: The version of the database.
The database and the master instance must have the same database version. Valid values: 5.6, 5.7, 8.0, 2017_ent, 2019_ent
ZoneId
Required
public object ZoneId { get; set; }
- Type: object
Property zoneId: The ID of the zone.
You can call the DescribeRegions API operation to view the latest zones.
AutoRenew
Optional
public object AutoRenew { get; set; }
- Type: object
Property autoRenew: Specifies whether to enable auto-renewal.
Valid values: true and false. Note :Monthly subscription: The auto-renewal cycle is one month. Annual subscription: The auto-renewal cycle is one year.
Category
Optional
public object Category { get; set; }
- Type: object
Property category: The RDS edition of the read-only instance.
Valid values: Basic: Basic Edition. HighAvailability: High-availability Edition. This is the default value. AlwaysOn: Cluster Edition. Finance: Enterprise Edition. This edition is available only on the China site (aliyun.com).
DbInstanceDescription
Optional
public object DbInstanceDescription { get; set; }
- Type: object
Property dbInstanceDescription: Description of created database instance.
DbInstanceStorageType
Optional
public object DbInstanceStorageType { get; set; }
- Type: object
Property dbInstanceStorageType: The type of storage media that is used by the instance.
Valid values: local_ssd: local SSDs cloud_ssd: standard SSDs cloud_essd: ESSDs of performance level 1 (PL1) cloud_essd2: ESSDs of PL2 cloud_essd3: ESSDs of PL3
DedicatedHostGroupId
Optional
public object DedicatedHostGroupId { get; set; }
- Type: object
Property dedicatedHostGroupId: The ID of the dedicated cluster to which the read-only instance belongs.
This parameter is valid when you create the read-only instance in a dedicated cluster.
DeletionProtection
Optional
public object DeletionProtection { get; set; }
- Type: object
Property deletionProtection: Specifies whether to enable the release protection feature for the read-only instance.
Valid values:- true: enables the feature.- false (default): disables the feature.
PayType
Optional
public object PayType { get; set; }
- Type: object
Property payType: The billing method.
Period
Optional
public object Period { get; set; }
- Type: object
Property period: The subscription duration.
Valid values: When PeriodType is Month, it could be from 1 to 12, 24, 36, 48, 60. When PeriodType is Year, it could be from 1 to 5.
PeriodType
Optional
public object PeriodType { get; set; }
- Type: object
Property periodType: Charge period for created instances.
PrivateIpAddress
Optional
public object PrivateIpAddress { get; set; }
- Type: object
Property privateIpAddress: The private IP address of the read-only instance.
It must be within the IP address range provided by the switch. The system automatically assigns an IP address based on the VPCId and VSwitchId by default.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: Resource group id.
Tags
Optional
public System.Collections.Generic.IDictionary<string, object> Tags { get; set; }
- Type: System.Collections.Generic.IDictionary
Property tags: The tags of an instance.
You should input the information of the tag with the format of the Key-Value, such as {"key1":"value1","key2":"value2", ... "key5":"value5"}. At most 5 tags can be specified. Key It can be up to 64 characters in length. Cannot begin with aliyun. Cannot begin with http:// or https://. Cannot be a null string. Value It can be up to 128 characters in length. Cannot begin with aliyun. Cannot begin with http:// or https://. Can be a null string.
TargetDedicatedHostIdForMaster
Optional
public object TargetDedicatedHostIdForMaster { get; set; }
- Type: object
Property targetDedicatedHostIdForMaster: The ID of the host on which the primary instance resides.
This parameter is valid when you create the read-only instance in a dedicated cluster.
VpcId
Optional
public object VpcId { get; set; }
- Type: object
Property vpcId: The ID of the VPC.
VSwitchId
Optional
public object VSwitchId { get; set; }
- Type: object
Property vSwitchId: The ID of the VSwitch.