Add portset network interfaces
POST /protocols/san/portsets/{portset.uuid}/interfaces
Introduced In: 9.9
Adds one or more interfaces to a portset.
Required properties
- 
fc,iporrecords- Network interface(s) to add to the portset. 
Related ONTAP commands
- 
lun portset add 
Learn more
Parameters
| Name | Type | In | Required | Description | 
|---|---|---|---|---|
portset.uuid  | 
string  | 
path  | 
True  | 
The unique identifier of the portset.  | 
return_records  | 
boolean  | 
query  | 
False  | 
The default is false. If set to true, the records are returned. 
  | 
Request Body
| Name | Type | Description | 
|---|---|---|
fc  | 
An FC interface.  | 
|
ip  | 
||
portset  | 
The portset in which the network interface is found. Note that this does not mean that the network interface cannot also be found in other portsets.  | 
|
records  | 
array[records]  | 
An array of network interfaces specified to add multiple interfaces to a portset in a single API call. Valid in POST only and not allowed when the   | 
uuid  | 
string  | 
The unique identifier of the network interface.  | 
Example request
{
  "fc": {
    "name": "fc_lif1",
    "uuid": "3a09ab42-4da1-32cf-9d35-3385a6101a0b",
    "wwpn": "20:00:00:50:56:b4:13:a8"
  },
  "ip": {
    "name": "lif1",
    "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
  },
  "portset": {
    "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
  },
  "records": [
    {
      "fc": {
        "name": "fc_lif1",
        "uuid": "3a09ab42-4da1-32cf-9d35-3385a6101a0b",
        "wwpn": "20:00:00:50:56:b4:13:a8"
      },
      "ip": {
        "name": "lif1",
        "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
      },
      "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
    }
  ],
  "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
}
Response
Status: 201, Created
| Name | Type | Description | 
|---|---|---|
num_records  | 
integer  | 
The number of records in the response.  | 
records  | 
array[portset_interface]  | 
Example response
{
  "num_records": 1,
  "records": [
    {
      "fc": {
        "name": "fc_lif1",
        "uuid": "3a09ab42-4da1-32cf-9d35-3385a6101a0b",
        "wwpn": "20:00:00:50:56:b4:13:a8"
      },
      "ip": {
        "name": "lif1",
        "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
      },
      "portset": {
        "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
      },
      "records": [
        {
          "fc": {
            "name": "fc_lif1",
            "uuid": "3a09ab42-4da1-32cf-9d35-3385a6101a0b",
            "wwpn": "20:00:00:50:56:b4:13:a8"
          },
          "ip": {
            "name": "lif1",
            "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
          },
          "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
        }
      ],
      "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
    }
  ]
}
Headers
| Name | Description | Type | 
|---|---|---|
Location  | 
Useful for tracking the resource location  | 
string  | 
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description | 
|---|---|
5374906  | 
A specified network interface was not found.  | 
5374907  | 
The specified network interface UUID and name don't identify the same network interface.  | 
5374909  | 
An invalid combination of network interface properties was specified.  | 
5374910  | 
An incomplete set of network interface properties was specified.  | 
5374914  | 
An attempt was made to add a network interface of an incompatible protocol to a portset.  | 
5374915  | 
An attempt was made to add a duplicate network interface to a portset.  | 
Definitions
See Definitions
href
| Name | Type | Description | 
|---|---|---|
href  | 
string  | 
_links
fc
An FC interface.
| Name | Type | Description | 
|---|---|---|
name  | 
string  | 
The name of the FC interface.  | 
uuid  | 
string  | 
The unique identifier of the FC interface.  | 
wwpn  | 
string  | 
The WWPN of the FC interface.  | 
ip
IP information
ip
| Name | Type | Description | 
|---|---|---|
ip  | 
IP information  | 
|
name  | 
string  | 
The name of the interface. If only the name is provided, the SVM scope must be provided by the object this object is embedded in.  | 
uuid  | 
string  | 
The UUID that uniquely identifies the interface.  | 
portset
The portset in which the network interface is found.
Note that this does not mean that the network interface cannot also be found in other portsets.
| Name | Type | Description | 
|---|---|---|
uuid  | 
string  | 
The unique identifier of the portset.  | 
records
A container for either a Fibre Channel network interface or an IP network interface. On POST fc and ip are mutually exclusive.
| Name | Type | Description | 
|---|---|---|
fc  | 
An FC interface.  | 
|
ip  | 
||
uuid  | 
string  | 
The unique identifier of the network interface.  | 
portset_interface
| Name | Type | Description | 
|---|---|---|
fc  | 
An FC interface.  | 
|
ip  | 
||
portset  | 
The portset in which the network interface is found. Note that this does not mean that the network interface cannot also be found in other portsets.  | 
|
records  | 
array[records]  | 
An array of network interfaces specified to add multiple interfaces to a portset in a single API call. Valid in POST only and not allowed when the   | 
uuid  | 
string  | 
The unique identifier of the network interface.  | 
error_arguments
| Name | Type | Description | 
|---|---|---|
code  | 
string  | 
Argument code  | 
message  | 
string  | 
Message argument  | 
error
| Name | Type | Description | 
|---|---|---|
arguments  | 
array[error_arguments]  | 
Message arguments  | 
code  | 
string  | 
Error code  | 
message  | 
string  | 
Error message  | 
target  | 
string  | 
The target parameter that caused the error.  |