Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Get a file system directory

Gets a file system directory.

HTTP request syntax (URI)
GET <base_URI>/v8/storage/filesystems/{filesystemId}/directories/{directoryObjectId}
Parameters
Name Type Required Values Description
filesystemId URI_PARAM Y string Either the file system object ID or HNAS file system ID.
directoryObjectId URI_PARAM Y string Directory ID.
Return codes
Code Data Description
200 directory Array of immediate subdirectories
400 Error Message Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.

Any HTTP status code other than 200 indicates that the API did not complete successfully.

Request example:
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/filesystems/B121222D2226D14D0000000000000000/directories/73657276746573742e4143434550542d57494e31302d352e333a3a3a303a3a3a4f49445f24232140255f56
Response example:
HTTP/1.1 200 OK
{
  "directories": [
    {
      "displayName": [
        "//servtest.ACCEPT-WIN10-5.3/QJ6H2nkOhBEr4jbM"
      ],
      "name": "QJ6H2nkOhBEr4jbM",
      "objectId": "73657276746573742e4143434550542d57494e31302d352e332f514a3648326e6b4f68424572346a624d3a3a3a303a3a3a4f49445f24232140255f56"
    },
    {
      "displayName": [
        "//servtest.ACCEPT-WIN10-5.3/AoTWzxjVF"
      ],
      "name": "AoTWzxjVF",
      "objectId": "73657276746573742e4143434550542d57494e31302d352e332f416f54577a786a56463a3a3a303a3a3a4f49445f24232140255f56"
    },
    {
      "displayName": [
        "//servtest.ACCEPT-WIN10-5.3/H"
      ],
      "name": "H",
      "objectId": "73657276746573742e4143434550542d57494e31302d352e332f483a3a3a303a3a3a4f49445f24232140255f56"
    }
  ]
}

 

  • Was this article helpful?