Skip to content

InstanceProps

Properties for defining a Instance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-instance

Initializer

using AlibabaCloud.SDK.ROS.CDK.Mongodb;
new InstanceProps {
    object DbInstanceClass,
    object DbInstanceStorage,
    object AccountPassword = null,
    object AuditPolicyOptions = null,
    object AutoRenew = null,
    object BackupId = null,
    object BackupPolicyOptions = null,
    object BusinessInfo = null,
    object ChargeType = null,
    object ClusterId = null,
    object CouponNo = null,
    object DatabaseNames = null,
    object DbInstanceDescription = null,
    object DbInstanceReleaseProtection = null,
    object Encrypted = null,
    object EncryptionKey = null,
    object EngineVersion = null,
    object HiddenZoneId = null,
    object Period = null,
    object PrivateConnections = null,
    object ProvisionedIops = null,
    object ReadonlyReplicas = null,
    object ReplicationFactor = null,
    object ResourceGroupId = null,
    object RestoreTime = null,
    object RestoreType = null,
    object SecondaryZoneId = null,
    object SecurityGroupId = null,
    object SecurityIpArray = null,
    object SrcDbInstanceId = null,
    object SrcRegion = null,
    object SslOptions = null,
    object StorageEngine = null,
    object StorageType = null,
    TagsProperty[] Tags = null,
    object TdeStatus = null,
    object VpcId = null,
    object VpcPasswordFree = null,
    object VSwitchId = null,
    object ZoneId = null
};

Properties

Name Type Description
DbInstanceClass object Property dbInstanceClass: MongoDB instance supported instance type, make sure it should be correct.
DbInstanceStorage object Property dbInstanceStorage: Database instance storage size.
AccountPassword object Property accountPassword: The password of the root account.
AuditPolicyOptions object Property auditPolicyOptions: Audit policy options.
AutoRenew object Property autoRenew: Specifies whether to enable auto-renewal for the instance.
BackupId object Property backupId: The backup point ID.
BackupPolicyOptions object Property backupPolicyOptions: Backup policy options.
BusinessInfo object Property businessInfo: The business information.
ChargeType object Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid.
ClusterId object Property clusterId: The dedicated cluster ID.
CouponNo object Property couponNo: Specifies whether to use a coupon.
DatabaseNames object Property databaseNames: The database name.
DbInstanceDescription object Property dbInstanceDescription: The name of the instance.
DbInstanceReleaseProtection object Property dbInstanceReleaseProtection: Enables instance release protection.
Encrypted object Property encrypted: Whether to enable cloud disk encryption.
EncryptionKey object Property encryptionKey: Custom key ID.
EngineVersion object Property engineVersion: The database version.
HiddenZoneId object Property hiddenZoneId: Configure the zone where the hidden node resides to implement multi-availability zone deployment.
Period object Property period: The subscription duration of the instance.
PrivateConnections object Property privateConnections: Connection configs of private connection.
ProvisionedIops object Property provisionedIops: Provisioned IOPS.
ReadonlyReplicas object Property readonlyReplicas: The number of read-only nodes in the replica set instance.
ReplicationFactor object Property replicationFactor: The number of nodes in the replica set.
ResourceGroupId object Property resourceGroupId: The ID of the resource group.
RestoreTime object Property restoreTime: The time to restore the cloned instance to.
RestoreType object Property restoreType: The method to restore an instance from a backup.
SecondaryZoneId object Property secondaryZoneId: Configure the zone where the secondary node resides to implement multi-availability zone deployment.
SecurityGroupId object Property securityGroupId: The ID of the ECS security group.
SecurityIpArray object Property securityIpArray: Security ips to add or remove.
SrcDbInstanceId object Property srcDbInstanceId: The source instance ID.
SrcRegion object Property srcRegion: The source instance region.
SslOptions object Property sslOptions: SSL options.
StorageEngine object Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.
StorageType object Property storageType: The storage type of the instance.
Tags TagsProperty[] Property tags: Tags to attach to instance.
TdeStatus object Property tdeStatus: Specifies whether to enable Transparent Data Encryption (TDE).
VpcId object Property vpcId: The VPC id to create mongodb instance.
VpcPasswordFree object Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
VSwitchId object Property vSwitchId: The vSwitch Id to create mongodb instance.
ZoneId object Property zoneId: On which zone to create the instance.

DbInstanceClassRequired

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

Property dbInstanceClass: MongoDB instance supported instance type, make sure it should be correct.


DbInstanceStorageRequired

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

Property dbInstanceStorage: Database instance storage size.

MongoDB is [5,3000], increased every 10 GB, Unit in GB


AccountPasswordOptional

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

Property accountPassword: The password of the root account.

The password must meet the following requirements:

  • It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
  • Special characters include !@#$%^&*()_+-=
  • It must be 8 to 32 characters in length.

AuditPolicyOptionsOptional

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

Property auditPolicyOptions: Audit policy options.


AutoRenewOptional

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

Property autoRenew: Specifies whether to enable auto-renewal for the instance.

Valid values:

  • true: Auto-renewal is enabled.
  • false: Auto-renewal is disabled. You must manually renew the instance. This is the default value.

This parameter is optional and takes effect only when you set the ChargeType parameter to PrePaid.


BackupIdOptional

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

Property backupId: The backup point ID.

To query the backup point ID, call the DescribeBackups operation.

You must specify this parameter and the SrcDBInstanceId parameter only when you clone an instance based on a backup point.


BackupPolicyOptionsOptional

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

Property backupPolicyOptions: Backup policy options.


BusinessInfoOptional

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

