Json response format, Json – HP StoreAll Storage User Manual

Page 186

Advertising
background image

Description

Parameter

>

(greater than)

>=

(greater than or equal to)

Only for custom attributes and string-valued system attributes (for example,
system::path

, system::tier):

~

(regular expression match)

!~

(does not match regular expression)

The value to compare against the query_attr using the operator. The value is either
a numeric or string literal. See

“General topics regarding HTTP syntax ” (page 172)

for

details about literals.

query_value

If the recurse attribute is present, the query searches through the given directory and
all of its subdirectories. If the recurse attribute is not present, the query operates only

recurse

on the given file, directory, or directory of files (but not subdirectories). See pathname
earlier in this table for details.

If this attribute is present, it defines the number of records to skip before returning any
results. The value is zero-based. See

“HTTP syntax” (page 185)

.

skip_records

If this attribute is present, it defines the maximum number of total records to return from
the result set. See

“HTTP syntax” (page 185)

.

max_records

If this attribute is present, the list of files and attributes returned is sorted lexicographically
by file name. The use of ordered on large results sets might affect the performance of
the query. Without ordered, files might occur in any order in the result set.

ordered

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,

186 Express Query

Advertising