네임스페이스 조회

네임스페이스 조회

지정한 네임스페이스에 연결된 추가 리포지토리를 포함한 메타데이터를 조회해요.

출처: 문서

본문

GET /namespaces/{namespace}

네임스페이스 조회 작업이에요. 지정한 네임스페이스에 연결된 추가 리포지토리를 포함한 메타데이터를 조회해요.

요청 예시

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

curl \
  --request GET \
  --header "Authorization: Bearer ${TOKEN}" \
  --header 'Accept: application/json' \
  'https://hub.docker.com/api/publisher/analytics/v1/namespaces/<NAMESPACE>'

요청과 응답

응답 200 Success

Schema:

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

Schema example:

{
  "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 example:

{
  "datasets": [
    {
      "name": "pulls",
      "timespans": [
        "months",
        "weeks"
      ],
      "views": [
        "repo-summary",
        "namespace-summary"
      ]
    },
    {
      "name": "extensions",
      "timespans": [
        "months",
        "weeks"
      ],
      "views": [
        "ext-summary"
      ]
    }
  ],
  "extensionPublisher": true,
  "extraRepos": null,
  "namespace": "org4",
  "publisherType": "DVP"
}

전체 작업 계약

{
  "description": "Gets metadata associated with specified namespace, including extra repos associated with the namespace.",
  "operationId": "getNamespace",
  "parameters": [
    {
      "description": "Namespace to fetch data for",
      "in": "path",
      "name": "namespace",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/NamespaceMetadata"
          }
        }
      },
      "description": "Success"
    }
  },
  "summary": "Get namespace",
  "tags": [
    "discovery"
  ]
}

참조된 스키마

더 알아보기