Property businessInfo: The business information.

It is an additional parameter.


ChargeTypeOptional

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

Property chargeType: The billing method of the instance.values:PostPaid: Pay-As-You-Go.PrePaid: Subscription.Default value: PostPaid.


ClusterIdOptional

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

Property clusterId: The dedicated cluster ID.


CouponNoOptional

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

Property couponNo: Specifies whether to use a coupon.

Valid values:

  • default or null (default): Uses a coupon.
  • youhuiquan_promotion_option_id_for_blank: Does not use a coupon.

DatabaseNamesOptional

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

Property databaseNames: The database name.

When you clone an instance, you can specify this parameter to clone specific databases. If you do not specify this parameter, all databases of the instance are cloned.


DbInstanceDescriptionOptional

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

Property dbInstanceDescription: The name of the instance.

The name must meet the following requirements:

  • It must start with a Chinese character or a letter.
  • It can contain digits, Chinese characters, letters, underscores (_), periods (.), and hyphens (-).
  • It must be 2 to 256 characters in length.

DbInstanceReleaseProtectionOptional

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

Property dbInstanceReleaseProtection: Enables instance release protection.

Values:

  • true: Enabled.
  • false: Not enabled.

EncryptedOptional

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

Property encrypted: Whether to enable cloud disk encryption.


EncryptionKeyOptional

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

Property encryptionKey: Custom key ID.


EngineVersionOptional

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

Property engineVersion: The database version.

Valid values:

  • 8.0
  • 7.0
  • 6.0
  • 5.0
  • 4.4
  • 4.2
  • 4.0
  • When you clone an instance by calling this operation, the value of this parameter must be the same as that of the source instance.

HiddenZoneIdOptional

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

Property hiddenZoneId: Configure the zone where the hidden node resides to implement multi-availability zone deployment.

When the value of the EngineVersion is 4.4 and later, this parameter is available and required. The value of this parameter cannot be the same as that of ZoneId and SecondaryZoneId.


PeriodOptional

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

Property period: The subscription duration of the instance.

Unit: month. Valid values: 1 to 9 (integer), 12, 24, 36, and 60.

This parameter is required and takes effect only when you set the ChargeType parameter to PrePaid.


PrivateConnectionsOptional

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

Property privateConnections: Connection configs of private connection.


ProvisionedIopsOptional

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

Property provisionedIops: Provisioned IOPS.

The value range is 0 to 50000.


ReadonlyReplicasOptional

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

Property readonlyReplicas: The number of read-only nodes in the replica set instance.

Valid values are integers from 0 to 5. The default value is 0.


ReplicationFactorOptional

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

Property replicationFactor: The number of nodes in the replica set.

Allowed values: [3, 5, 7], default to 3.


ResourceGroupIdOptional

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

Property resourceGroupId: The ID of the resource group.


RestoreTimeOptional

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

Property restoreTime: The time to restore the cloned instance to.

The format is yyyy-MM-ddTHH:mm:ssZ.This parameter can only be specified when this operation is called to clone instances.You must also specify theSrcDBInstanceIdparameter and theBackupIdparameter.You can clone instances to any restore time in the past seven days.


RestoreTypeOptional

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

Property restoreType: The method to restore an instance from a backup.

  • 0: Restores the instance to a specified backup set.
  • 1: Restores the instance to a specified point in time.
  • 2: Restores a released instance to a specified backup set.
  • 3: Restores the instance to a specified geo-redundant backup set.

SecondaryZoneIdOptional

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

Property secondaryZoneId: Configure the zone where the secondary node resides to implement multi-availability zone deployment.

When the value of the EngineVersion is 4.4 and later, this parameter is available and required.The value of this parameter cannot be the same as that of ZoneId and HiddenZoneId.


SecurityGroupIdOptional

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

Property securityGroupId: The ID of the ECS security group.

Each ApsaraDB for MongoDB instance can be added in up to 10 security group. You can call the ECS DescribeSecurityGroup to describe the ID of the security group in the target region.


SecurityIpArrayOptional

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

Property securityIpArray: Security ips to add or remove.

Update to this property will cover the current security ips.


SrcDbInstanceIdOptional

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

Property srcDbInstanceId: The source instance ID.

This parameter is required only when you clone an instance by calling this operation. You must also specify the RestoreTime parameter.


SrcRegionOptional

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

Property srcRegion: The source instance region.

  • When the backup recovery type is 2 or 3, this parameter is required.

SslOptionsOptional

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

Property sslOptions: SSL options.


StorageEngineOptional

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

Property storageEngine: Database storage engine.Support WiredTiger, RocksDB, TerarkDB.


StorageTypeOptional

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

Property storageType: The storage type of the instance.

Instances of MongoDB 4.4 and later only support cloud disks. cloud_essd1 is selected if you leave this parameter empty. Instances of MongoDB 4.2 and earlier support only local disks. local_ssd is selected if you leave this parameter empty.


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.


TdeStatusOptional

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

Property tdeStatus: Specifies whether to enable Transparent Data Encryption (TDE).

Valid values: true: enable TDE false: disable TDE (default) Note: You cannot disable TDE after it is enabled.


VpcIdOptional

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

Property vpcId: The VPC id to create mongodb instance.


VpcPasswordFreeOptional

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

Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.

If set to:

  • true: enables password free.
  • false: disables password free.

VSwitchIdOptional

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

Property vSwitchId: The vSwitch Id to create mongodb instance.


ZoneIdOptional

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

Property zoneId: On which zone to create the instance.

If VpcId and VSwitchId is specified, ZoneId is required and VSwitch should be in same zone.