ExtendCluster

Updated at:

Scales out a cluster.

Operation description

Closes a remote session.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:ExtendCluster

update

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/{#ClusterId}

  • eflo:ImageSource
  • eflo:ImageOwnerId
  • eflo:IsSystemDiskEncrypted
  • eflo:IsDiskEncrypted
None

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

No

The cluster ID.

i15b480fbd2fcdbc2869cd80

NodeGroups

array<object>

No

The node groups.

array<object>

No

The node groups.

Nodes

array<object>

No

The list of nodes.

array<object>

No

The list of nodes.

Hostname

string

No

The hostname.

d044d220-33fd-11ed-86a6

NodeId

string

No

The node ID.

e01-cn-zvp2zdpy601

LoginPassword

string

No

The logon password.

Demo****123!

VpcId

string

No

The VPC ID.

vpc-0jlasms92fdxqd3wlf8ny

VSwitchId

string

No

The vSwitch ID.

vsw-bp169pi5fj151rrms4sia

DataDisk

array<object>

No

The data cloud disk specifications.

object

No

The data cloud disk specifications.

DeleteWithNode

boolean

No

Specifies whether the data cloud disk is deleted when the node is unsubscribed.

true

Category

string

No

The disk category.

cloud_essd

Size

integer

No

The disk size.

80

PerformanceLevel

string

No

The performance parameter of the data cloud disk.

PL0

BurstingEnabled

boolean

No

Specifies whether to enable burstable performance.

true

ProvisionedIops

integer

No

The provisioned performance (IOPS). Valid values: 0 to 50000.

1000

Device

string

No

The device name of the data cloud disk. This parameter applies only to full image scenarios. You can use this parameter to set the device name of the data cloud disk to match the source data cloud disk in the full image, and modify the properties of the corresponding data cloud disk. For non-full image scaling, the Device parameter is set by the system by default. When you use full image scaling:

  • Regardless of whether the data cloud disk parameters are explicitly set, the system restores the data cloud disks from the source image. The content is consistent with the source image data cloud disks.

  • If the data cloud disk is explicitly specified but the Device parameter is not set, additional empty data cloud disks are created. The quantity and properties are specified by the data cloud disk parameters provided by the user.

  • If the data cloud disk Device is explicitly specified but does not match the Device of the source image data cloud disk, additional empty data cloud disks are created. The quantity and properties are specified by the data cloud disk parameters provided by the user.

  • If multiple data cloud disks and their Devices are explicitly specified, but all Devices point to the device of a single data cloud disk in the source image, only one of the specified data cloud disks matches and overwrites the source image data cloud disk. The other specified data cloud disks are silently discarded, and no additional empty data cloud disks are created.

  • If the data cloud disk Device is explicitly specified and matches the Device of the source image data cloud disk, no additional empty data cloud disks are created. The data cloud disks specified by the user correspond one-to-one with the source image data cloud disks. If the Size of the data cloud disk set by the user is less than the Size of the source image data cloud disk, HTTP status code 417 and the error message "Data disk Size can not be less than the image data disk snapshot size for Device '/dev/xvdb'" are returned.

  • Total number of data cloud disks = Number of data cloud disks mounted on the node + Number of data cloud disks restored from the image. For standard cloud disk groups, the maximum is 16. If CPFS is enabled, the maximum is 4.

/dev/xvdb

Encrypted

boolean

No

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: Encrypted.

  • false: Not encrypted.

Default value: false.

Important When you use a shared encrypted image to create a cloud disk based on an encrypted snapshot, you must set the Encrypted request parameter to true for the cloud disk to ensure that the created cloud disk uses the recipient's own key.

false

KMSKeyId

string

No

The KMS key ID for the data cloud disk.

If Encrypted is set to true and KMSKeyId is not specified, the default key is used for encryption, and the KMSKeyId value is returned after the instance is created.

  • If the cloud disk is created from an unshared encrypted snapshot: The encryption key used by the snapshot is used by default.

  • If the cloud disk is created from a shared encrypted snapshot: The service key is used by default.

  • If the cloud disk is created in a region where account-level default encryption for Block Storage is enabled: The specified account-level key is used by default.

  • In other cases: The service key is used by default.

719e7359-1a44-4bab-a520-6d4648b610d0

SecurityGroupId

string

No

The security group ID.

sg-uf68xu2102avz7pl3t5d

HyperNodes

array<object>

No

The list of hypernodes.

array<object>

No

The hypernode information.

Hostname

string

No

The hostname.

liliang-rmn7stf7-0000

LoginPassword

string

No

The logon password.

Demo****123!

HyperNodeId

string

No

The hypernode ID.

e01-cn-2r42tmj4z02

VpcId

string

No

The VPC ID.

vpc-0jl8gs7qmx89739e210dn

VSwitchId

string

No

The vSwitch ID.

vsw-8vbobo4cvzsygw98f4j6b

DataDisk

array<object>

No

The list of disk information.

object

No

The disk information.

DeleteWithNode

boolean

No

Specifies whether the data cloud disk is deleted when the node is unsubscribed.

True

Category

string

No

The disk category. Valid values:

  • cloud_essd: ESSD.

cloud_essd

Size

integer

No

The disk size. Unit: GiB.

10

PerformanceLevel

string

No

The performance level of the ESSD when it is used as the system cloud disk. Valid values:

  • PL0: A single disk can deliver up to 10,000 random read/write IOPS.

  • PL1: A single disk can deliver up to 50,000 random read/write IOPS.

PL1

BurstingEnabled

boolean

No

Specifies whether to enable burstable performance.

false

ProvisionedIops

integer

No

The read and write IOPS of the provisioned performance for a single ESSD AutoPL cloud disk.

9600

Device

string

No

The device name of the data cloud disk. This parameter applies only to full image scenarios. You can use this parameter to set the device name of the data cloud disk to match the source data cloud disk in the full image, and modify the properties of the corresponding data cloud disk. For non-full image scaling, the Device parameter is set by the system by default. When you use full image scaling:

  • Regardless of whether the data cloud disk parameters are explicitly set, the system restores the data cloud disks from the source image. The content is consistent with the source image data cloud disks.

  • If the data cloud disk is explicitly specified but the Device parameter is not set, additional empty data cloud disks are created. The quantity and properties are specified by the data cloud disk parameters provided by the user.

  • If the data cloud disk Device is explicitly specified but does not match the Device of the source image data cloud disk, additional empty data cloud disks are created. The quantity and properties are specified by the data cloud disk parameters provided by the user.

  • If multiple data cloud disks and their Devices are explicitly specified, but all Devices point to the device of a single data cloud disk in the source image, only one of the specified data cloud disks matches and overwrites the source image data cloud disk. The other specified data cloud disks are silently discarded, and no additional empty data cloud disks are created.

  • If the data cloud disk Device is explicitly specified and matches the Device of the source image data cloud disk, no additional empty data cloud disks are created. The data cloud disks specified by the user correspond one-to-one with the source image data cloud disks. If the Size of the data cloud disk set by the user is less than the Size of the source image data cloud disk, HTTP status code 417 and the error message "Data disk Size can not be less than the image data disk snapshot size for Device '/dev/xvdb'" are returned.

  • Total number of data cloud disks = Number of data cloud disks mounted on the node + Number of data cloud disks restored from the image. For standard cloud disk groups, the maximum is 16. If CPFS is enabled, the maximum is 4.

/dev/xvdb

Encrypted

boolean

No

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: Encrypted.

  • false: Not encrypted.

Default value: false.

Important When you use a shared encrypted image to create a cloud disk based on an encrypted snapshot, you must set the Encrypted request parameter to true for the cloud disk to ensure that the created cloud disk uses the recipient's own key.

false

KMSKeyId

string

No

The KMS key ID for the data cloud disk.

If Encrypted is set to true and KMSKeyId is not specified, the default key is used for encryption, and the KMSKeyId value is returned after the instance is created.

  • If the cloud disk is created from an unshared encrypted snapshot: The encryption key used by the snapshot is used by default.

  • If the cloud disk is created from a shared encrypted snapshot: The service key is used by default.

  • If the cloud disk is created in a region where account-level default encryption for Block Storage is enabled: The specified account-level key is used by default.

  • In other cases: The service key is used by default.

69dfe996-ae32-4d61-a4aa-914aff3fc3a0

SecurityGroupId

string

No

The security group ID.

sg-uf68xu2102avz7pl3t5d

NodeGroupId

string

No

The node group ID.

i16d4883a46cbadeb4bc9

UserData

string

No

The custom executable shell script. The script must be Base64-encoded. The maximum size of the raw data is 16 KB.

ZWNobyBoZWxsbyBlY3Mh

ZoneId

string

No

The zone ID.

cn-hangzhou-i

Amount

integer

No

The number of nodes to purchase. Valid values: 0 to 500. If the Amount parameter is set to 0, no nodes are purchased, and existing nodes are used for scaling. If the Amount parameter is set to a value from 1 to 500, a specified number of nodes are purchased and used for scaling. Default value: 0.

4

ChargeType

string

No

The billing method of the node. This parameter does not take effect when the Amount parameter is set to 0. Valid values: PREPAY: subscription; POSTPAY: pay-as-you-go. Default value: PREPAY.

PostPaid

Period

integer

No

The subscription period of the node. Unit: months. Valid values: 1, 6, 12, 24, 36, and 48. This parameter takes effect only when the Amount parameter is not set to 0 and the ChargeType parameter is set to PREPAY.

6

AutoRenew

boolean

No

Specifies whether to enable auto-renewal for the purchased node. This parameter takes effect only when the Amount parameter is not set to 0 and the ChargeType parameter is set to PREPAY or POSTPAY. Valid values: True: Auto-renewal is enabled. False: Auto-renewal is disabled. Default value: False.

True

Hostnames

array

No

The hostnames of the purchased nodes. This parameter does not take effect when the Amount parameter is set to 0.

string

No

The hostname.

i22c11282.eu95sqa

LoginPassword

string

No

The logon password of the purchased node. This parameter does not take effect when the Amount parameter is set to 0.

skkO(*89Y

NodeTag

array<object>

No

The node tags.

object

No

The node tags.

Key

string

No

The tag key of the node.

key_my

Value

string

No

The tag value of the node.

value_my

VpcId

string

No

The VPC ID.

vpc-0jl3b0c0ukydlfezr13n6

VSwitchId

string

No

The vSwitch ID.

vsw-uf65m8xqjgy55xj9jw92n

SavingsPlanId

string

No

The savings plan ID.

spn-25e985acAWbrwEBJ

IgnoreFailedNodeTasks

boolean

No

Specifies whether to skip failed nodes. Default value: false.

false

VpdSubnets

array

No

The list of cluster subnets.

string

No

The VPD subnet.

["subnet-3od2fe","subnet-fdo3dv"]

IpAllocationPolicy

array<object>

No

The combined IP allocation policies. Each policy supports only one policy type, and multiple policies can be combined.

array<object>

No

The IP allocation policy.

BondPolicy

object

No

Specifies the cluster subnet ID based on the bond name.

BondDefaultSubnet

string

No

The default bond cluster subnet.

subnet-3od2fe

Bonds

array<object>

No

The bond information.

object

No

The bond object.

Name

string

No

The bond name.

Bond0

Subnet

string

No

The source cluster subnet for IP addresses.

subnet-3od2fe

MachineTypePolicy

array<object>

No

The machine type allocation policy.

array<object>

No

The policy object.

Bonds

array<object>

No

The bond information.

object

No

The bond object.

Name

string

No

The bond name.

Bond0

Subnet

string

No

The source cluster subnet for IP addresses.

subnet-fdo3dv

MachineType

string

No

The machine type.

efg1.nvga1

NodePolicy

array<object>

No

The node allocation policy.

array<object>

No

The policy object.

Bonds

array<object>

No

The bond information.

object

No

The bond object.

Name

string

No

The bond name.

Bond0

Subnet

string

No

The source cluster subnet for IP addresses.

subnet-fdo3dv

NodeId

string

No

The node ID.

i-3fdodw2

Hostname

string

No

The hostname.

a100-xa5dza28-0085

VSwitchZoneId

string

No

The zone ID of the vSwitch.

Valid values:

  • cn-beijing-d :

    cn-beijing-b

cn-shanghai-b

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

03668372-18FF-5959-98D9-6B36A4643C7A

TaskId

string

The task ID.

i158475611663639202234

Examples

Success response

JSON format

{
  "RequestId": "03668372-18FF-5959-98D9-6B36A4643C7A",
  "TaskId": "i158475611663639202234"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.