docs
api
UK8S Service(UK8S)
ListUK8SClusterV2

Retrieve UK8S Cluster Information - ListUK8SClusterV2

Overview

Retrieve UK8S cluster list information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUK8SClusterV2.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
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
OffsetintOffset of the starting position of the list, default is 0.No
LimitintReturn data length, default is 20.No
ClusterIdstringUK8S Cluster IDNo

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
ClusterCountintNumber of clusters that meet the conditionsYes
ClusterSetarray[ClusterSet]Cluster Information, refer to ClusterSet for detailsNo

Data Model

ClusterSet

Field NameTypeDescription InformationRequired
ClusterNamestringResource NameYes
ClusterIdstringCluster IDYes
VPCIdstringBelonging VPCYes
SubnetIdstringSubnet OwnershipYes
PodCIDRstringPod NetworkYes
ServiceCIDRstringService Network SegmentYes
MasterCountintMaster Node QuantityYes
ApiServerstringCluster apiserver addressYes
K8sVersionstringCluster VersionYes
ClusterLogInfostringWhen creating a cluster, judge that if it is NORESOURCE, then there are no resources, otherwise it is empty.No
CreateTimeintCreation TimeNo
NodeCountintNumber of Node NodesNo
ExternalApiServerstringExternal apiserver address of the clusterNo
StatusstringCluster status, enumeration values: Initializing: 'INITIALIZING'; Starting: 'STARTING'; Creation failed: 'CREATEFAILED'; Running normally: 'RUNNING'; Adding node: 'ADDNODE'; Deleting node: 'DELNODE'; Deleting: 'DELETING'; Deletion failed: 'DELETEFAILED'; Error: 'ERROR'; Updating plugin: 'UPDATE_PLUGIN'; Updating plugin information: 'UPDATE_PLUGIN_INFO'; Abnormal: 'ABNORMAL'; Upgrading cluster: 'UPGRADING'; Switching container runtime: 'CONVERTING'.No

Example

Request Example

https://api.surfercloud.com/?Action=ListUK8SClusterV2
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=jrVZnyEh
&Offset=5
&Limit=4
&ClusterId=DiFSEdqw

Response Example

{
  "Action": "ListUK8SClusterV2Response",
  "ClusterCount": 7,
  "ClusterSet": [
    {
      "ApiServer": "lCABdaWT",
      "ClusterId": "SciLLuOV",
      "ClusterName": "qsKUTmxo",
      "CreateTime": 2,
      "ExternalApiServer": "vZfLtCWo",
      "K8sVersion": "KuiydQsJ",
      "MasterCount": 2,
      "NodeCount": 1,
      "PodCIDR": "NtUEVnsd",
      "ServiceCIDR": "yURWbTOO",
      "Status": "cbTawLFM",
      "SubnetId": "qizOyyNS",
      "VPCId": "tkoNZSem"
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved