이 가이드는 API 명세를 기반으로 자동 생성했습니다.
VPC 환경에서 이용 가능합니다.
Ncloud API 표준 규격을 적용한 API입니다.
Pod Identity 매핑의 상세 정보를 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | /vnks/v3/clusters/{clusterId}/pod-identity-associations/{podIdentityAssociationId} |
요청 헤더
Ncloud Kubernetes Service API에서 공통으로 사용하는 헤더에 대한 정보는 Ncloud Kubernetes Service 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
clusterId |
String (uuid) | Required | 클러스터 ID (UUID)
|
podIdentityAssociationId |
String (uuid) | Required | Pod Identity 매핑 UUID
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://kr-nks.apigw.ntruss.com/vnks/v3/clusters/a1b2c3d4-e5f6-7890-abcd-ef1234567890/pod-identity-associations/f6a7b8c9-d0e1-2345-f012-456789012345' \
--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 응답 헤더를 참조해 주십시오.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
podIdentityAssociation |
Object | Required | Pod Identity 매핑
|
podIdentityAssociation.id |
String (uuid) | Required | id 값
|
podIdentityAssociation.clusterId |
String (uuid) | Required | 클러스터 UUID
|
podIdentityAssociation.namespace |
String | Required | ServiceAccount의 네임스페이스
|
podIdentityAssociation.serviceAccount |
String | Required | ServiceAccount 이름
|
podIdentityAssociation.roleId |
String | Required | 연결된 IAM Service Role의 ID
|
podIdentityAssociation.roleNrn |
String | Required | 연결된 IAM Service Role의 NRN
|
podIdentityAssociation.sourceIdentityId |
String | Required | 이 매핑으로 발급된 임시 자격 증명에 IAM이 기록하는 출처 식별자({clusterId}/{namespace}/{serviceAccount}). Role 정책의 조건으로 사용할 수 있습니다.
|
podIdentityAssociation.createdDateTime |
String (date-time) | Required | 생성 일시 (UTC)
|
응답 상태 코드
호출에 실패하면 기본 오류 응답 형식의 응답 바디를 반환하며, 오류 코드는 error.errorCode 값입니다.
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 200 | - | - | Pod Identity 매핑 조회 성공 |
| 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 | ClusterNotFound |
The cluster does not exist. |
지정한 클러스터가 없습니다. clusterId를 확인하십시오. |
| 404 | PodIdentityAssociationNotFound |
The pod identity association does not exist. |
지정한 Pod Identity 매핑이 없습니다. podIdentityAssociationId를 확인하십시오. |
| 502 | BadGateway |
The server received an invalid response from an upstream service. Retry your request later. |
NKS 내부 처리 서비스가 오류를 반환했습니다. 잠시 후 재시도하십시오. |
Ncloud Kubernetes Service API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud Kubernetes Service 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"podIdentityAssociation": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"clusterId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"namespace": "default",
"serviceAccount": "my-app",
"roleId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"roleNrn": "nrn:PUB:IAM::1234567:Role/b2c3d4e5-f6a7-8901-bcde-f12345678901",
"sourceIdentityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890/default/my-app",
"createdDateTime": "2026-02-24T10:00:00Z"
}
}