저장소 그룹 생성 요청

저장소 그룹 생성 요청 (RepositoryGroupCreationRequest)

Docker Hub 저장소에 조직 그룹 접근 권한을 부여할 때 보내는 요청 스키마예요. 그룹 ID와 권한 수준을 지정해요.

출처: 문서

본문

요청 본문은 group_idpermission 두 필드를 가진 객체예요. 둘 다 필수예요.

  • group_id: 접근 권한을 부여할 조직 그룹의 ID
  • permission: 부여할 권한 수준
    • read: 저장소를 보고 풀(pull)할 수 있음
    • write: 저장소를 보고 풀·푸시할 수 있음
    • admin: 저장소를 보고 풀·푸시하며 설정을 관리할 수 있음
{
  "properties": {
    "group_id": {
      "description": "The ID of the organization group to grant access to",
      "example": 12345,
      "format": "int64",
      "type": "integer"
    },
    "permission": {
      "description": "The permission level to grant to the group:\n- read: Can view and pull from the repository\n- write: Can view, pull, and push to the repository\n- admin: Can view, pull, push, and manage repository settings\n",
      "enum": [
        "read",
        "write",
        "admin"
      ],
      "example": "write",
      "type": "string"
    }
  },
  "required": [
    "group_id",
    "permission"
  ],
  "type": "object"
}

더 알아보기