All Products
Search
Document Center

Platform For AI:CreateNodeGroup

Last Updated:Apr 01, 2026

Create a node group in a cluster.

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:CreateNodeGroup

create

*Cluster

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

None None

Request parameters

Parameter

Type

Required

Description

Example

NodeGroup

object

Yes

The node group configurations.

Az

string

Yes

The availability zone of the node group.

cn-wulanchabu-b

NodeGroupDescription

string

No

The description of the node group.

节点分组描述

NodeGroupName

string

Yes

The name of the node group.

PAI-LINGJUN

MachineType

string

Yes

The machine type for the nodes in the node group.

mock-machine-type3

ImageId

string

Yes

The image ID for the nodes.

i191887641687336652616

UserData

string

No

The user data for the nodes.

#!/bin/bash uptime echo "aaaaaaa" >> /tmp/ttttt20250110141010.sh

SystemDisk

object

No

The system disk configurations for the nodes.

Size

integer

No

The size of the system disk, in GB.

1000

PerformanceLevel

string

No

The performance level of the ESSD. Valid values:

  • PL0: Delivers up to 10,000 random read/write IOPS.

  • PL1: Delivers up to 50,000 random read/write IOPS.

PL1

Category

string

No

The disk type of the system disk. Valid values:

  • cloud_essd: ESSD.

clou_essd

FileSystemMountEnabled

boolean

No

Whether to enable file storage mounting.

false

VirtualGpuEnabled

boolean

No

Whether to enable GPU virtualization.

false

KeyPairName

string

No

The name of the key pair for SSH logon.

test-keypair

LoginPassword

string

No

The login password for the nodes.

test-LoginPassword

RamRoleName

string

No

ClusterId

string

Yes

The ID of the cluster that contains the node group.

i118191731740041623425

NodeUnit

object

No

The configuration of the node.

{\"NodeUnitId\":\"3c2999a8-2b95-4409-93c5-ad3985fc5c9f\",\"ResourceGroupId\":\"\",\"MaxNodes\":0,\"NodeUnitName\":\"asi_cn-serverless-sale_e01-lingjun-psale\"}

any

No

The node information.

{\"NodeUnitId\":\"3c2999a8-2b95-4409-93c5-ad3985fc5c9f\",\"ResourceGroupId\":\"\",\"MaxNodes\":0,\"NodeUnitName\":\"asi_cn-serverless-sale_e01-lingjun-psale\"}

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

887FA855-89F4-5DB3-B305-C5879EC480E6

NodeGroupId

string

The node group ID.

ng-ec3c96ff0aa4c60d

NodeGroupName

string

The node group name.

emr-default

Examples

Success response

JSON format

{
  "RequestId": "887FA855-89F4-5DB3-B305-C5879EC480E6",
  "NodeGroupId": "ng-ec3c96ff0aa4c60d",
  "NodeGroupName": "emr-default"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.