Skip to Content
UK8S Service(UK8S)ListUK8SNodeGroup

List UK8S Node Pools - ListUK8SNodeGroup

Overview

List UK8S Node Pools

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUK8SNodeGroup.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
ClusterIdstringCluster IDYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
NodeGroupListarray[NodeGroupSet]Node Pool ListNo

Data Model

NodeGroupSet

Field NameTypeDescription InformationRequired
ZonestringAvailability Zone. See Availability Zone ListNo
NodeGroupIdstringNode Pool IDNo
NodeGroupNamestringNode Pool NameNo
ImageIdstringImage IDNo
MachineTypestringMachine TypeNo
MinimalCpuPlatformstringCPU PlatformNo
CPUintNumber of Virtual CPU CoresNo
MemintMemory SizeNo
GpuTypestringGPU TypeNo
GPUintNumber of GPU Card CoresNo
BootDiskTypestringSystem Disk TypeNo
BootDiskSizeintSystem Disk SizeNo
DataDiskSizeintData Disk SizeNo
DataDiskTypestringData Disk TypeNo
TagstringBusiness GroupNo
ChargeTypestringPayment MethodNo
NodeListarray[string]Node ID ListNo
SubnetIdstringSubnet ID. Defaults to the subnet ID entered when the cluster was created, but you can also enter the subnet ID within the same VPC as the cluster.No
IsolationGroupIdstringHardware isolation group ID. It can be obtained through DescribeIsolationGroup.No
MaxPodsstringint
Default is 110, it is recommended to set it to 110 or less in a production environment.
No
UserDatastringUser-defined data. This field can be filled in when the image supports the Cloud-init Feature. Note: 1. The total data size should not exceed 16K; 2. Use base64 encoding.No
InitScriptstringUser-defined Shell scripts. The difference from UserData is that InitScript is executed after the node initialization is complete, while UserData is executed during the initialization of the UHost.No
TaintsstringNode taint, in the form of key=value:effect, multiple taints separated by ”,”. Supports up to five groups.No
LabelsstringNode label. In the form of key=value, separated by ”,” for multiple groups, up to 5 groups. For example, env=pro,type=gameNo

Example

Request Example

https://api.ucloud-global.com/?Action=ListUK8SNodeGroup &Region=cn-zj &Zone=cn-zj-01 &ProjectId=wVpiDplE &ClusterId=RXIkKKuX &TopOrgId=8 &OrgId=4 &AzGroup=5

Response Example

{ "Action": "ListUK8SNodeGroupResponse", "NodeGroupList": [ { "BootDiskType": "ceGeUMIV", "CPU": 6, "ChargeType": "addNhDvH", "DataDiskSize": 8, "DataDiskType": "qqncHfyc", "GPU": 7, "GpuType": "neHNFfsx", "ImageId": "PVoCRmtW", "MachineType": "GJXNpRmz", "Mem": 7, "MinimalCpuPlatform": "uEqOcnpP", "NodeGroupId": "ayLygrGZ", "NodeGroupName": "svwqEVOH", "NodeList": "ndxnQQhO", "Tag": "XUcqKwjh" } ], "RetCode": 0 }