조직 액세스 토큰 생성 요청
조직 액세스 토큰 생성 요청 (createOrgAccessTokenRequest)
Docker Hub 조직 액세스 토큰을 생성할 때 보내는 요청 스키마예요. 토큰 라벨·설명·만료 시각과 접근할 리소스 목록을 지정해요.
출처: 문서
본문
요청 본문 필드는 다음과 같아요.
description: (선택) 토큰 설명expires_at: (선택) 토큰 만료 시각 (null 가능)label: 토큰 라벨resources: 토큰이 접근할 리소스 목록.orgAccessTokenResource항목들을 담고 최소 1개 이상이어야 해요.
{
"examples": [
{
"description": "Token for CI/CD pipeline",
"label": "My organization token",
"resources": [
{
"path": "myorg/myrepo",
"scopes": [
"scope-image-pull"
],
"type": "TYPE_REPO"
}
]
}
],
"properties": {
"description": {
"description": "Description of the access token",
"example": "Token for CI/CD pipeline",
"type": "string"
},
"expires_at": {
"description": "Expiration date for the token",
"example": "2023-05-20T00:54:18Z",
"format": "date-time",
"type": [
"string",
"null"
]
},
"label": {
"description": "Label for the access token",
"example": "My organization token",
"type": "string"
},
"resources": {
"description": "Resources this token has access to",
"items": {
"$ref": "#/components/schemas/orgAccessTokenResource"
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
}
더 알아보기
- 조직 토큰 리소스 (orgAccessTokenResource):
resources배열의 각 항목 구조를 확인해요. - 조직 액세스 토큰 생성 작업: 이 요청을 보내는 API 호출을 살펴봐요.