Example queries – HP StoreAll Storage User Manual
Page 187
![background image](/manuals/398220/187/background.png)
"system::lastChangedTime" : 1346896235.000000000,
"system::lastModifiedTime" : 1346895753.000000000,
"system::retentionExpirationTime" : 1378432229.000000000,
"system::mode" : 33060,
"system::tier" : "no tier",
"system::createTime" : 1346895753.815070000,
"system::retentionState" : 3,
"system::worm" : true,
"scan_pass" : "17",
"physician" : "Smith, John; 8136"
}
},
}
If no files or directory meet the criteria of the query (an empty result set), or if the urlpath or pathname
does not exist, then a JSON output of no results is returned, consisting of just an open and close
bracket on two separate lines:
[
]
Example queries
Get selected metadata for a given file
The following is one command line:
curl -g "http://99.226.50.92/ibrix_share1/lab/images/xyz.jpg?
nl
attributes=system::size,physician"
This example queries only the file called xyz.jpg in the lab/images subdirectory on the
ibrix_share1
HTTP share. A JSON document is returned containing the system size value and
the custom metadata value for the physician attribute, for this file only.
Get selected system metadata for all files in a given directory
The following is one command line:
curl -g "http://99.226.50.92/ibrix_share1/lab/images/?attributes=
system::mode,system::tier"
This example queries only the directory lab/images on the ibrix_share1 HTTP share. A JSON
document is returned containing the POSIX mode/permission bits and storage tier name for the
lab/images
directory itself in addition to the files and directories in lab/images (but not in
any recursive subdirectories, because there is no &recurse option).
Get selected metadata for all files in a given directory
The following is one command line:
curl -g "http://99.226.50.92/ibrix_share1/lab/images/?attributes=
system::size,physician"
This example queries all files in the ibrix_share1 HTTP share in the subdirectory lab/images
of the share, but not files or directories in any subdirectories. A JSON document is returned
containing the system size value and the custom metadata value for the physician attribute, for
all files in lab/images. For files that don’t have a physician attribute, only the system::size
is returned.
Get selected metadata for all files in a given directory tree
The following is one command line:
curl -g "http://99.226.50.92/ibrix_share1/lab/images/?attributes=
system::size,physician&recurse&ordered"
StoreAll REST API
187