Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
The POST command creates a new datalink. One additional property that is needed when creating a new datalink is the class property, which defines the class of datalink to create. The Datalinks class is defined during datalink creation and can be one of the following class types.
device - Create a device-based datalink
vnic - Create a VNIC-based datalink
vlan - Create a VLAN-based datalink
aggregation - Create an aggregation-based datalink
partition - Create an IB partition datalink
The properties map to the same CLI properties available in the “configuration net datalinks” menu.
Example Request:
POST /api/network/v1/datalinks HTTP/1.1 Host: zfssa.example.com:215 X-Auth-User: root X-Auth-Key: letmein Content-Type: application/json Content-Length: 78 { "class": "device", "jumbo": true, "links": ["ixgbe2"], "label": "TestDataLink" }
Example Response:
HTTP/1.1 201 Created X-Zfssa-Appliance-Api: 1.0 Location: /api/network/v1/datalinks/ixgbe2