The root location of a storage cache where model files are stored.

Writable Fields:

root: URI (including protocol) to the root of a StorageLocation, which when prepended to a StorageLocation path produces a complete URI to a file. Examples:

  • https://somewebsite.com/
  • ftp://host/ (ftp://username:password@host:port/)
  • ssh://host/
  • file:///someroot/ (file://C:)
  • github://org:repo@sha/ (github://org:repo/ (master))

local (optional): Boolean indicating whether the StorageRoot is local or not (by default this is False)

Read-only Fields:

url: Reference to the instance of the StorageRoot, final integer is the StorageRoot id

last_updated: Datetime that this record was last updated

updated_by: Reference to the user that updated this record

GET /api/storage_root/?format=api&ordering=locations
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "https://data.fairdatapipeline.org/api/storage_root/1/?format=api",
            "last_updated": "2024-02-09T15:29:20.677267Z",
            "root": "https://data.fairdatapipeline.org/data/",
            "local": false,
            "updated_by": "https://data.fairdatapipeline.org/api/users/1/?format=api",
            "locations": [
                "https://data.fairdatapipeline.org/api/storage_location/1/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/3/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/4/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/5/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/6/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/7/?format=api"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/storage_root/1/?format=api",
            "last_updated": "2024-02-09T15:29:20.677267Z",
            "root": "https://data.fairdatapipeline.org/data/",
            "local": false,
            "updated_by": "https://data.fairdatapipeline.org/api/users/1/?format=api",
            "locations": [
                "https://data.fairdatapipeline.org/api/storage_location/1/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/3/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/4/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/5/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/6/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/7/?format=api"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/storage_root/1/?format=api",
            "last_updated": "2024-02-09T15:29:20.677267Z",
            "root": "https://data.fairdatapipeline.org/data/",
            "local": false,
            "updated_by": "https://data.fairdatapipeline.org/api/users/1/?format=api",
            "locations": [
                "https://data.fairdatapipeline.org/api/storage_location/1/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/3/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/4/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/5/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/6/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/7/?format=api"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/storage_root/1/?format=api",
            "last_updated": "2024-02-09T15:29:20.677267Z",
            "root": "https://data.fairdatapipeline.org/data/",
            "local": false,
            "updated_by": "https://data.fairdatapipeline.org/api/users/1/?format=api",
            "locations": [
                "https://data.fairdatapipeline.org/api/storage_location/1/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/3/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/4/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/5/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/6/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/7/?format=api"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/storage_root/1/?format=api",
            "last_updated": "2024-02-09T15:29:20.677267Z",
            "root": "https://data.fairdatapipeline.org/data/",
            "local": false,
            "updated_by": "https://data.fairdatapipeline.org/api/users/1/?format=api",
            "locations": [
                "https://data.fairdatapipeline.org/api/storage_location/1/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/3/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/4/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/5/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/6/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/7/?format=api"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/storage_root/1/?format=api",
            "last_updated": "2024-02-09T15:29:20.677267Z",
            "root": "https://data.fairdatapipeline.org/data/",
            "local": false,
            "updated_by": "https://data.fairdatapipeline.org/api/users/1/?format=api",
            "locations": [
                "https://data.fairdatapipeline.org/api/storage_location/1/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/3/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/4/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/5/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/6/?format=api",
                "https://data.fairdatapipeline.org/api/storage_location/7/?format=api"
            ]
        }
    ]
}