Skip to main content
A newer release of this product is available.

Retrieve Ethernet switch ports

Contributors

GET /network/ethernet/switch/ports

Introduced In: 9.8

Retrieves the ethernet switch ports.

  • system switch ethernet interface show

Parameters

Name Type In Required Description

identity.number

integer

query

False

Filter by identity.number

identity.name

string

query

False

Filter by identity.name

identity.index

integer

query

False

Filter by identity.index

mac_address

string

query

False

Filter by mac_address

duplex_type

string

query

False

Filter by duplex_type

statistics.receive_raw.errors

integer

query

False

Filter by statistics.receive_raw.errors

statistics.receive_raw.discards

integer

query

False

Filter by statistics.receive_raw.discards

statistics.receive_raw.packets

integer

query

False

Filter by statistics.receive_raw.packets

statistics.transmit_raw.errors

integer

query

False

Filter by statistics.transmit_raw.errors

statistics.transmit_raw.discards

integer

query

False

Filter by statistics.transmit_raw.discards

statistics.transmit_raw.packets

integer

query

False

Filter by statistics.transmit_raw.packets

isl

boolean

query

False

Filter by isl

remote_port.name

string

query

False

Filter by remote_port.name

remote_port.mtu

integer

query

False

Filter by remote_port.mtu

remote_port.device.node.name

string

query

False

Filter by remote_port.device.node.name

remote_port.device.node.uuid

string

query

False

Filter by remote_port.device.node.uuid

remote_port.device.shelf.uid

string

query

False

Filter by remote_port.device.shelf.uid

type

string

query

False

Filter by type

mtu

integer

query

False

Filter by mtu

vlan_id

integer

query

False

Filter by vlan_id

configured

string

query

False

Filter by configured

speed

integer

query

False

Filter by speed

switch.name

string

query

False

Filter by switch.name

state

string

query

False

Filter by state

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.

  • Default value: 1

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.

  • Default value: 1

  • Max value: 120

  • Min value: 0

order_by

array[string]

query

False

Order results by specified fields and optional [asc

Response

Status: 200, Ok
Name Type Description

_links

collection_links

num_records

integer

Number of Records

records

array[switch_port]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "records": [
    {
      "_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

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

Name Type Description

next

href

self

href

Name Type Description

self

href

identity

Name Type Description

index

integer

Interface Index.

name

string

Interface Name.

number

integer

Interface Number.

Name Type Description

self

href

node

Name Type Description

_links

_links

name

string

uuid

string

shelf

Shelf connected to this port.

Name Type Description

_links

_links

uid

string

device

Device connected to port.

Name Type Description

node

node

shelf

shelf

Shelf connected to this port.

remote_port

Remote port

Name Type Description

device

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

receive_raw

Packet receive counters for the Ethernet port.

transmit_raw

transmit_raw

Packet transmit counters for the Ethernet port.

switch

The name of the specified cluster or storage switch.

Name Type Description

_links

self_link

name

string

switch_port

Ethernet Switch Port REST API

Name Type Description

_links

self_link

configured

string

Administrative Status.

duplex_type

string

Duplex Settings.

identity

identity

isl

boolean

Is configured as an ISL link.

mac_address

string

MAC Address.

mtu

integer

MTU.

remote_port

remote_port

Remote port

speed

integer

Interface Speed(Mbps)

state

string

Operational Status.

statistics

statistics

These are raw counters for the device associated with the Ethernet port.

switch

switch

The name of the specified cluster or storage switch.

type

string

Interface Type.

vlan_id

array[integer]

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.