--- title: "Key Management Service 개요" slug: "pub-kms-v3-overview" updated: 2026-11-24T13:51:53Z published: 2026-11-24T13:51:53Z canonical: "api.ncloud-docs.com/pub-kms-v3-overview" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Key Management Service 개요 이 가이드는 API 명세를 기반으로 자동 생성했습니다. Classic/VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. Key Management Service는 암호화 키의 생성과 저장, 회전, 파기를 지원하는 네이버 클라우드 플랫폼의 서비스입니다. Key Management Service 서비스에서는 키와 키 버전 관리, IP 접근 제어, 사용 이력 조회, 데이터 암호화·복호화, 토큰 발급 기능에 대한 API를 RESTful 형태로 제공합니다. 전역 키는 `https://ocapi.ncloud.com`, 한국 리전 키는 `https://ocapi-kr.ncloud.com`, 일본 리전 키는 `https://ocapi-jp.ncloud.com` 로 호출합니다. ## Key Management Service 공통 설정 Key Management Service API에서 공통으로 사용하는 요청 형식과 응답 형식을 설명합니다. ### 요청 공통 요청 형식을 설명합니다. #### API URL 요청 API URL은 다음과 같습니다. ``` https://ocapi.ncloud.com ``` #### 요청 헤더 요청 헤더에 대한 설명은 다음과 같습니다. | 필드 | 필수 여부 | 설명 | | --- | --- | --- | | `x-ncp-apigw-timestamp` | Required | 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간(밀리초) - API Gateway 서버와 5분 이상 시간 차 발생 시 유효하지 않은 요청으로 간주 - Unix Timestamp 형식 | | `x-ncp-iam-access-key` | Required | 네이버 클라우드 플랫폼에서 발급받은 Access Key - Access Key 발급 및 확인: [인증키 생성](/docs/common-ncpapi#1%EC%9D%B8%EC%A6%9D%ED%82%A4%EC%83%9D%EC%84%B1) 참조 | | `x-ncp-apigw-signature-v2` | Required | 네이버 클라우드 플랫폼에서 발급받은 Access Key에 맵핑되는 Secret Key 및 HMAC 암호화 알고리즘(HmacSHA256)으로 요청 정보를 암호화한 후 Base64로 인코딩한 서명 - 서명 생성: [시그니처 생성](/docs/common-ncpapi#%EC%8B%9C%EA%B7%B8%EB%8B%88%EC%B2%98%EC%83%9D%EC%84%B1) 참조 | | `x-ncp-lang` | Optional | 에러 메시지 언어 | 일부 API는 다른 인증을 사용합니다. 해당 API의 인증 헤더는 각 API 문서의 요청 헤더를 참조해 주십시오. ### 응답 공통 응답 형식을 설명합니다. #### 응답 헤더 응답 헤더에 대한 설명은 다음과 같습니다. | 필드 | 필수 여부 | 설명 | | --- | --- | --- | | `x-ncp-request-id` | - | 서버가 생성한 요청 식별자 (200, 201, 204, 400, 401, 403, 404, 409, 415, 429, 500, 502, 504 응답) | #### 응답 바디 API가 반환하는 공통 응답 바디는 다음과 같습니다. | 응답 | 사용하는 API | 설명 | | --- | --- | --- | | [기본 오류 응답](/docs/type-error-response#Error) | 동기 방식 배치 API를 제외한 모든 API | 호출에 실패하면 `error`에 오류 정보를 담아 반환 | | [배치 응답](/docs/type-batch-response#%EC%B2%98%EB%A6%AC%EA%B7%9C%EC%B9%99) | 여러 항목을 한 번에 동기 방식으로 처리하는 API | 호출에 실패하면 `error` 또는 `failures`에 오류 정보를 담아 반환 | #### 응답 상태 코드 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 200 | - | - | 각 API 문서의 응답 상태 코드를 참조 | | 201 | - | - | 각 API 문서의 응답 상태 코드를 참조 | | 204 | - | - | 각 API 문서의 응답 상태 코드를 참조 | | 400 | `InvalidParameter` | `The specified parameter is invalid.` | 각 API 문서의 응답 상태 코드를 참조 | | 400 | `BadRequest` | `The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.` | 각 API 문서의 응답 상태 코드를 참조 | | 400 | `ResourceLimitExceeded` | `The request exceeds the resource limit.` | 각 API 문서의 응답 상태 코드를 참조 | | 400 | `InvalidState` | `The request cannot be processed in the current state.` | 각 API 문서의 응답 상태 코드를 참조 | | 400 | `InvalidOperation` | `The specified operation is invalid.` | 각 API 문서의 응답 상태 코드를 참조 | | 401 | `Unauthorized` | `Authentication credentials are missing or invalid.` | 각 API 문서의 응답 상태 코드를 참조 | | 401 | `ExpiredToken` | `The token issued by the service has expired and is no longer valid.` | 각 API 문서의 응답 상태 코드를 참조 | | 401 | `InvalidToken` | `The token issued by the service is no longer valid.` | 각 API 문서의 응답 상태 코드를 참조 | | 403 | `Forbidden` | `You do not have sufficient permissions to perform this action.` | 각 API 문서의 응답 상태 코드를 참조 | | 403 | `AccessDenied` | `The request was denied by an access policy.` | 각 API 문서의 응답 상태 코드를 참조 | | 404 | `ResourceNotFound` | `The specified resource could not be found.` | 각 API 문서의 응답 상태 코드를 참조 | | 409 | `AlreadyExists` | `A resource with the requested identifier already exists.` | 각 API 문서의 응답 상태 코드를 참조 | | 409 | `ResourceInUse` | `The specified resource is in use.` | 각 API 문서의 응답 상태 코드를 참조 | | 409 | `ConcurrentAccess` | `The resource is being modified by another request. Retry your request later.` | 각 API 문서의 응답 상태 코드를 참조 | | 415 | `UnsupportedMediaType` | `The content type of the request body is not supported.` | 각 API 문서의 응답 상태 코드를 참조 | | 429 | `TooManyRequests` | `Too many requests were sent in a short period. Retry your request later.` | 하위 시스템(IAM, API Gateway 등)의 요청 한도를 초과한 경우. 잠시 후 다시 요청 | | 500 | `InternalServerError` | `The request processing has failed because of an unknown error, exception, or failure.` | 요청을 처리하는 중 오류가 발생한 경우. 잠시 후 다시 요청 | | 502 | `BadGateway` | `The server received an invalid response from an upstream service. Retry your request later.` | 각 API 문서의 응답 상태 코드를 참조 | | 504 | `GatewayTimeout` | `The server did not receive a timely response from an upstream service. Retry your request later.` | 각 API 문서의 응답 상태 코드를 참조 | 참고 네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Ncloud API 응답 상태 코드](/docs/common-ncpapi#3%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ## Key Management Service API Key Management Service 서비스에서 제공하는 API에 대한 설명은 다음과 같습니다. ### Key Key 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [createKey](/docs/pub-kms-v3-key-createkey) | 키 생성 | | [getKey](/docs/pub-kms-v3-key-getkey) | 키 정보 조회 | | [getKeyRotation](/docs/pub-kms-v3-key-getkeyrotation) | 키 자동 회전 설정 조회 | | [listKeys](/docs/pub-kms-v3-key-listkeys) | 키 목록 조회 | | [updateKey](/docs/pub-kms-v3-key-updatekey) | 키 정보 수정 | | [updateKeyRotation](/docs/pub-kms-v3-key-updatekeyrotation) | 키 자동 회전 설정 수정 | | [deleteKey](/docs/pub-kms-v3-key-deletekey) | 키 파기 | | [cancelKeyDeletion](/docs/pub-kms-v3-key-cancelkeydeletion) | 키 파기 예약 취소 | | [requestKeyDeletion](/docs/pub-kms-v3-key-requestkeydeletion) | 키 파기 예약 | ### Key Version Key Version 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [createKeyVersion](/docs/pub-kms-v3-key-version-createkeyversion) | 키 버전 생성(수동 회전) | | [getKeyVersion](/docs/pub-kms-v3-key-version-getkeyversion) | 키 버전 조회 | | [listKeyVersions](/docs/pub-kms-v3-key-version-listkeyversions) | 키 버전 목록 조회 | | [updateKeyVersion](/docs/pub-kms-v3-key-version-updatekeyversion) | 키 버전 상태 수정 | ### ACL ACL 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [getKeyAcl](/docs/pub-kms-v3-acl-getkeyacl) | 키 IP 접근 제어 설정 조회 | | [listKeyAclAllowedIps](/docs/pub-kms-v3-acl-listkeyaclallowedips) | 키 허용 IP 목록 조회 | | [updateKeyAcl](/docs/pub-kms-v3-acl-updatekeyacl) | 키 IP 접근 제어 설정 수정 | | [addKeyAclAllowedIps](/docs/pub-kms-v3-acl-addkeyaclallowedips) | 키 허용 IP 추가 | | [removeKeyAclAllowedIps](/docs/pub-kms-v3-acl-removekeyaclallowedips) | 키 허용 IP 삭제 | ### Activity Activity 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [getKeyCla](/docs/pub-kms-v3-activity-getkeycla) | 키 Cloud Log Analytics 연동 설정 조회 | | [getKeyLastUsage](/docs/pub-kms-v3-activity-getkeylastusage) | 키 최근 사용 정보 조회 | | [listKeyActivities](/docs/pub-kms-v3-activity-listkeyactivities) | 키 사용 이력 조회 | | [updateKeyCla](/docs/pub-kms-v3-activity-updatekeycla) | 키 Cloud Log Analytics 연동 설정 수정 | ### Token Generator Token Generator 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [getKeyTokenGenerator](/docs/pub-kms-v3-token-generator-getkeytokengenerator) | 키 토큰 생성기 조회 | | [activateKeyTokenGenerator](/docs/pub-kms-v3-token-generator-activatekeytokengenerator) | 키 토큰 생성기 활성화 | | [deactivateKeyTokenGenerator](/docs/pub-kms-v3-token-generator-deactivatekeytokengenerator) | 키 토큰 생성기 비활성화 | | [issueKeyTokens](/docs/pub-kms-v3-token-generator-issuekeytokens) | 키 토큰 발급 | | [rotateKeyTokenGenerator](/docs/pub-kms-v3-token-generator-rotatekeytokengenerator) | 키 토큰 생성기 회전 | ### Cipher Cipher 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [getPublicKey](/docs/pub-kms-v3-cipher-getpublickey) | 공개 키 조회 | | [batchDecrypt](/docs/pub-kms-v3-cipher-batchdecrypt) | 데이터 일괄 복호화 | | [batchEncrypt](/docs/pub-kms-v3-cipher-batchencrypt) | 데이터 일괄 암호화 | | [batchReEncrypt](/docs/pub-kms-v3-cipher-batchreencrypt) | 데이터 일괄 재암호화 | | [decrypt](/docs/pub-kms-v3-cipher-decrypt) | 데이터 복호화 | | [encrypt](/docs/pub-kms-v3-cipher-encrypt) | 데이터 암호화 | | [issueCustomKey](/docs/pub-kms-v3-cipher-issuecustomkey) | 데이터 키 발급 | | [reEncrypt](/docs/pub-kms-v3-cipher-reencrypt) | 데이터 재암호화 | | [sign](/docs/pub-kms-v3-cipher-sign) | 데이터 서명 | | [verify](/docs/pub-kms-v3-cipher-verify) | 서명 검증 | ### Token Cipher Token Cipher 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [getPublicKeyWithToken](/docs/pub-kms-v3-token-cipher-getpublickeywithtoken) | 공개 키 조회(토큰 인증) | | [batchDecryptWithToken](/docs/pub-kms-v3-token-cipher-batchdecryptwithtoken) | 데이터 일괄 복호화(토큰 인증) | | [batchEncryptWithToken](/docs/pub-kms-v3-token-cipher-batchencryptwithtoken) | 데이터 일괄 암호화(토큰 인증) | | [batchReEncryptWithToken](/docs/pub-kms-v3-token-cipher-batchreencryptwithtoken) | 데이터 일괄 재암호화(토큰 인증) | | [decryptWithToken](/docs/pub-kms-v3-token-cipher-decryptwithtoken) | 데이터 복호화(토큰 인증) | | [encryptWithToken](/docs/pub-kms-v3-token-cipher-encryptwithtoken) | 데이터 암호화(토큰 인증) | | [issueCustomKeyWithToken](/docs/pub-kms-v3-token-cipher-issuecustomkeywithtoken) | 데이터 키 발급(토큰 인증) | | [reEncryptWithToken](/docs/pub-kms-v3-token-cipher-reencryptwithtoken) | 데이터 재암호화(토큰 인증) | | [signWithToken](/docs/pub-kms-v3-token-cipher-signwithtoken) | 데이터 서명(토큰 인증) | | [verifyWithToken](/docs/pub-kms-v3-token-cipher-verifywithtoken) | 서명 검증(토큰 인증) | ### Token Token 관련 API에 대한 설명은 다음과 같습니다. | API | 설명 | | --- | --- | | [issueKeyAccessToken](/docs/pub-kms-v3-token-issuekeyaccesstoken) | 액세스 토큰 발급 | | [reissueKeyTokens](/docs/pub-kms-v3-token-reissuekeytokens) | 토큰 재발급 | ## Key Management Service 연관 리소스 Key Management Service API에 대한 사용자의 이해를 돕기 위해 다양한 연관 리소스를 제공하고 있습니다. - Key Management Service API 사용 방법 - [API 개요](/docs/common-ncpapi): 네이버 클라우드 플랫폼에서 발급받은 Access Key, Secret Key 발급 및 확인, 요청 헤더에 필요한 서명 생성 방법 - [Sub Account 사용 가이드](https://guide.ncloud-docs.com/docs/subaccount-overview): 서브 계정의 Access Key 발급 및 확인 방법 - Key Management Service 서비스 사용 방법 - [Key Management Service 사용 가이드](https://guide.ncloud-docs.com/docs/kms-overview): 네이버 클라우드 플랫폼 콘솔에서 Key Management Service 사용하는 방법 - [Ncloud 사용 환경 가이드](https://guide.ncloud-docs.com/docs/environment-environment-1-1): VPC, Classic 환경 및 지원 여부에 대한 가이드 - [요금 소개, 특징, 상세 기능](https://www.ncloud.com/product/security/kms): Key Management Service의 요금 체계, 특징, 상세 기능 요약 - [서비스 최신 소식](https://www.ncloud.com/intro/news?categoryCode=SEC&serviceCode=SV_0049): Key Management Service 관련 최신 소식 - [자주 하는 질문](https://www.ncloud.com/support/faq/prod?categoryCode2=SEC&categoryCode3=SV_0049&page=1): Key Management Service 사용자들이 자주 하는 질문 - [문의하기](https://www.ncloud.com/support/question/service): 사용 가이드를 통해서도 궁금증이 해결되지 않는 경우 직접 문의