MENU
      Get cluster
        • PDF

        Get cluster

        • PDF

        Article summary

        Available in VPC

        Get specific cluster information.

        Request

        The following describes the request format for the endpoint. The request format is as follows:

        MethodURI
        GET/clusters/{uuid}

        Request headers

        For headers common to all Ncloud Kubernetes Service APIs, see Ncloud Kubernetes Service common request headers.

        Request path parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        uuidStringRequiredCluster's UUID

        Request example

        The following is a sample request.

        curl --location --request GET 'https://nks.apigw.ntruss.com/vnks/v2/clusters/****a20e-e0fb-4dc9-af1b-97fd3f8d****' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Sub Account Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --header 'Content-Type: application/json'
        Curl

        Response

        The following describes the response format.

        Response body

        The following describes the response body.

        FieldTypeRequiredDescription
        clusterArray-Cluster list
        cluster.cpuCountInteger-Number of CPUs
        cluster.memorySizeInteger-Total memory capacity
        cluster.statusString-Cluster status
        cluster.nodeCountInteger-Total number of nodes registered
        cluster.nodeMaxCountInteger-Maximum number of available nodes
        cluster.clusterTypeString-Cluster type
        cluster.hypervisorCodeString-Hypervisor code
        cluster.instanceNoInteger-Instance number
        cluster.idInteger-Cluster ID
        cluster.acgNameString-ACG name
        cluster.acgNoInteger-ACG number
        cluster.capacityString-Cluster capacity
        cluster.createdAtString-Cluster creation date and time
        cluster.updatedAtString-Last update date and time
        cluster.endpointString-Control Plane API address
        cluster.uuidString-Cluster UUID
        cluster.nameString-Cluster name
        cluster.k8sVersionString-Kubernetes version
        cluster.regionCodeString-Region code
        cluster.kuberNetworkPluginString-CNI plugin code
        cluster.vpcNoInteger-VPC ID
        cluster.subnetNoList[]Array-Subnet ID list
        cluster.subnetLbNoInteger-@deprecated Load Balancer-only subnet ID
        cluster.lbPivateSubnetNoInteger-Load balancer private subnet ID
        cluster.lbPivateSubnetNameString-Load balancer private subnet name
        cluster.lbPublicSubnetNoInteger-Load balancer private subnet number
        cluster.lbPublicSubnetNameString-Load balancer private subnet name
        cluster.vpcNameString-VPC name
        cluster.subnetNameString-@deprecated Subnet name
        cluster.subentNameList[]Array-
        cluster.subnetLbNameString-@deprecated Load Balancer-only subnet name
        cluster.loginKeyNameString-Authentication key name
        cluster.zoneCodeString-Zone code
        cluster.zoneNoInteger-Zone number
        cluster.logArray-Log list
        cluster.log.auditBoolean-Set audit log
        cluster.publicNetworkBoolean-Public Network
        cluster.iamAuthBoolean-
        cluster.isDefaultIamAuthBoolean-
        cluster.returnProtectionBoolean-
        cluster.kmsKeyTagString-
        cluster.nodePool[]Array-NodePool list
        cluster.nodePool[].instanceNoInteger-NodePool instance number
        cluster.nodePool[].k8sVersionString-NodePool Kubernetes version
        cluster.nodePool[].nameString-NodePool name
        cluster.nodePool[].nodeCountInteger-Number of nodes
        cluster.nodePool[].subnetNoList[]Array-NodePool subnet number list
        cluster.nodePool[].subnetNameList[]Array-@deprecated NodePool subnet name list
        cluster.nodePool[].softwareCodeString-Software code
        cluster.nodePool[].productCodeString-Product code
        cluster.nodePool[].serverSpecCodeString-Server specification code
        cluster.nodePool[].storageSizeInteger-Storage size
        cluster.nodePool[].statusString-NodePool status
        cluster.nodePool[].autoscaleArray-Autoscaling list
        cluster.nodePool[].autoscale.enabledBoolean-
        cluster.nodePool[].autoscale.minInteger-
        cluster.nodePool[].autoscale.maxInteger-
        cluster.nodePool[].serverRoleIdString-IAM server role ID

        Response status codes

        For response status codes common to all Ncloud Kubernetes Service APIs, see Ncloud Kubernetes Service response status codes.

        Response example

        The following is a sample example.

        {
            "cluster": {
                "cpuCount": 2,
                "memorySize": 8,
                "status": "RUNNING",
                "nodeCount": 1,
                "nodeMaxCount": 1,
                "clusterType": "AAA.VNKS.STAND.C002.M008.G000",
                "hypervisorCode": "KVM",
                "instanceNo": 23320000,
                "id": 14000,
                "acgName": "nks-14000-acgname",
                "acgNo": 1600009,
                "capacity": "vCPU 2EA, Memory 8GB",
                "createdAt": "2024-03-28T07:30:59.000Z",
                "updatedAt": "2024-03-28T08:26:33.000Z",
                "endpoint": "https://****a20e-e0fb-4dc9-af1b-97fd3f8d****.kr.vnks.ntruss.com",
                "uuid": "****a20e-e0fb-4dc9-af1b-97fd3f8d****",
                "name": "cluster00",
                "k8sVersion": "1.27.9-nks.2",
                "regionCode": "KR",
                "kubeNetworkPlugin": "cilium",
                "vpcNo": 59000,
                "subnetNoList": [
                    139000
                ],
                "subnetLbNo": 139000,
                "lbPrivateSubnetNo": 139000,
                "lbPrivateSubnetName": "-",
                "lbPublicSubnetNo": 139000,
                "lbPublicSubnetName": "-",
                "vpcName": "k8s-vpc | 10.0.0.0/16",
                "subnetName": "k8s-subnet",
                "subnetNameList": [
                    "k8s-subnet | KR-1 | 0.0.0.0/0 | Public"
                ],
                "subnetLbName": "k8s-lbsubnet2 | KR-1 | 0.0.0.0/0 | Private",
                "loginKeyName": "a123",
                "zoneCode": "KR-1",
                "zoneNo": 2,
                "log": {
                    "audit": false
                },
                "publicNetwork": true,
                "iamAuth": true,
                "isDefaultIamAuth": true,
                "returnProtection": true,
                "kmsKeyTag": "****83e65495374b9cf590a783f442fd50eb48c54eb56774de1ff62bcda4****",
                "nodePool": [
                    {
                        "instanceNo": 23320000,
                        "k8sVersion": "1.27.9",
                        "name": "nodepool",
                        "nodeCount": 1,
                        "subnetNoList": [],
                        "subnetNameList": [],
                        "softwareCode": "SW.AAAA.OS.LNX64.UBNTU.SVR22.WRKND.AAAA",
                        "productCode": "SVR.AAAA.STAND.C002.M008.AAAA",
                        "serverSpecCode": "s2-g3",
                        "storageSize": 100,
                        "status": "RUN",
                        "serverRoleId": "***1fdc0-eb90-11ec-a2d9-246e966eb***",
                        "autoscale": {
                            "enabled": false,
                            "min": 0,
                            "max": 0
                        }
                    }
                ]
            }
        }
        JSON

        Was this article helpful?

        What's Next
        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.