Docs
api
UK8S Service(UK8S)
DescribeUK8SCluster

Obtain cluster information - DescribeUK8SCluster

Overview

Obtain cluster information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUK8SCluster.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
RegionstringBelonging AreaYes
ProjectIdstringProject IDNo
ClusterIdstringk8s 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
ClusterNamestringResource NameYes
ClusterIdstringCluster IDYes
VPCIdstringBelonging VPCYes
SubnetIdstringSubnet OwnershipYes
PodCIDRstringPod NetworkYes
ServiceCIDRstringService Network SegmentYes
MasterCountintMaster Node QuantityYes
MasterListarray[UhostInfo]Configuration information for the Master node, refer to UhostInfo for specifics. This information is not returned for the hosted version.No
NodeListarray[UhostInfo]Configuration information of Node, refer to UhostInfo for details.No
CreateTimeintCreation TimeNo
NodeCountintNumber of Node NodesNo
ApiServerstringCluster apiserver addressNo
StatusstringStatusNo
ExternalApiServerstringExternal apiserver address of the clusterNo
KubeProxyKubeProxykube-proxy configurationNo
VersionstringK8S VersionNo
ClusterDomainstringCustom or default clusterdomainNo
EtcdCertstringCluster etcd service certificateNo
EtcdKeystringetcd Service Key for ClusterNo
CACertstringCluster CA Root CertificateNo
MasterResourceStatusstringMaster Configuration Alerts: Normal is normal;
Warning requires an upgrade;
Error requires an urgent upgrade;
No

Data Model

UhostInfo

Field NameTypeDescription InformationRequired
ZonestringLocated Data CenterYes
NamestringHost NameYes
CPUintCpu QuantityYes
MemoryintUMemYes
IPSetarray[IPSet]Node IP InformationYes
DiskSetarray[DiskSet]Node Disk InformationYes
NodeIdstringHost IDYes
OsNamestringImage InformationYes
CreateTimeintCreation TimeYes
ExpireTimeintExpiration DateYes
StatestringHost StatusYes
NodeTypestringNode Type: ‘uhost’ represents cloud host; ‘uphost’ represents physical cloud host.Yes

KubeProxy

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

IPSet

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
DefaultstringInformation of whether it is the default elastic network card. true: It is the default elastic network card; other values: No.No

DiskSet

Field NameTypeDescription InformationRequired
TypestringDisk Type. System Disk: Boot, Data Disk: Data, Network Disk: UdiskNo
DiskIdstringLong Disk IDNo
NamestringUDisk Name (only returned when the disk is UDisk)No
DrivestringDisk Drive LetterNo
SizeintDisk size, unit: GBNo
BackupTypestringBackup plan, enumeration type: BASIC_SNAPSHOT, ordinary snapshot; DATAARK, Ark. If there is no snapshot, this field will not be returned.No
IOPSintThe current IOPS value of the hostNo
EncryptedstringYes: Encrypted No: UnencryptedNo
DiskTypestringLOCAL_NORMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISKNo
IsBootstringTrue| FalseNo

Example

Request Example

https://api.dezai.com/?Action=DescribeUK8SCluster
&Region=zfXlbPNP
&Zone=dSenpJQB
&ClusterID=kCvoCLjV

Response Example

{
  "Action": "DescribeUK8SClusterResponse",
  "CACert": "bgsgUSSj",
  "ClusterDomain": "TrnBlMmf",
  "EtcdCert": "KfWoZCox",
  "EtcdKey": "fcwdvzzi",
  "ExternalApiServer": "GVZVJyHy",
  "KubeProxy": {},
  "MasterResourceStatus": "BBlivSsQ",
  "RetCode": 0,
  "Version": "JSrvWaDf"
}