Data type

REST API Reference Guide for Virtual Storage Platform 5000, Virtual Storage Platform E Series, and Virtual Storage Platform G/F Series

Version
93-07-0x
90-09-0x
88-08-10
Audience
anonymous
Part Number
MK-98RD9014-17
This section describes the data types that can be specified by using the REST API.

The following table shows the data types supported by the REST API and the corresponding JSON data types.

Data type

JSON type

Description

boolean

boolean

A type that represents true or false.

Example :true

int

number

A type that represents a 32-bit signed integer.

Example :100

long

number

A type that represents a 64-bit signed integer.

Example :1048576

string

string

A type that represents a character string.

Example :"host_group_1"

ISO8601string

string

A type that represents time in the ISO 8601 extended format (YYYY-MM-DDThh:mm:ssZ).

The only time zone that you can specify is UTC.

Example :"2015-03-20T09:27:35Z"

link

string

A type that represents the path of a URL.

The link type indicates a URL for a resource. For example, when a request for asynchronous processing is issued, a URL for the job object is returned by using the link type.

The link type data is a character string of the URL from which the protocol, host name, and port number are excluded. If the URL is created based on the link type data, you must add the protocol, host name, and port number.

Example :

"/ConfigurationManager/v1/objects/ldevs/100"

In addition to the preceding data types, the following JSON data types are also used:

  • The object type

    The character string, in which the attribute and value are connected with a colon (:), is enclosed in { and }. If more than one attribute-value pair exists, the pairs are separated by commas.

  • The array type

    The character string, in which multiple values are separated by commas, is enclosed in [ and ].