Reference Guide
instance. The REST API also uses POST for a limited set of other operations to implement resource-specific actions. Thus, an
application can interact with a resource by knowing the URI pattern, resource identifier, and action required.
● Communication between the client and server occurs through HTTP requests and responses. In the PowerStore
Management REST API, requests and responses represent resource data using JavaScript Object Notation (JSON).
● Each request is stateless, which means that the server does not store application state information. Instead, client requests
contain all the necessary information to service the request.
● Resources in a REST API are self-documenting. A response from the server contains information about the requested
resource in the form of attribute names and values.
JSON data exchange format
JavaScript Object Notation (JSON) is a text-based, platform-independent data-exchange format that is easy for humans and
machines to read and write. It consists of two structures:
● A set of name:value pairs enclosed by curly brackets.
● A list of values enclosed by square brackets. This structure is used when the value in a name:value pair is an array.
The value in a name can be a simple value, such as a string or a number, or it can be either of the structures above (a list of
name:value pairs in curly brackets, or a list of values in square brackets).
The following example shows part of a response body for a GET dns collection request in JSON format. In this content, the
value for the addresses attribute is a list structure:
[
{
"id": "DNS1",
"addresses":
[
"10.244.53.108",
"10.244.53.109"
]
}
]
For more information about JSON, see json.org.
Overview
7










