Available in VPC
View the version of K8s on which you can create a cluster.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| GET | /vnks/v2/option/version/option/version (Korea Region) |
| GET | /vnks/sgn-v2 (Singapore Region) |
| GET | /vnks/jpn-v2/option/version (Japan Region) |
Request headers
For information about the headers common to all Ncloud Kubernetes Service APIs, see Common Ncloud Kubernetes Service headers.
Request query parameters
You can use the following query parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
hypervisorCode |
String | Optional | Hypervisor type
|
isRegionalSupport |
Boolean | Optional | Filter only versions that support regional (multi-zone) clusters.
|
Request example
The request example is as follows:
curl --location 'https://nks.apigw.ntruss.com/vnks/v2/option/version' \
--header 'x-ncp-apigw-timestamp: {timestamp}' \
--header 'x-ncp-iam-access-key: {access key}' \
--header 'x-ncp-apigw-signature-v2: {API gateway signature}' \
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
label |
String | - | K8s version name |
value |
String | - | K8s version code |
Response status codes
For information about the HTTP status codes common to all Ncloud Kubernetes Service APIs, see Ncloud Kubernetes Service response status codes.
Response example
The response example is as follows:
[
{
"label": "1.27.9 (nks.1)",
"value": "1.27.9-nks.1"
},
{
"label": "1.26.10",
"value": "1.26.10-nks.1"
}
]