You can call the ScaleOutCluster operation to add worker nodes to a managed edge Kubernetes cluster. You can add only Edge Node Service (ENS) instances to a managed edge Kubernetes cluster.

Note The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to a Container Service for Kubernetes (ACK) cluster, call the ScaleClusterNodePool API operation. For more information, see ScaleClusterNodePool.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request syntax

POST /api/v2/clusters/ClusterId HTTP/1.1
  "count" : Long,
  "worker_instance_type" : "String",
  "ens_region_id" : "String",
  "worker_image_id" : "String",
  "ens_internet_charge_type": "String",
  "worker_period": Long,
  "login_password": "String",
  "worker_system_disk_size": Long,
  "is_edge_worker": Boolean,
  "worker_data_disk_size": Long,
  "worker_auto_renew": Boolean,
  "worker_auto_renew_period": Long,
  "timeout_mins": Long

Request parameters

Table 1. Request path parameters
Parameter Type Required Example Description
ClusterId String Yes Cccfd68c474454665ace07efce924****

The ID of the cluster.

Table 2. Request body parameters
Parameter Type Required Example Description
count Long Yes 1 The number of ENS instances that you want to add.
worker_instance_type String Yes ens.sn1.tiny The type of ENS instance.
ens_region_id String Yes cn-beijing-cmcc-2 The ID of the region where the ENS instances are deployed.
worker_image_id String Yes centos_7_06_64_20G_alibase_2019****

Specifies a custom image for nodes. By default, the system image is used. You can select a custom image to replace the default image. For more information, see Custom images.

ens_Internet_charge_type String Yes BandwidthByDay The billing method. Valid values:
  • BandwidthByDay: Pay by daily peak bandwidth.
  • 95BandwidthByMonth: Pay by monthly 95th percentile bandwidth.
worker_period Long Yes 1

The subscription duration of worker nodes. This parameter takes effect and is required only if worker_instance_charge_type is set to PrePaid.

Valid values: 1, 2, 3, 6, 12, 24, 36, 48, and 60.

Default value: 1.

login_password String Yes HelloWorl****

The password for Secure Shell (SSH) logon. You must set this parameter or the key_pair parameter. The password must be 8 to 30 characters in length, and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

worker_system_disk_size Long Yes 40 The size of the system disk. Unit: GiB. The value must be a multiple of 10 from 20 to 100. The size of the system disk must be greater than that of the operating system image.
is_edge_worker Boolean Yes true Specifies whether to add the ENS instances as edge worker nodes. Valid values:
  • true: adds the ENS instances as edge worker nodes.
  • false: does not add the ENS instances as edge worker nodes.
To add ENS instances to a manged edge Kubernetes cluster, the value must be set to true.
worker_data_disk_size Long No 40 The size of a data disk. If no data disk is required, set the value to 0. Otherwise, set the value to a multiple of 10 from 20 to 200.
worker_auto_renew Boolean No true Specifies whether to enable auto-renewal. Valid values:
  • true: enables auto-renewal.
  • false: disables auto-renewal.
Default value: false.
worker_auto_renew_period Long No 1 The subscription duration that is added each time the ENS instances are renewed. This parameter is required if worker_auto_renew is set to true. Valid values: 1 to 12.
timeout_mins Long No 60 The timeout period in minutes during which the ENS instances must be added.

Response syntax

HTTP/1.1 200
  "cluster_id" : "String",
  "request_id" : "String",
  "task_id" : "String"

Response parameters

Table 3. Response body parameters
Parameter Type Example Description
cluster_id String Cccfd68c474454665ace07efce924****

The ID of the cluster.

request_id String 687C5BAA-D103-4993-884B-C35E4314A1E1

The ID of the request.

task_id String T-5a54309c80282e39ea00002f

The ID of the task.

An example on how to scale out a managed edge Kubernetes cluster

Sample requests

POST /api/v2/clusters/Cccfd68c474454665ace07efce924**** 
<Common request headers>
  "timeout_mins": 60,
  "worker_instance_type": "ens.sn1.tiny",
  "ens_region_id": "cn-beijing-telecom",
  "worker_image_id": "m-2QVLO2T8NYgm8CNQVg****",  
  "ens_internet_charge_type": "BandwidthByDay",
  "worker_period": 1,
  "worker_auto_renew": true,
  "worker_auto_renew_period": 1,
  "login_password": "Hello1234!",
  "count": 1,
  "worker_system_disk_size": 20,
  "worker_data_disk_size": 0,
  "is_edge_worker": true

Sample success responses

XML format


JSON format

    "cluster_id": "c82e6987e2961451182edacd74faf****",
    "task_id": "T-5a54309c80282e39ea00002f",
    "request_id": "687C5BAA-D103-4993-884B-C35E4314A1E1"

Error codes

For a list of error codes, visit the API Error Center.