Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #29861
Closed
Open
Issue created Jul 03, 2019 by Rachel Nienaber@rnienaberDeveloper

Hashed Storage: add disk path to REST API

With the introduction of Hashed Storage, it is more difficult to discover the storage location of projects. Users are able to look up the path on the project's admin UI, but if users need to do this for many projects this is impractical. We should add this information to the GET projects/:id API call so that this is discoverable by script.

Proposal

Documentation blurb:

Get project storage information

Requires admin permissions.

Use this endpoint to get information about the project repository storage location.

GET /projects/:id/storage
Attribute Type Required Description
id integer/string yes The ID or URL-encoded path of the project

Example response:

{
  "shard": {
    "id": 1,
    "name": "default"
  },
  "disk_path": "@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b",
  "project_id": 8,
  "created_at": "2012-10-12T17:04:47Z"
}

GraphQL

We should add the data to GraphQL also. See #29861 (comment 499996682).

Edited Apr 12, 2021 by Nick Nguyen
Assignee
Assign to
Time tracking