InstanceProps
Properties for defining a Instance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-hologram-instance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkhologram"
&alicloudroscdkhologram.InstanceProps {
Endpoints: interface{},
InstanceName: interface{},
InstanceType: interface{},
PaymentType: interface{},
ZoneId: interface{},
AutoPay: interface{},
ColdStorageSize: interface{},
Cpu: interface{},
Duration: interface{},
GatewayCount: interface{},
InitialDatabases: interface{},
LeaderInstanceId: interface{},
PricingCycle: interface{},
ProductCode: interface{},
ResourceGroupId: interface{},
ScaleType: interface{},
StorageSize: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkhologram.RosInstance.TagsProperty,
}
Properties
| Name | Type | Description |
|---|---|---|
Endpoints |
interface{} |
Property endpoints: List of domain names. |
InstanceName |
interface{} |
Property instanceName: The name of the resource. |
InstanceType |
interface{} |
Property instanceType: The instance type. |
PaymentType |
interface{} |
Property paymentType: The payment type of the resource. |
ZoneId |
interface{} |
Property zoneId: The zone Id. |
AutoPay |
interface{} |
Property autoPay: Whether to pay automatically. |
ColdStorageSize |
interface{} |
Property coldStorageSize: Instance low-frequency storage space. |
Cpu |
interface{} |
Property cpu: Instance specifications. |
Duration |
interface{} |
Property duration: The buying cycle. |
GatewayCount |
interface{} |
Property gatewayCount: Number of gateway nodes. |
InitialDatabases |
interface{} |
Property initialDatabases: Initialize the database and split multiple database names ",". |
LeaderInstanceId |
interface{} |
Property leaderInstanceId: The id of leader instance. |
PricingCycle |
interface{} |
Property pricingCycle: Billing cycle. |
ProductCode |
interface{} |
Property productCode: product code. |
ResourceGroupId |
interface{} |
Property resourceGroupId: The ID of the resource group. |
ScaleType |
interface{} |
Property scaleType: Change matching type. |
StorageSize |
interface{} |
Property storageSize: The standard storage space of the instance. |
Tags |
*[]TagsProperty |
Property tags: Tags of instance. |
EndpointsRequired
Endpoints interface{}
- Type: interface{}
Property endpoints: List of domain names.
InstanceNameRequired
InstanceName interface{}
- Type: interface{}
Property instanceName: The name of the resource.
InstanceTypeRequired
InstanceType interface{}
- Type: interface{}
Property instanceType: The instance type.
Value:
- Standard: Universal.
- Follower: Read-only slave instance.
- Warehouse: calculation group type.
- Shared: Shared.
PaymentTypeRequired
PaymentType interface{}
- Type: interface{}
Property paymentType: The payment type of the resource.
ZoneIdRequired
ZoneId interface{}
- Type: interface{}
Property zoneId: The zone Id.
AutoPayOptional
AutoPay interface{}
- Type: interface{}
Property autoPay: Whether to pay automatically.
The default value is true. Value:
- true: automatic payment
- false: only generate orders, not pay
The default value is true. If the balance of your payment method is insufficient, you can set the parameter AutoPay to false, and an unpaid order will be generated. You can log in to the user Center to pay by yourself.
ColdStorageSizeOptional
ColdStorageSize interface{}
- Type: interface{}
Property coldStorageSize: Instance low-frequency storage space.
Unit: GB.
Pay-As-You-Go (PostPaid) instances ignore this parameter.
CpuOptional
Cpu interface{}
- Type: interface{}
Property cpu: Instance specifications.
Value:
- 8 cores 32 GB (number of compute nodes: 1)
- 16 cores 64 GB (number of compute nodes: 1)
- 32 core 128 GB (number of compute nodes: 2)
- 64 core 256 GB (number of compute nodes: 4)
- 96 core 384 GB (number of computing nodes: 6)
- 128 core 512 GB (number of compute nodes: 8)
- Wait
- just fill in the audit number.
- Please submit a work order application for purchasing 1024 or above specifications.
- Shared instance types do not need to specify specifications. The specification of -8 core 32GB (number of computing nodes: 1) is only for experience use and cannot be used for production.
DurationOptional
Duration interface{}
- Type: interface{}
Property duration: The buying cycle.
Buy for 2 months.
If the Payment type is PostPaid, you do not need to specify it.
GatewayCountOptional
GatewayCount interface{}
- Type: interface{}
Property gatewayCount: Number of gateway nodes.
InitialDatabasesOptional
InitialDatabases interface{}
- Type: interface{}
Property initialDatabases: Initialize the database and split multiple database names ",".
LeaderInstanceIdOptional
LeaderInstanceId interface{}
- Type: interface{}
Property leaderInstanceId: The id of leader instance.
PricingCycleOptional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: Billing cycle.
Value:
- Month: monthly billing
- Hour: hourly billing
- PrePaid only supports Month
- PostPaid only supports Hour
- The Shared type is automatically set to Hour without specifying it.
ProductCodeOptional
ProductCode interface{}
- Type: interface{}
Property productCode: product code.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group.
ScaleTypeOptional
ScaleType interface{}
- Type: interface{}
Property scaleType: Change matching type.
Value:
- UPGRADE: UPGRADE
- DOWNGRADE: Downgrading
- The upgrade specification cannot be less than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is larger than the original specification.
- The downgrading specification cannot be greater than the original specification. A blank field indicates that the original specification remains unchanged. On this basis, at least one specification is smaller than the original specification.
StorageSizeOptional
StorageSize interface{}
- Type: interface{}
Property storageSize: The standard storage space of the instance.
Unit: GB.
Pay-As-You-Go instances (PostPaid) ignore this parameter.
TagsOptional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags: Tags of instance.