사용자의 네임스페이스 조회
사용자의 네임스페이스 조회
사용자가 접근 가능한 네임스페이스에 연결된 추가 리포지토리를 포함한 메타데이터를 조회해요.
출처: 문서
본문
GET /namespaces
사용자의 네임스페이스 조회 작업이에요. 사용자가 접근 가능한 네임스페이스에 연결된 추가 리포지토리를 포함한 메타데이터를 조회해요.
요청 예시
실행 전에 자리 표시자를 바꾸고 필요 자격 증명이나 요청 바디를 채워야 해요.
curl \
--request GET \
--header "Authorization: Bearer ${TOKEN}" \
--header 'Accept: application/json' \
'https://hub.docker.com/api/publisher/analytics/v1/namespaces'
요청과 응답
응답 200 Success
Schema:
{
"items": {
"$ref": "#/components/schemas/NamespaceMetadata"
},
"type": "array"
}
publishers:
[
{
"datasets": [
{
"name": "pulls",
"timespans": [
"months",
"weeks"
],
"views": [
"raw",
"summary",
"repo-summary",
"namespace-summary",
"geo-repo-summary"
]
}
],
"extensionPublisher": false,
"extraRepos": null,
"namespace": "org1",
"publisherType": "DVP"
}
]
응답 401 Authentication failed or second factor required
No response content is declared.
전체 작업 계약
{
"description": "Get metadata associated with the namespaces the user has access to, including extra repos associated with the namespaces.",
"operationId": "getUserNamespaces",
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"publishers": {
"summary": "Namespace metadata",
"value": [
{
"datasets": [
{
"name": "pulls",
"timespans": [
"months",
"weeks"
],
"views": [
"raw",
"summary",
"repo-summary",
"namespace-summary",
"geo-repo-summary"
]
}
],
"extensionPublisher": false,
"extraRepos": null,
"namespace": "org1",
"publisherType": "DVP"
}
]
}
},
"schema": {
"items": {
"$ref": "#/components/schemas/NamespaceMetadata"
},
"type": "array"
}
}
},
"description": "Success"
},
"401": {
"description": "Authentication failed or second factor required"
}
},
"summary": "Get user's namespaces",
"tags": [
"discovery"
]
}