Retrieve all IP interface details
GET /network/ip/interfaces
Introduced In: 9.6
Retrieves the details of all IP interfaces.
Related ONTAP Commands
-
network interface show
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
name |
string |
query |
False |
Filter by name |
service_policy.name |
string |
query |
False |
Filter by service_policy.name |
service_policy.uuid |
string |
query |
False |
Filter by service_policy.uuid |
ipspace.uuid |
string |
query |
False |
Filter by ipspace.uuid |
ipspace.name |
string |
query |
False |
Filter by ipspace.name |
ddns_enabled |
boolean |
query |
False |
Filter by ddns_enabled
|
scope |
string |
query |
False |
Filter by scope |
location.failover |
string |
query |
False |
Filter by location.failover |
location.home_node.name |
string |
query |
False |
Filter by location.home_node.name |
location.home_node.uuid |
string |
query |
False |
Filter by location.home_node.uuid |
location.auto_revert |
boolean |
query |
False |
Filter by location.auto_revert |
location.is_home |
boolean |
query |
False |
Filter by location.is_home |
location.port.name |
string |
query |
False |
Filter by location.port.name |
location.port.uuid |
string |
query |
False |
Filter by location.port.uuid |
location.port.node.name |
string |
query |
False |
Filter by location.port.node.name |
location.home_port.name |
string |
query |
False |
Filter by location.home_port.name |
location.home_port.uuid |
string |
query |
False |
Filter by location.home_port.uuid |
location.home_port.node.name |
string |
query |
False |
Filter by location.home_port.node.name |
location.node.name |
string |
query |
False |
Filter by location.node.name |
location.node.uuid |
string |
query |
False |
Filter by location.node.uuid |
metric.timestamp |
string |
query |
False |
Filter by metric.timestamp
|
metric.throughput.total |
integer |
query |
False |
Filter by metric.throughput.total
|
metric.throughput.read |
integer |
query |
False |
Filter by metric.throughput.read
|
metric.throughput.write |
integer |
query |
False |
Filter by metric.throughput.write
|
metric.duration |
string |
query |
False |
Filter by metric.duration
|
metric.status |
string |
query |
False |
Filter by metric.status
|
vip |
boolean |
query |
False |
Filter by vip |
state |
string |
query |
False |
Filter by state |
services |
string |
query |
False |
Filter by services |
statistics.timestamp |
string |
query |
False |
Filter by statistics.timestamp
|
statistics.status |
string |
query |
False |
Filter by statistics.status
|
statistics.throughput_raw.total |
integer |
query |
False |
Filter by statistics.throughput_raw.total
|
statistics.throughput_raw.read |
integer |
query |
False |
Filter by statistics.throughput_raw.read
|
statistics.throughput_raw.write |
integer |
query |
False |
Filter by statistics.throughput_raw.write
|
enabled |
boolean |
query |
False |
Filter by enabled |
uuid |
string |
query |
False |
Filter by uuid |
ip.netmask |
string |
query |
False |
Filter by ip.netmask |
ip.family |
string |
query |
False |
Filter by ip.family |
ip.address |
string |
query |
False |
Filter by ip.address |
dns_zone |
string |
query |
False |
Filter by dns_zone
|
svm.uuid |
string |
query |
False |
Filter by svm.uuid |
svm.name |
string |
query |
False |
Filter by svm.name |
fields |
array[string] |
query |
False |
Specify the fields to return. |
max_records |
integer |
query |
False |
Limit the number of records returned. |
return_records |
boolean |
query |
False |
The default is true for GET calls. When set to false, only the number of records is returned.
|
return_timeout |
integer |
query |
False |
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
|
order_by |
array[string] |
query |
False |
Order results by specified fields and optional [asc |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_links |
||
num_records |
integer |
|
records |
array[ip_interface] |
Example response
{
"_links": {
"next": {
"href": "/api/resourcelink"
},
"self": {
"href": "/api/resourcelink"
}
},
"num_records": "1",
"records": [
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"dns_zone": "storage.company.com",
"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"
}
},
"metric": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"duration": "PT15S",
"status": "ok",
"throughput": {
"read": "200",
"total": "1000",
"write": "100"
},
"timestamp": "2017-01-25T11:20:13Z"
},
"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",
"statistics": {
"status": "ok",
"throughput_raw": {
"read": "200",
"total": "1000",
"write": "100"
},
"timestamp": "2017-01-25T11:20:13Z"
},
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
}
]
}
Error
Status: Default, Error
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 |
---|---|---|
next |
||
self |
_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, the default value is 64 with a valid range of 1 to 127. 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. For PATCH, set is_home to true to revert a LIF back to its home port.
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. |
throughput
The rate of throughput bytes per second observed at the interface.
Name | Type | Description |
---|---|---|
read |
integer |
Performance metric for read I/O operations. |
total |
integer |
Performance metric aggregated over all types of I/O operations. |
write |
integer |
Peformance metric for write I/O operations. |
metric
The most recent sample of I/O metrics for the interface.
Name | Type | Description |
---|---|---|
_links |
||
duration |
string |
The duration over which this sample is calculated. The time durations are represented in the ISO-8601 standard format. Samples can be calculated over the following durations: |
status |
string |
Errors associated with the sample. For example, if the aggregation of data over multiple nodes fails, then any partial errors might return "ok" on success or "error" on an internal uncategorized failure. Whenever a sample collection is missed but done at a later time, it is back filled to the previous 15 second timestamp and tagged with "backfilled_data". "inconsistent_delta_time" is encountered when the time between two collections is not the same for all nodes. Therefore, the aggregated value might be over or under inflated. "Negative_delta" is returned when an expected monotonically increasing value has decreased in value. "inconsistent_old_data" is returned when one or more nodes do not have the latest data. |
throughput |
The rate of throughput bytes per second observed at the interface. |
|
timestamp |
string |
The timestamp of the performance data. |
service_policy
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
uuid |
string |
throughput_raw
Throughput bytes observed at the interface. This can be used along with delta time to calculate the rate of throughput bytes per unit of time.
Name | Type | Description |
---|---|---|
read |
integer |
Performance metric for read I/O operations. |
total |
integer |
Performance metric aggregated over all types of I/O operations. |
write |
integer |
Peformance metric for write I/O operations. |
statistics
The real time I/O statistics for the interface.
Name | Type | Description |
---|---|---|
status |
string |
Errors associated with the sample. For example, if the aggregation of data over multiple nodes fails, then any partial errors might return "ok" on success or "error" on an internal uncategorized failure. Whenever a sample collection is missed but done at a later time, it is back filled to the previous 15 second timestamp and tagged with "backfilled_data". "inconsistent_delta_time" is encountered when the time between two collections is not the same for all nodes. Therefore, the aggregated value might be over or under inflated. "Negative_delta" is returned when an expected monotonically increasing value has decreased in value. "inconsistent_old_data" is returned when one or more nodes do not have the latest data. |
throughput_raw |
Throughput bytes observed at the interface. This can be used along with delta time to calculate the rate of throughput bytes per unit of time. |
|
timestamp |
string |
The timestamp of the performance data. |
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 |
||
ddns_enabled |
boolean |
Indicates whether or not dynamic DNS updates are enabled. Defaults to true if the interface supports "data_nfs" or "data_cifs" services, otherwise false. |
dns_zone |
string |
Fully qualified DNS zone name |
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. For PATCH, set is_home to true to revert a LIF back to its home port. |
|
metric |
The most recent sample of I/O metrics for the interface. |
|
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. |
statistics |
The real time I/O statistics for 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. |