How to use the REST API to request information
How to use the REST API to gather information about the IBM Storage Archive Enterprise Edition system.
The following topics provide the information that you need to use the REST API.
The request URLs that you need are provided, and the response data that you receive is defined.
The REST API URLs accept additional parameters. For example, the following command displays only
the information in the
nameand
capacityfields of all pools.
curl -XGET ’http://localhost:7100/ibmsa/v2/pools?pretty&fields=name,capacity’ -b cookies.txt- Status codes
-
- 200 = Success
- 400 = Bad request
- 401 = Unauthorized
- 404 = Not found
- 500 = Server error
Any other status indicates that an error was detected.