Skip to content

InstanceProps

Properties for defining a Instance.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Memcache;
new InstanceProps {
    object AutoRenew = null,
    object AutoRenewPeriod = null,
    object AutoUseCoupon = null,
    object BackupPolicy = null,
    object Capacity = null,
    object ChargeType = null,
    object Config = null,
    object CouponNo = null,
    object InstanceClass = null,
    object InstanceName = null,
    object NetworkType = null,
    object Password = null,
    object Period = null,
    object PrivateIpAddress = null,
    object ResourceGroupId = null,
    object VpcId = null,
    object VpcPasswordFree = null,
    object VSwitchId = null,
    object ZoneId = null
};

Properties

Name Type Description
AutoRenew object Property autoRenew: Specifies whether to enable auto renewal.
AutoRenewPeriod object Property autoRenewPeriod: The auto-renewal duration, in months.
AutoUseCoupon object Property autoUseCoupon: Specifies whether to use a coupon.
BackupPolicy object Property backupPolicy: Backup policy.
Capacity object Property capacity: The storage capacity of the instance.
ChargeType object Property chargeType: The billing method of the instance.
Config object Property config: The parameter configuration of the instance, in a JSON string.
CouponNo object Property couponNo: The coupon code.
InstanceClass object Property instanceClass: The instance type.
InstanceName object Property instanceName: The name of the instance.
NetworkType object Property networkType: The network type of the instance.
Password object Property password: The password for the instance.
Period object Property period: The subscription duration, in months.
PrivateIpAddress object Property privateIpAddress: The internal IP address of the instance.
ResourceGroupId object Property resourceGroupId: Resource group ID.
VpcId object Property vpcId: The ID of the VPC.
VpcPasswordFree object Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
VSwitchId object Property vSwitchId: The ID of the VSwitch.
ZoneId object Property zoneId: The ID of the primary zone for the instance.

AutoRenewOptional

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

Property autoRenew: Specifies whether to enable auto renewal.

Valid values: true false Note Default value: false.


AutoRenewPeriodOptional

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

Property autoRenewPeriod: The auto-renewal duration, in months.

Valid values: 1, 2, 3, 6, and 12.

This parameter is required when AutoRenew is set to true.


AutoUseCouponOptional

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

Property autoUseCoupon: Specifies whether to use a coupon.

Valid values: true false Note Default value: false.


BackupPolicyOptional

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

Property backupPolicy: Backup policy.


CapacityOptional

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

Property capacity: The storage capacity of the instance.

Unit: MB. Note You need to pass at least one of the Capacity and InstanceClass parameters when calling the CreateInstance operation.


ChargeTypeOptional

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

Property chargeType: The billing method of the instance.

Valid values: PrePaid: subscription. PostPaid: pay-as-you-go. Note Default value: PostPaid.


ConfigOptional

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

Property config: The parameter configuration of the instance, in a JSON string.

For more information, see Set parameters.


CouponNoOptional

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

Property couponNo: The coupon code.

Default value: default.


InstanceClassOptional

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

Property instanceClass: The instance type.

For more information, see Instance types. Note You need to pass at least one of the Capacity and InstanceClass parameters when calling the CreateInstance operation.


InstanceNameOptional

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

Property instanceName: The name of the instance.

The name must be 2 to 80 characters long, start with a letter (uppercase or lowercase) or a Chinese character, and not contain spaces or the characters @\/:=”<>{[]}.


NetworkTypeOptional

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

Property networkType: The network type of the instance.

Valid values: CLASSIC VPC Note Default value: CLASSIC.


PasswordOptional

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

Property password: The password for the instance.

The password must be 8 to 32 characters long and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The allowed special characters are !@#$%^&*()_+-=.


PeriodOptional

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

Property period: The subscription duration, in months.

Valid values: 1 to 9, 12, 24, 36, and 60.

This parameter is available and required only when ChargeType is set to PrePaid.


PrivateIpAddressOptional

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

Property privateIpAddress: The internal IP address of the instance.

Note The internal IP address must be located in the Classless Inter-Domain Routing (CIDR) block of the VSwitch to which the instance belongs.


ResourceGroupIdOptional

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

Property resourceGroupId: Resource group ID.


VpcIdOptional

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

Property vpcId: The ID of the VPC.


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 ID of the VSwitch.


ZoneIdOptional

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

Property zoneId: The ID of the primary zone for the instance.

You can call the DescribeZones operation to query available zones.

You can also specify a secondary zone by using the SecondaryZoneId parameter. The primary and replica nodes are then deployed in the specified primary and secondary zones to create a dual-zone architecture for in-city disaster recovery.