조직 액세스 토큰 단건 조회 응답
조직 액세스 토큰 단건 조회 응답 (getOrgAccessTokenResponse)
Docker Hub 조직 액세스 토큰 하나를 조회했을 때 돌려주는 응답 스키마예요. orgAccessToken에 더해 해당 토큰이 접근할 수 있는 resources 목록을 함께 담아요.
출처: 문서
본문
이 스키마는 orgAccessToken을 기반으로(allOf) resources 필드를 더한 형태예요.
{
"allOf": [
{
"$ref": "#/components/schemas/orgAccessToken"
},
{
"properties": {
"resources": {
"description": "Resources this token has access to",
"items": {
"$ref": "#/components/schemas/orgAccessTokenResource"
},
"type": "array"
}
},
"type": "object"
}
],
"examples": [
{
"created_at": "2022-05-20T00:54:18Z",
"created_by": "johndoe",
"expires_at": "2023-05-20T00:54:18Z",
"id": "a7a5ef25-8889-43a0-8cc7-f2a94268e861",
"is_active": true,
"label": "My organization token",
"last_used_at": "2022-06-15T12:30:45Z",
"resources": [
{
"path": "myorg/myrepo",
"scopes": [
"scope-image-pull"
],
"type": "TYPE_REPO"
}
]
}
]
}
resources는 이 토큰이 접근할 리소스 목록으로, 각 항목은orgAccessTokenResource스키마를 따릅니다.
더 알아보기
- 조직 액세스 토큰 (orgAccessToken): 응답의 기반이 되는 토큰 구조를 확인해요.
- 조직 토큰 리소스 (orgAccessTokenResource): 리소스 항목 구조를 살펴봐요.