Create a new cluster-scoped or SVM-scoped interface
POST /network/ip/interfaces
Creates a new Cluster-scoped or SVM-scoped interface.
Required properties
-
name
- Name of the interface to create. -
ip.address
- IP address for the interface. -
ip.netmask
- IP subnet of the interface. -
ipspace.name
oripspace.uuid
-
Required for Cluster-scoped interfaces.
-
Optional for SVM-scoped interfaces.
-
-
svm.name
orsvm.uuid
-
Required for an SVM-scoped interface.
-
Invalid for a Cluster-scoped interface.
-
-
location.home_port
orlocation.home_node
orlocation.broadcast_domain
- One of these properties must be set to a value to define where the interface will be located.
Recommended property values
-
service_policy
-
for SVM scoped interfaces
-
default-data-files for interfaces carrying file-oriented NAS data traffic
-
default-data-blocks for interfaces carrying block-oriented SAN data traffic
-
default-management for interfaces carrying SVM management requests
-
-
for Cluster scoped interfaces
-
default-intercluster for interfaces carrying cluster peering traffic
-
default-management for interfaces carrying system management requests
-
default-route-announce for interfaces carrying BGP peer connections
-
-
Default property values
If not specified in POST, the following default property values are assigned:
-
scope
-
svm if svm parameter is specified.
-
cluster if svm parameter is not specified
-
-
enabled
- true -
location.auto_revert
- true -
service_policy
-
default-data-files if scope is
svm
-
default-management if scope is
cluster
and IPspace is notCluster
-
default-cluster if scope is
svm
and IPspace isCluster
-
-
failover
- Selects the least restrictive failover policy supported by all the services in the service policy.
Related ONTAP commands
-
network interface create
Learn more
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
return_records |
boolean |
query |
False |
The default is false. If set to true, the records are returned. |
Request Body
Name | Type | Description |
---|---|---|
_links |
||
enabled |
boolean |
The administrative state of the interface. |
ip |
IP information |
|
ipspace |
Either the UUID or name must be supplied on POST for cluster-scoped objects. |
|
location |
Current or home location can be modified. Specifying a port implies a node. Specifying a node allows an appropriate port to be automatically selected. Ports are not valid and not shown for VIP interfaces. For POST, broadcast_domain can be specified alone or with home_node. |
|
name |
string |
Interface name |
scope |
string |
Set to "svm" for interfaces owned by an SVM. Otherwise, set to "cluster". |
service_policy |
||
services |
array[string] |
The services associated with the interface. |
state |
string |
The operational state of the interface. |
svm |
Applies only to SVM-scoped objects. Either the UUID or name must be supplied on POST. |
|
uuid |
string |
The UUID that uniquely identifies the interface. |
vip |
boolean |
True for a VIP interface, whose location is announced via BGP. |
Example request
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"ip": {
"address": "10.10.10.7",
"family": "string",
"netmask": "24"
},
"ipspace": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "exchange",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"location": {
"broadcast_domain": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "bd1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"failover": "string",
"home_node": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "node1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"home_port": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "e1b",
"node": {
"name": "node1"
},
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"node": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "node1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"port": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "e1b",
"node": {
"name": "node1"
},
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
}
},
"name": "dataLif1",
"scope": "string",
"service_policy": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "default-intercluster",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"services": [
"data_nfs"
],
"state": "string",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
}
Response
Status: 201, Created
Error
Status: Default
ONTAP Error Response Codes
Error Code | Description |
---|---|
1376656 |
Cluster interfaces must be in the same subnet. Verify the address and netmask are set to the correct values. |
1376963 |
Duplicate IP address. |
1966138 |
The same IP address may not be used for both a mgmt interface and a gateway address. |
1966140 |
An interface with the same name already exists. |
1966987 |
The Vserver Broadcast-Domain Home-Node and Home-Port combination is not valid. |
1967081 |
The specified SVM must exist in the specified IPspace. |
1967082 |
The specified ipspace.name does not match the IPspace name of ipspace.uuid. |
1967102 |
POST operation might have left configuration in an inconsistent state. Check the configuration. |
1967106 |
The specified location.home_port.name does not match the specified port name of location.home_port.uuid. |
1967107 |
The location.home_port.uuid specified is not valid. |
1967108 |
The specified location.home_node.name does not match the node name of location.home_node.uuid. |
1967109 |
The specified location.home_port.node.name does not match the node name of location.home_node.uuid. |
1967110 |
The specified location.home_port.node.name does not match location.home_node.name. |
1967111 |
Home node must be specified by at least one location.home_node, location.home_port, or location.broadcast_domain field. |
1967112 |
The specified location.home_node.name does not match the node name of location.home_port.uuid. |
1967120 |
The specified service_policy.name does not match the specified service policy name of service_policy.uuid. |
1967121 |
Invalid service_policy.uuid specified. |
1967122 |
The specified location.broadcast_domain.name does not match the specified broadcast domain name of location.broadcast_domain.uuid. |
1967123 |
The specified IPspace does not match the IPspace name of location.broadcast_domain.uuid. |
1967124 |
The location.broadcast_domain.uuid specified is not valid. |
1967127 |
svm.uuid or svm.name must be provided if scope is "svm". |
1967128 |
ipspace.uuid or ipspace.name must be provided if scope is "cluster". |
1967129 |
The specified location.home_port.uuid is not valid. |
1967130 |
The specified location.home_port.name is not valid. |
1967131 |
The specified location.home_port.uuid and location.home_port.name are not valid. |
1967135 |
The specified location.broadcast_domain.uuid is not valid. |
1967136 |
The specified location.broadcast_domain.name (and ipspace name) is not valid. |
1967137 |
The specified location.broadcast_domain.uuid and location.broadcast_domain.name (and IPspace name) are not valid. |
1967145 |
The specified location.failover is not valid. |
1967146 |
The specified svm.name is not valid. |
1967147 |
The specified svm.uuid is not valid. |
1967153 |
No suitable port exists on location.home_node to host the interface. |
1967154 |
Interfaces cannot be created on ports that are down. If a broadcast domain is specified, ensure that it contains at least one port that is operationally up. |
1967381 |
Post VIP interfaces requires an effective cluster version of 9.7 or later. |
1967382 |
VIP interfaces only reside in SVM scope. |
1967383 |
Neither location.home_port.uuid or location.home_port.name should be set with vip=true. |
1967384 |
Failed to create VIP interface because the home node does not have active BGP sessions to support Virtual IP (VIP) traffic. |
1967385 |
VIP interfaces with an IPv4 address must use ip.netmask=32. VIP interfaces with an IPv6 address must use ip.netmask=128. |
1967387 |
The specified IP address is in use by a subnet in this IPspace. |
5373966 |
An iSCSI interface cannot be created in an SVM configured for NVMe. |
53281065 |
The service_policy does not exist in the SVM. |
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
ip_info
IP information
Name | Type | Description |
---|---|---|
address |
string |
IPv4 or IPv6 address |
family |
string |
IPv4 or IPv6 |
netmask |
string |
Input as netmask length (16) or IPv4 mask (255.255.0.0). For IPv6, you must set the netmask length. The default value is 64. Output is always netmask length. |
ipspace
Either the UUID or name must be supplied on POST for cluster-scoped objects.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
IPspace name |
uuid |
string |
IPspace UUID |
broadcast_domain
Broadcast domain UUID along with a readable name.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
Name of the broadcast domain, scoped to its IPspace |
uuid |
string |
Broadcast domain UUID |
home_node
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
uuid |
string |
node
Name | Type | Description |
---|---|---|
name |
string |
Name of node on which the port is located. |
home_port
Port UUID along with readable names. Either the UUID or both names may be supplied on input.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
node |
||
uuid |
string |
node
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
uuid |
string |
port
Port UUID along with readable names. Either the UUID or both names may be supplied on input.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
node |
||
uuid |
string |
location
Current or home location can be modified. Specifying a port implies a node. Specifying a node allows an appropriate port to be automatically selected. Ports are not valid and not shown for VIP interfaces. For POST, broadcast_domain can be specified alone or with home_node.
Name | Type | Description |
---|---|---|
auto_revert |
boolean |
|
broadcast_domain |
Broadcast domain UUID along with a readable name. |
|
failover |
string |
Defines where an interface may failover. |
home_node |
||
home_port |
Port UUID along with readable names. Either the UUID or both names may be supplied on input. |
|
is_home |
boolean |
|
node |
||
port |
Port UUID along with readable names. Either the UUID or both names may be supplied on input. |
service_policy
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
uuid |
string |
svm
Applies only to SVM-scoped objects. Either the UUID or name must be supplied on POST.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
ip_interface
Name | Type | Description |
---|---|---|
_links |
||
enabled |
boolean |
The administrative state of the interface. |
ip |
IP information |
|
ipspace |
Either the UUID or name must be supplied on POST for cluster-scoped objects. |
|
location |
Current or home location can be modified. Specifying a port implies a node. Specifying a node allows an appropriate port to be automatically selected. Ports are not valid and not shown for VIP interfaces. For POST, broadcast_domain can be specified alone or with home_node. |
|
name |
string |
Interface name |
scope |
string |
Set to "svm" for interfaces owned by an SVM. Otherwise, set to "cluster". |
service_policy |
||
services |
array[string] |
The services associated with the interface. |
state |
string |
The operational state of the interface. |
svm |
Applies only to SVM-scoped objects. Either the UUID or name must be supplied on POST. |
|
uuid |
string |
The UUID that uniquely identifies the interface. |
vip |
boolean |
True for a VIP interface, whose location is announced via BGP. |
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. |