Create request and response
RESTful API for IBM Spectrum Connect uses create requests for object creation.
You can create an object by issuing the POST command followed by request object. The request must contain a set of parameters required for object creation.
For example, POST /api/v1/interfaces entered with the parameters detailed
below, creates an interface on the specified storage system module.
name aaab
address 3.3.3.3
netmask 255.255.255.0
gateway 3.3.3.254
array pu16
module 1:Module:1
ports 1
The
response to the POST request is as follows:- OK, followed by the new object, if the task is completed successfully.
- An error message, detailing a reason for the failed request, as illustrated below.
{
"detail": "One of the physical ports specified is already assigned to an IP Interface"
}