Reference Guide

Overview
Topics:
The PowerStore Management REST API
Resource-oriented architecture and REST
JSON data exchange format
The PowerStore Management REST API
The PowerStore Management REST API is a set of resources (objects), operations, and attributes that provide interactive,
scripted, and programmatic management control of the PowerStore cluster. Here are some examples of what you can do with
the REST API:
Provision new cluster components, such as appliances and volumes.
Configure replication destinations and sessions, and rules.
Fail over and fail back an appliance.
Create snapshots for backup purposes.
Gather metrics to use for historical analysis.
Gather configuration information and logs to use for auditing and trending analysis.
For more information about PowerStore Management REST API functionality, see Reference content on page 43. Reference
materials are also available on the appliance in several formats:
Swagger UIhttps://<cluster management ip address>/swaggerui
JSONhttps://<cluster management ip address>/api/rest/openapi.json
The REST API uses a Representational State Transfer (REST) architecture style to expose data. Using a REST API provides the
following advantages:
Presents a single, consistent interface for managing PowerStore clusters.
Requires no additional tools, other than standard web browsers or command-line HTTP tools, such as wGET and cURL. For
complex interactions, clients can use any procedural programming language, such as C++ or Java, or scripting language, such
as Perl or Python, to make calls to the REST API.
Uses well-known HTTP conventions in a standard manner to interact with the appliance.
Is easy to transport in the network. REST API traffic looks and acts like standard HTTP network traffic, and requires no
special ports open in the firewall or special settings in the switches.
The REST API connection is secured with SSL. The same authentication is used for the REST API and GUI.
Resource-oriented architecture and REST
REST is a client/server architectural style that uses the HTTP protocol in a simple, effective, way. REST is based on the
following principles:
Application state and functionality are organized into resources. Resources represent physical things, such as a specific
appliance. Resources also represent logical things, such as a specific alert, or collections of entities, such as the volumes or
virtual disks in the system.
Each resource has a unique Universal Resource Identifier (URI), and each resource instance has a unique ID. For example,
you can identify the alert collection with this path component: /api/rest/alert, and you can identify the alert instance
that has an ID of 00c0d863-8a13-4e98-ba06-c4c3f6da615f with this URI: /api/rest/alert/00c0d863-8a13-4e98-
ba06-c4c3f6da615f.
Resources share a uniform interface between the client and server through standard HTTP protocol operations. The
PowerStore Management REST API uses the HTTP GET operation to retrieve data about a resource collection or resource
instance, PATCH to modify a resource instance, POST to create a resource instance, and DELETE to delete a resource
1
6 Overview