getAddonConfigVersion

Prev Next

이 가이드는 API 명세를 기반으로 자동 생성했습니다.

Ncloud API 표준 규격을 적용한 API입니다.

애드온 특정 버전의 상세 정보를 조회합니다. 구성값 스키마(configurationSchema)로 설치 시 지정 가능한 값을 확인할 수 있습니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /nks/v3/addon-configs/{addonName}/versions/{version}

요청 헤더

Ncloud Kubernetes Service API에서 공통으로 사용하는 헤더에 대한 정보는 Ncloud Kubernetes Service 요청 헤더를 참조해 주십시오.

요청 경로 파라미터

요청 경로 파라미터에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
addonName String Required 애드온 이름 (카탈로그 자연 키)
  • 패턴: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
  • 길이: ~ 63
  • <예시> istio
version String Required 애드온 버전
  • 패턴: ^[0-9A-Za-z][0-9A-Za-z.+_-]*$
  • 길이: ~ 64
  • <예시> 1.31.0

요청 예시

요청 예시는 다음과 같습니다.

curl --location --request GET 'https://fkr-nks.apigw.fin-ntruss.com/nks/v3/addon-configs/istio/versions/1.31.0' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

응답

응답 형식을 설명합니다.

응답 헤더

응답 헤더에 대한 설명은 다음과 같습니다.

필드 필수 여부 설명
retry-after - 재시도 권장 대기 시간(초) (429 응답)

Ncloud Kubernetes Service API에서 공통으로 사용하는 헤더에 대한 정보는 Ncloud Kubernetes Service 응답 헤더를 참조해 주십시오.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
addonConfigVersion Object Required 애드온 카탈로그 버전
  • <예시> {"name": "istio", "version": "1.31.0", "compatibleK8sVersions": ["1.36.2-nks.1", "1.35.3-nks.1"], "configurationSchema": {"$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {"scheduling": {"type": "object", "default": {}, "additionalProperties": false, "properties": {"extraTolerations": {"type": "array", "items": {"type": "object", "additionalProperties": false, "properties": {"effect": {"type": "string", "enum": ["NoSchedule", "PreferNoSchedule", "NoExecute"]}, "key": {"type": "string"}, "operator": {"type": "string", "enum": ["Exists", "Equal"]}, "tolerationSeconds": {"type": "string"}, "value": {"type": "string"}}}}, "nodeSelector": {"type": "object", "additionalProperties": {"type": "string"}}}}}}, "deprecated": false, "requiresWorkerNodes": true}
addonConfigVersion.name String Required 애드온 이름
  • <예시> istio
addonConfigVersion.version String Required 애드온 버전
  • <예시> 1.31.0
addonConfigVersion.compatibleK8sVersions List<String> Required 호환되는 쿠버네티스 버전 목록
  • <예시> ["1.36.2-nks.1", "1.35.3-nks.1"]
addonConfigVersion.configurationSchema Map<Object> | null Optional configurationValues 작성에 사용하는 JSON Schema
  • <예시> {"$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {"scheduling": {"type": "object", "default": {}, "additionalProperties": false, "properties": {"extraTolerations": {"type": "array", "items": {"type": "object", "additionalProperties": false, "properties": {"effect": {"type": "string", "enum": ["NoSchedule", "PreferNoSchedule", "NoExecute"]}, "key": {"type": "string"}, "operator": {"type": "string", "enum": ["Exists", "Equal"]}, "tolerationSeconds": {"type": "string"}, "value": {"type": "string"}}}}, "nodeSelector": {"type": "object", "additionalProperties": {"type": "string"}}}}}}
  • 값의 구조는 정해져 있지 않습니다
addonConfigVersion.deprecated Boolean Optional 지원 종료 여부
  • true | false
    • true: 지원 종료(신규 설치 불가)
    • false: 설치 가능
  • <예시> false
addonConfigVersion.requiresWorkerNodes Boolean Optional 설치 시 워커 노드 필요 여부
  • true | false
    • true: 워커 노드가 있어야 설치 가능
    • false: 워커 노드 없이도 설치 가능
  • <예시> true

응답 상태 코드

호출에 실패하면 기본 오류 응답 형식의 응답 바디를 반환하며, 오류 코드는 error.errorCode 값입니다.

응답 상태 코드에 대한 설명은 다음과 같습니다.

HTTP 상태 코드 코드 메시지 설명
200 - - 애드온 버전 상세 조회 성공
400 InvalidParameter The specified parameter is invalid. 경로 파라미터(UUID 형식 등) 또는 쿼리 파라미터의 형식·값이 유효하지 않습니다. 값을 고쳐 다시 요청하십시오.
403 Forbidden You do not have sufficient permissions to perform this action. 이 Action을 수행할 권한이 없습니다. 자원 존재 여부와 무관하게 권한 검사를 먼저 수행하므로 Sub Account 정책에 해당 Action 권한이 있는지 확인하십시오.
404 AddonConfigNotFound The add-on config does not exist. 지정한 이름의 애드온이 카탈로그에 없습니다. addonName을 확인하십시오.
404 AddonConfigVersionNotFound The add-on config version does not exist. 지정한 애드온 버전이 카탈로그에 없습니다. version을 확인하십시오.
502 BadGateway The server received an invalid response from an upstream service. Retry your request later. NKS 내부 처리 서비스가 오류를 반환했습니다. 잠시 후 재시도하십시오.
참고

Ncloud Kubernetes Service API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud Kubernetes Service 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

{
  "addonConfigVersion": {
    "name": "istio",
    "version": "1.31.0",
    "compatibleK8sVersions": [
      "1.36.2-nks.1",
      "1.35.3-nks.1"
    ],
    "configurationSchema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "scheduling": {
          "type": "object",
          "default": {},
          "additionalProperties": false,
          "properties": {
            "extraTolerations": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "effect": {
                    "type": "string",
                    "enum": [
                      "NoSchedule",
                      "PreferNoSchedule",
                      "NoExecute"
                    ]
                  },
                  "key": {
                    "type": "string"
                  },
                  "operator": {
                    "type": "string",
                    "enum": [
                      "Exists",
                      "Equal"
                    ]
                  },
                  "tolerationSeconds": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                }
              }
            },
            "nodeSelector": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "deprecated": false,
    "requiresWorkerNodes": true
  }
}