Skip to main content
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}
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"
Response example:
HTTP/1.1 200 OK
  "directories": [
      "displayName": [
      "name": "QJ6H2nkOhBEr4jbM",
      "objectId": "73657276746573742e4143434550542d57494e31302d352e332f514a3648326e6b4f68424572346a624d3a3a3a303a3a3a4f49445f24232140255f56"
      "displayName": [
      "name": "AoTWzxjVF",
      "objectId": "73657276746573742e4143434550542d57494e31302d352e332f416f54577a786a56463a3a3a303a3a3a4f49445f24232140255f56"
      "displayName": [
      "name": "H",
      "objectId": "73657276746573742e4143434550542d57494e31302d352e332f483a3a3a303a3a3a4f49445f24232140255f56"


  • Was this article helpful?