Json Types And Api Types; Api Types - HP 3PAR StoreServ 7200 2-node Manual

Hp 3par web service api 1.2 developer's guide (qr482-96192, june 2013)
Hide thumbs Also See for 3PAR StoreServ 7200 2-node:
Table of Contents

Advertisement

The values defined for an enumeration start with 1; the value 0 is unused.
When using tools that deserialize JSON into a class, this allows an omitted property of enumeration
type to be detected, since the member will not be assigned a non-zero value of a property and
will retain its default or preset value of 0.
For enumerations, the symbols used in this document are for convenience in referring to values of
enumerations, but are not part of the WSAPI. Integer values representing the symbols appear in
JSON objects. Clients can use any symbols with the integers.

JSON Types and API Types

JSON uses primitive types defined by IETF RFC 4627, including:
string
number
boolean
null
The properties returned in JSON output objects and the members provided in JSON input objects
use JSON primitive types with additional restrictions on valid values. Restrictions on values or
format are given names that appear in the Type column in
referenced in this guide in descriptions of JSON input and output.
Table 7 API Types
Type
8601
epoch
Hex
igint32
int32
MAC
name31
Description
JSON string with time in ISO 8601 format:
YYYY-MM-DDThh:mm:ssTZD,
where TZD is one of the following:
Z
+hh:mm
-hh:mm
NOTE:
For more information, see
The number of seconds since 01/01/1970 GMT.
Also known as "Unix epoch."
JSON string containing a hexadecimal value.
JSON number restricted to a 32-bit signed integer where negative values are
ignored by the server, and treated as if not present.
JSON number restricted to a 32-bit signed integer.
JSON string containing six groups of two hexadecimal digits. The string may
or may not be separated by a hyphen (-); for example, either of the following
formats is possible:
AC- 1 6-2D-36-06-F7
AC162D3606F7
JSON string of 31 or fewer characters, in which the following characters are
allowed:
a-z
A-Z
0-9
. (dot)
- (dash)
NOTE:
Dash (-) is disallowed as the first character.
Table 7 (page
27). These API types are
http://www.w3.org/TR/NOTE-datetime
JSON Types and API Types
27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents