Json response format, Json – HP StoreAll Storage User Manual

Page 168

Advertising
background image

Regular expressions

The arguments to the regular expression operators (~ and !~) are POSIX regular expressions, as
described in POSIX 1003.1-2008 at

http://pubs.opengroup.org/onlinepubs/9699919799

/,

section 9, Regular Expressions.

JSON response format

The result of the query is an HTTP response in JSON format, as in the following example:

[
{
"mydir" :
{
"system::ownerUserId" : 1701,
"system::size" : 0,
"system::ownerGroupId" : 650,
"system::onDiskAtime" : 1346895723.552374000,
"system::lastAccessedTime" : 1346895723.552810000,
"system::lastChangedTime" : 1346895723.552374000,
"system::lastModifiedTime" : 1346895723.552374000,
"system::retentionExpirationTime" : 0.000000000,
"system::mode" : 16877,
"system::tier" : "no tier",
"system::createTime" : 1346895723.552374000,
"system::retentionState" : 0,
"system::worm" : false
}
},
{
"mydir/myfile.txt" :
{
"system::ownerUserId" : 1701,
"system::size" : 3,
"system::ownerGroupId" : 650,
"system::onDiskAtime" : 1378432229.000000000,
"system::lastAccessedTime" : 1346896240.316746000,
"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:

[

]

168 HTTP-REST API file-compatible mode shares

Advertising