Docs
api
UK8S Service(UK8S)
ListUK8SClusterNodeV2

Obtain UK8S cluster node information - ListUK8SClusterNodeV2

Overview

Obtain UK8S cluster node information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUK8SClusterNodeV2.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
ClusterIdstringUK8S Cluster 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
NodeSetarray[NodeInfoV2]Details of the node, see NodeInfoV2.Yes
TotalCountintThe number of nodes that meet the conditions, including Master.Yes

Data Model

NodeInfoV2

Field NameTypeDescription InformationRequired
ZonestringNode’s Availability ZoneYes
NodeIdstringNodeId, the unique identifier of the Node in UK8S, such as uk8s-reewqe5-sdasadsdaYes
NodeRolestringNode role, enumeration values are master, nodeYes
NodeStatusstringNode status: Enumeration values: Initialization: “Initializing”; Starting: “Starting”; Running: “Running”; Stopping: “Stopping”; Stopped: “Stopped”; To Be Deleted: “ToBeDeleted”; Deleting: “Deleting”; Error: “Error”; Install Fail: “Install Fail”.Yes
InstanceTypestringThe resource type of the Node node, the enumeration value is UHost or UPHost.Yes
InstanceNamestringResource Name, initial value equals NodeId, users can modify it at UHost or UPHost.Yes
InstanceIdstringResource ID, such as uhost-xxxx, or uphost-xxxxx.Yes
MachineTypestringType of machine, corresponding to MachineType of Uhost or PHostType of PHost.Yes
OsTypestringThe type of operating system for the Node, such as Linux or Windows.Yes
OsNamestringThe image name of the Node node.Yes
CPUintNumber of CPU cores in the Node, unit: pieces.Yes
MemoryintMemory size, unit: MB.Yes
IPSetarray[UHostIPSet]Node IP information, see UHostIPSet for details.Yes
CreateTimeintNode Creation TimeYes
ExpireTimeintNode Billing Expiration TimeYes
AsgIdstringThe ID of the scaling group to which the node belongs. For nodes not created by the scaling group, the scaling group ID is Default.Yes
UnschedulablebooleanWhether to allow Pod scheduling to this node, the enumeration value is true or false.Yes
KubeProxyKubeProxyInformation on kubeproxy, see KubeProxy for details.Yes
NodeLogInfostringWhen adding a node, determine whether there are no resources. If NORESOURCE is returned, it means there are no resources left.Yes
GPUintThe number of GPUs in the node.No

UHostIPSet

Field NameTypeDescription InformationRequired
TypestringInternational: International, BGP: Bgp, Private Network: PrivateNo
IPIdstringResource ID of IP (No corresponding resource ID for internal IP)No
IPstringIP AddressNo
BandwidthintBandwidth corresponding to the IP, unit: Mb (Bandwidth information is not displayed for internal IP)No
VPCIdstringVPC ID corresponding to the IP addressNo
SubnetIdstringSubnet ID corresponding to the IP addressNo
MacstringMAC AddressNo

KubeProxy

Field NameTypeDescription InformationRequired
ModestringKubeProxy mode, enumeration values are [ipvs, iptables]No

Example

Request Example

https://api.dezai.com/?Action=ListUK8SClusterNodeV2
&Region=cn-zj
&ProjectId=tcpNeveH
&ClusterId=UZFeTeQg

Response Example

{
  "Action": "ListUK8SClusterNodeV2Response",
  "MasterList": [
    {
      "AsgId": "ZSoMzQUG",
      "BasicImageName": "AvDDPeuv",
      "CPU": 9,
      "CreateTime": 1,
      "ExpireTime": 9,
      "GPU": 3,
      "HostType": "CiqztSMG",
      "IPSet": [
        {
          "Bandwidth": 1,
          "Default": "fkBpzlPQ",
          "IP": "AEMpLpMr",
          "IPId": "ZJQDIEzr",
          "Mac": "rjizzEse",
          "SubnetId": "bxYSrMgl",
          "Type": "shzOBwxT",
          "VPCId": "bjpJSrMz"
        }
      ],
      "InstanceId": "rbTPwvaj",
      "InstanceName": "zbUQMbej",
      "MachineType": "opgyDvSn",
      "Memory": 9,
      "NodeId": "gNvfqKWV",
      "OsName": "bgpWkLID",
      "OsType": "vkzHZoYO",
      "State": "EyECtWVo",
      "UHostDiskSet": [
        {
          "BackupType": "GPAKbeiX",
          "DiskId": "ILwnaPJR",
          "DiskType": "qIGGJZOD",
          "Drive": "uHjecSxj",
          "Encrypted": "CmdZIplB",
          "IOPS": 4,
          "IsBoot": "svkrxtpA",
          "Name": "QfPxfuar",
          "Size": 3,
          "Type": "WhHaGvPu"
        }
      ],
      "Zone": "flRgPYsL"
    }
  ],
  "NodeList": {},
  "RetCode": 0
}