API common specifications
The chapter describes various API topics such as deprecation and purging policy and an inventory of supported APIs.
The chapter describes various API topics such as deprecation and purging policy and an inventory of supported APIs.
Resources can be accessed using the following URI formats.
The REST API server supports the following HTTP methods.
Some storage actions cannot be completed using the create, read, update, and delete (CRUD) operations. In general, a POST operation is performed for non-CRUD actions on a resource. For example, to format a file system, the request URI is:
The following custom headers are required by all operations.
The REST API server responds with the following status codes, which are defined in RFC 2616.
In cases when an error is thrown by the storage system, the REST API server displays the error code and error message in the response body as shown in the example below.
The data types are JSON data types.
Some object models contain unsigned 64 bit numbers, which can cause problems with some clients being able to interpret them.
A GET operation to https://<host>:<port>/v8/ will return an HTML page that lists all supported REST API server operations.
When making requests to the REST API server, the major version is included as part of the URI. But it is possible for a client to determine the minor version of a successful API call response by checking the headers returned to the client.
The REST API server supports JSON input/output format.
Output paging is supported for GET ALL API operations (for example, Get all file storage system statistics). It is possible to specify the page size (number of items) returned, and the page (an offset into the total results) that is to be returned. This functionality should be used if the expected number of items to be returned may be excessive for a single response.
Sorting is controlled by the top-level scalar (of type boolean, number, or string) attributes. REST API server does not support either multi-level or nesting sort operations. REST API server only supports sorting for the GET ALL API operations (for example, Get all storage pools).
Filtering is used to narrow the result set, and can be used at the same time as result sorting.
REST API server supports embedding for single-level associations.