네임스페이스 안의 리포지토리 확인

네임스페이스 안의 리포지토리 확인

네임스페이스에 리포지토리를 만들기 전에 해당 이름이 이미 존재하는지 확인하는 데 쓰는 작업이에요.

출처: 문서

본문

네임스페이스 안의 리포지토리 확인 작업이에요. 네임스페이스에 리포지토리를 만들기 전에 해당 이름이 이미 존재하는지 확인하는 데 쓰는 작업이에요.

요청 예시

실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.

curl \
  --head \
  --header "Authorization: Bearer ${TOKEN}" \
  --header 'Accept: application/json' \
  'https://hub.docker.com/v2/namespaces/<NAMESPACE>/repositories/<REPOSITORY>'

요청과 응답

응답 200 No response content is declared.

응답 401 Unauthorized

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "unauthorized"
}

응답 403 Forbidden

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "permission denied"
}

응답 404 Not Found

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "not found"
}

응답 500 Internal

Schema:

{
  "$ref": "#/components/schemas/error"
}

error:

{
  "errinfo": null,
  "message": "internal error"
}

전체 작업 계약

{
  "description": "Check a repository within the specified namespace (organization or user).\n\nPublic repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.\n\nThis operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.\n",
  "operationId": "CheckRepository",
  "responses": {
    "200": {},
    "401": {
      "$ref": "#/components/responses/unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/forbidden"
    },
    "404": {
      "$ref": "#/components/responses/not_found"
    },
    "500": {
      "$ref": "#/components/responses/internal_error"
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {}
  ],
  "summary": "Check repository in a namespace",
  "tags": [
    "repositories"
  ]
}

더 알아보기