Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Creates a new network route. The route href values can change if other routes are added to the system. No route information is returned on a create since the returned properties would be identical to the input properties. A successful create returns HTTP Status 204 (Created).
Example Request to Create a Static Route:
POST /api/network/v1/routes HTTP/1.1 Authorization: Basic abcd1234MWE= Host: zfssa.example.com:215 Content-Type: application/json Content-Length: 164 { "family": "IPv4", "destination": "0.0.0.0", "mask": "0", "gateway": "10.11.12.1", "interface": "ixgbe0" }
Example Result:
HTTP/1.1 201 Created