Retrieve an Ethernet switch port
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
GET /network/ethernet/switch/ports/{switch}/{identity.name}/{identity.index}
Introduced In: 9.8
Retrieves an ethernet switch port.
Related ONTAP commands
-
system switch ethernet interface show
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
switch |
string |
path |
True |
Switch Name |
identity.name |
string |
path |
True |
Interface Name |
identity.index |
integer |
path |
True |
Interface Index |
fields |
array[string] |
query |
False |
Specify the fields to return. |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_links |
||
configured |
string |
Administrative Status. |
duplex_type |
string |
Duplex Settings. |
identity |
||
isl |
boolean |
Is configured as an ISL link. |
mac_address |
string |
MAC Address. |
mtu |
integer |
MTU. |
remote_port |
Remote port |
|
speed |
integer |
Interface Speed(Mbps) |
state |
string |
Operational Status. |
statistics |
These are raw counters for the device associated with the Ethernet port. |
|
switch |
The name of the specified cluster or storage switch. |
|
type |
string |
Interface Type. |
vlan_id |
array[integer] |
Example response
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"configured": "string",
"duplex_type": "string",
"identity": {
"index": 0,
"name": "string",
"number": 0
},
"mac_address": "string",
"mtu": 0,
"remote_port": {
"device": {
"node": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "node1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"shelf": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"uid": "7777841915827391056"
}
},
"mtu": 0,
"name": "string"
},
"speed": 0,
"state": "string",
"statistics": {
"receive_raw": {
"discards": "100",
"errors": "200",
"packets": "500"
},
"transmit_raw": {
"discards": "100",
"errors": "200",
"packets": "500"
}
},
"switch": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "RTP-SS01-510R03(FOC223443KQ)"
},
"type": "string",
"vlan_id": [
"integer"
]
}
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 |
self_link
Name | Type | Description |
---|---|---|
self |
identity
Name | Type | Description |
---|---|---|
index |
integer |
Interface Index. |
name |
string |
Interface Name. |
number |
integer |
Interface Number. |
_links
Name | Type | Description |
---|---|---|
self |
node
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
|
uuid |
string |
shelf
Shelf connected to this port.
Name | Type | Description |
---|---|---|
_links |
||
uid |
string |
device
Device connected to port.
Name | Type | Description |
---|---|---|
node |
||
shelf |
Shelf connected to this port. |
remote_port
Remote port
Name | Type | Description |
---|---|---|
device |
Device connected to port. |
|
mtu |
integer |
MTU in octets |
name |
string |
Port Name. |
receive_raw
Packet receive counters for the Ethernet port.
Name | Type | Description |
---|---|---|
discards |
integer |
Total number of discarded packets. |
errors |
integer |
Number of packet errors. |
packets |
integer |
Total packet count. |
transmit_raw
Packet transmit counters for the Ethernet port.
Name | Type | Description |
---|---|---|
discards |
integer |
Total number of discarded packets. |
errors |
integer |
Number of packet errors. |
packets |
integer |
Total packet count. |
statistics
These are raw counters for the device associated with the Ethernet port.
Name | Type | Description |
---|---|---|
receive_raw |
Packet receive counters for the Ethernet port. |
|
transmit_raw |
Packet transmit counters for the Ethernet port. |
switch
The name of the specified cluster or storage switch.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
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. |