Cisco Nexus 3000 and 9000 Series NX-API REST SDK and API, Release 9.2x
NX-OS 9.2(x)
- Cisco Nexus 3000 and 9000 Series NX-API REST Documentation
- Cisco Nexus 3000 and 9000 Series NX-API REST SDK User Guide and API Reference, Release 9.2(x)
- Getting Started with the Cisco Nexus 3000 and 9000 Series NX-API REST SDK
- New and Changed Information
- Manageability
- Configuring Fundamentals
- High Availability and Redundancy
- Configuring Interfaces
- Configuring Ethernet Interfaces
- Configuring Loopback Interfaces
- Configuring Breakout Profiles
- Configuring System Default Switchport
- Configuring Tunnel Interfaces
- Configuring SVIs
- Configuring UDLD
- Configuring BFD
- Configuring Virtual Port Channels
- Configuring LACP
- Configuring Hostname Loopback
- Configuring Breakout on High-Bandwidth Interfaces
- Configuring Port Channel Interfaces
- Configuring Network Address Translation (NAT)
- Configuring Static MPLS and Segment Routing
- Configuring Netstack
- Configuring Layer 2 Switching
- Configuring Multicast Routing
- Configuring QoS
- Configuring Security
- Configuring System Management
- Configuring VXLAN BGP EVPN
- Configuring Unicast Routing
- Configuring ARP
- Configuring DNS
- Configuring System Routing
- Configuring OSPF and OSPFv2
- Configuring IS-IS
- Configuring BGP
- Configuring a BGP Router
- Configuring a BGP on a VRF
- Configuring an IPv4 Labeled Unicast Address Family
- Configuring an IPv4 Multicast Address Family
- Configuring an IPv4 MVPN Address Family
- Configuring an IPv4 Unicast Address Family
- Configuring an IPv6 Labeled Unicast Address Family
- Configuring an IPv6 Multicast Address Family
- Configuring an IPv6 MVPN Address Family
- Configuring an IPv6 Unicast Address Family
- Configuring an L2VPN EVPN Address Family
- Configuring a Link-State Address Family
- Configuring a VPNv4 Unicast Address Family
- Configuring a VPNv6 Unicast Address Family
- Configuring a Peer Template
- Configuring a BGP Neighbor
- Configuring a BMP Server
- Configuring Mixed ECMP
- Configuring EVPN
- Querying Ephemeral Data
- Configuring VRF
- First-Hop Redundancy Protocols
- Configuring Static Routes
- Configuring Route Policy Manager
- Configuring Telemetry
- Querying Configurations (Show Commands)
- Querying Analytic Information
- Querying Interface and VLAN Counters and Statistics
- Using the Managed Object Browser
- Monitoring the Environment
Creating a Subscription
DME
CopyGET https://<IP_Address>/api/mo/sys/intf/phys-[eth1/3].json?subscription=yes&query-target=subtree
Response
{
'totalCount': '25',
'subscriptionId': '18374686492539748353',
'imdata': [{
'ethpmHwIfDetails': {
'attributes': {
'dn': 'sys/intf/phys-[eth1/3]/hwifdetails',
'sPort': '0',
'slice': '0',
'vif': '3'
}
}
}, {
'ethpmFcot': {
'attributes': {
'baseResvd1': '0',
'baseResvd2': '0',
'baseResvd3': '1',
'baseResvd4': '65,12,193',
'brIn100MHz': '13',
'brMaxMargin': '0',
'brMinMargin': '0',
'ccex': '233',
'ccid': '26',
'connectType': '0',
'dateCode': '11012001',
'description': '',
'diagMonType': '0',
'distIn100mFor9u': '0',
'distIn10mFor50u': '0',
'distIn10mFor60u': '0',
'distIn1mForCu': '100',
'distInKmFor9u': '0',
'dn': 'sys/intf/phys-[eth1/3]/phys/fcot',
'eid': 'unknown',
'encoding': '1',
'enhOption': '0',
'extOption': '0,16',
'fCTxType': '33',
'fcotNum': '19',
'fcotType': '8',
'flags': 'ok',
'gigEthCC': '8',
'isFcotPresent': 'yes',
'maxSpeed': '4',
'minSpeed': '4',
'partNumber': '',
'sff8472Compl': '0',
'state': 'inserted',
'type': 'sfp',
'typeName': '1000base-T',
'vendorData': '0,0,14,76,224,254,137,178,26,53,86,22,232,237,165,223,210,23,75,0,0,0,0,0,0,0,0,0,254,249,76,125',
'vendorId': '0,0,0',
'vendorName': 'CISCO-METHODE',
'vendorPn': 'SP7041-E',
'vendorRev': 'E',
'vendorSn': 'MTC150303LW',
'versionId': '',
'xcvrCode': '0,0,0,8,0,0,0,0',
'xcvrExtId': '4',
'xcvrId': '3'
}
}
}, {
'ethpmPortCap': {
'attributes': {
'autoneg': '1',
'channel': '1',
'cosRewrite': '1',
'ctsCapable': '0',
'dn': 'sys/intf/phys-[eth1/3]/phys/portcap',
'duplex': 'full',
'eeeCapVal': '0',
'eeeFlapFlags': '0',
'eeeWakeTimes10g': '0,0,0',
'fcotCapable': '1',
'id': 'unspecified',
'linkDebounce': '1',
'linkDebounceTime': '50',
'mdix': '0',
'model': '103,98,105,99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',
'portCap': '247463936',
'portGroup': '2',
'portGrpMbrs': '3',
'protoSupport': '553648147',
'qosRxPrio': '0',
'qosRxQueue': '0',
'qosRxThold': '0',
'qosTxPrio': '0',
'qosTxQueue': '8',
'qosTxThold': '0',
'rateMode': '1',
'rxFlowControl': '7',
'span': '1',
'speed': '1000,10000',
'suppression': '1',
'tosRewrite': '1',
'trunkEncap': '1',
'txFlowControl': '7',
'type': '49,48,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',
'udld': '1'
}
}
}, {
'ethpmPhysIf': {
'attributes': {
'accessVlan': 'vlan-1',
'adminSt': 'up',
'allowedVlans': '',
'backplaneMac': 'A4:6C:2A:AC:42:EA',
'bundleBupId': '3',
'bundleIndex': 'unspecified',
'cachedUserCfgdFlags': 'admin_layer,admin_state',
'cfgAccessVlan': 'vlan-1',
'cfgNativeVlan': 'vlan-1',
'childAction': '',
'currErrIndex': '4294967295',
'diags': 'none',
'dn': 'sys/intf/phys-[eth1/3]/phys',
'dynamicVlan': 'no',
'encap': '3',
'errDisTimerRunning': 'no',
'errVlans': '',
'gport': '134219795',
'ifIndex': '436208640',
'intfT': 'phy',
'iod': '217',
'lastErrors': '0,0,0,0',
'lastLinkStChg': '2018-10-18T23:43:56.274+00:00',
'media': '2',
'modTs': 'never',
'nativeVlan': 'vlan-1',
'numOfSI': '0',
'operAutoNeg': 'on',
'operBitset': '3-4,13',
'operDceMode': 'edge',
'operDescr': '',
'operDuplex': 'full',
'operEEERxWkTime': '0',
'operEEEState': 'not-applicable',
'operEEETxWkTime': '0',
'operErrDisQual': 'up',
'operFECMode': '0',
'operFlowCtrl': '',
'operLinkDebounce': '100',
'operMdix': 'auto',
'operMode': 'access',
'operMtu': '1500',
'operPhyEnSt': 'unknown',
'operRouterMac': '74:A2:E6:C6:79:FF',
'operSpeed': '1G',
'operSt': 'up',
'operStQual': 'none',
'operStQualCode': '0',
'operTrunkStatus': 'not-trunking',
'operVlans': '1',
'persistentOnReload': 'false',
'portCfgWaitFlags': '0',
'primaryVlan': 'vlan-1',
'resetCtr': '2',
'shareState': 'dedicated',
'siList': '',
'status': '',
'txT': 'unknown',
'usage': '',
'userCfgdFlags': 'admin_layer,admin_state',
'vdcId': '1'
}
}
}, {
'l1EeeP': {
'attributes': {
'childAction': '',
'descr': '',
'dn': 'sys/intf/phys-[eth1/3]/eeep',
'eeeLat': 'variable',
'eeeLpi': 'aggressive',
'eeeState': 'not-applicable',
'modTs': '2018-10-11T20:05:37.522+00:00',
'name': '',
'persistentOnReload': 'true',
'status': ''
}
}
}, {
'l1LoadP': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/loadp',
'ethpmCfgFailedBmp': '',
'ethpmCfgFailedTs': '00:00:00:00.000',
'ethpmCfgState': '0',
'loadIntvl1': '30',
'loadIntvl2': '300',
'loadIntvl3': '0',
'modTs': '2018-10-11T20:05:37.522+00:00',
'persistentOnReload': 'true',
'status': ''
}
}
}, {
'l1PhysIfExtended': {
'attributes': {
'allowMultiTag': 'disable',
'bufferBoost': 'enable',
'childAction': '',
'descr': '',
'dn': 'sys/intf/phys-[eth1/3]/physExtd',
'flowCtrl': '',
'id': 'eth1/3',
'modTs': '2018-10-11T20:05:37.522+00:00',
'name': '',
'persistentOnReload': 'true',
'portTypeFabric': 'no',
'routerMacIpv6Extract': 'disable',
'status': '',
'stormCtrlAct': '',
'stormCtrlBCastLevel': '100.000000',
'stormCtrlBCastPPS': '4294967295',
'stormCtrlMCastLevel': '100.000000',
'stormCtrlMCastPPS': '4294967295',
'stormCtrlUCastLevel': '100.000000',
'stormCtrlUCastPPS': '4294967295',
'switchportBlock': '',
'switchportMacLearn': 'enable',
'switchportVirtualEthernetBridge': 'disable'
}
}
}, {
'l1RsCdpIfPolCons': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rscdpIfPolCons',
'forceResolve': 'no',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'rType': 'mo',
'state': 'formed',
'stateQual': 'none',
'status': '',
'tCl': 'cdpIfPol',
'tDn': 'uni/infra/cdpIfP-default',
'tType': 'mo'
}
}
}, {
'l1RsHIfPolCons': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rshIfPolCons',
'forceResolve': 'no',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'rType': 'mo',
'state': 'formed',
'stateQual': 'none',
'status': '',
'tCl': 'fabricHIfPol',
'tDn': 'uni/infra/hintfpol-default',
'tType': 'mo'
}
}
}, {
'l1RsStormctrlIfPolCons': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rsstormctrlIfPolCons',
'forceResolve': 'no',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'rType': 'mo',
'state': 'formed',
'stateQual': 'none',
'status': '',
'tCl': 'stormctrlIfPol',
'tDn': 'uni/infra/stormctrlifp-default',
'tType': 'mo'
}
}
}, {
'l1RsStpIfPolCons': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rsstpIfPolCons',
'forceResolve': 'no',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'rType': 'mo',
'state': 'formed',
'stateQual': 'none',
'status': '',
'tCl': 'stpIfPol',
'tDn': 'uni/infra/ifpol-default',
'tType': 'mo'
}
}
}, {
'l1RtEthIf': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rtl2EthIf-[sys/lacp/inst/if-[eth1/3]]',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'status': '',
'tCl': 'lacpIf',
'tDn': 'sys/lacp/inst/if-[eth1/3]',
'tSKey': 'eth1/3'
}
}
}, {
'l1RtEthIf': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rtl2EthIf-[sys/cdp/inst/if-[eth1/3]]',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'status': '',
'tCl': 'cdpIf',
'tDn': 'sys/cdp/inst/if-[eth1/3]',
'tSKey': 'eth1/3'
}
}
}, {
'l1RtIoPPhysConf': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rtioPPhysConf',
'modTs': '2018-10-18T19:32:07.068+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'status': '',
'tCl': 'eqptLeafP',
'tDn': 'sys/ch/lcslot-1/lc/leafport-3'
}
}
}, {
'l1StormCtrlP': {
'attributes': {
'burstPps': '4294967295',
'burstRate': '100.000000',
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/stormctrlp',
'modTs': '2018-10-11T20:05:37.522+00:00',
'persistentOnReload': 'true',
'rate': '100.000000',
'ratePps': '4294967295',
'status': '',
'type': 'all'
}
}
}, {
'nfmPhysIf': {
'attributes': {
'asicNum': '0',
'dn': 'sys/intf/phys-[eth1/3]/nfmphysif',
'sliceNum': '0',
'sliceSrcId': '0',
'slotNum': '0'
}
}
}, {
'nwRtPathToIf': {
'attributes': {
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/rtpathToIf-[sys/conng/path-[eth1/3]]',
'modTs': '2018-10-11T20:05:37.522+00:00',
'parentSKey': 'eth1/3',
'persistentOnReload': 'true',
'status': '',
'tCl': 'nwPathEp',
'tDn': 'sys/conng/path-[eth1/3]',
'tSKey': 'eth1/3'
}
}
}, {
'pcAggrMbrIf': {
'attributes': {
'bdlPortNum': '0',
'channelingSt': 'unknown',
'childAction': '',
'dn': 'sys/intf/phys-[eth1/3]/aggrmbrif',
'flags': '',
'ltlProgrammed': 'no',
'modTs': 'never',
'name': '',
'operSt': 'down',
'persistentOnReload': 'false',
'status': '',
'summOperSt': 'down',
'uptime': '00:00:00:00.000'
}
}
}, {
'rmonDot3Stats': {
'attributes': {
'alignmentErrors': '0',
'babble': '0',
'carrierSenseErrors': '0',
'clearTs': 'never',
'controlInUnknownOpcodes': '0',
'deferredTransmissions': '0',
'dn': 'sys/intf/phys-[eth1/3]/dbgDot3Stats',
'excessiveCollisions': '0',
'fCSErrors': '0',
'frameTooLongs': '0',
'inPauseFrames': '0',
'inputdribble': '0',
'internalMacReceiveErrors': '0',
'internalMacTransmitErrors': '0',
'lateCollisions': '0',
'lostCarrierErrors': '0',
'multipleCollisionFrames': '0',
'noCarrierErrors': '0',
'outPauseFrames': '0',
'runts': '0',
'sQETTestErrors': '0',
'singleCollisionFrames': '0',
'symbolErrors': '0'
}
}
}, {
'rmonEtherStats': {
'attributes': {
'broadcastPkts': '0',
'cRCAlignErrors': '0',
'clearTs': 'never',
'collisions': '0',
'dn': 'sys/intf/phys-[eth1/3]/dbgEtherStats',
'dropEvents': '0',
'fragments': '0',
'giantPkts': '0',
'ifdowndrop': '0',
'ignored': '0',
'jabbers': '0',
'multicastPkts': '0',
'octets': '0',
'overrun': '0',
'oversizePkts': '0',
'pkts': '0',
'pkts1024to1518Octets': '0',
'pkts128to255Octets': '0',
'pkts1519to1548Octets': '0',
'pkts256to511Octets': '0',
'pkts512to1023Octets': '0',
'pkts64Octets': '0',
'pkts65to127Octets': '0',
'rXNoErrors': '0',
'rxOversizePkts': '0',
'rxPkts1024to1518Octets': '0',
'rxPkts128to255Octets': '0',
'rxPkts1519to1548Octets': '0',
'rxPkts256to511Octets': '0',
'rxPkts512to1023Octets': '0',
'rxPkts64Octets': '0',
'rxPkts65to127Octets': '0',
'stormSupressedPkts': '0',
'tXNoErrors': '0',
'txOversizePkts': '0',
'txPkts1024to1518Octets': '0',
'txPkts128to255Octets': '0',
'txPkts1519to1548Octets': '0',
'txPkts256to511Octets': '0',
'txPkts512to1023Octets': '0',
'txPkts64Octets': '0',
'txPkts65to127Octets': '0',
'underrun': '0',
'undersizePkts': '0',
'watchdog': '0'
}
}
}, {
'rmonIfHCIn': {
'attributes': {
'broadcastPkts': '0',
'clearTs': 'never',
'dn': 'sys/intf/phys-[eth1/3]/dbgIfHCIn',
'multicastPkts': '0',
'octets': '0',
'ucastPkts': '0'
}
}
}, {
'rmonIfHCOut': {
'attributes': {
'broadcastPckts': '0',
'broadcastPkts': '0',
'clearTs': 'never',
'dn': 'sys/intf/phys-[eth1/3]/dbgIfHCOut',
'multicastPkts': '0',
'octets': '0',
'ucastPkts': '0'
}
}
}, {
'rmonIfIn': {
'attributes': {
'broadcastPkts': '0',
'clearTs': 'never',
'discards': '0',
'dn': 'sys/intf/phys-[eth1/3]/dbgIfIn',
'errors': '0',
'multicastPkts': '0',
'nUcastPkts': '0',
'noBuffer': '0',
'octetRate': '0',
'octets': '0',
'packetRate': '0',
'rateInterval': '300',
'ucastPkts': '0',
'unknownEtype': '0',
'unknownProtos': '0'
}
}
}, {
'rmonIfOut': {
'attributes': {
'broadcastPkts': '0',
'clearTs': 'never',
'discards': '0',
'dn': 'sys/intf/phys-[eth1/3]/dbgIfOut',
'errors': '0',
'multicastPkts': '0',
'nUcastPkts': '0',
'octetRate': '0',
'octets': '0',
'packetRate': '0',
'qLen': '0',
'rateInterval': '300',
'ucastPkts': '0'
}
}
}, {
'l1PhysIf': {
'attributes': {
'FECMode': 'auto',
'accessVlan': 'vlan-1',
'adminSt': 'up',
'autoNeg': 'on',
'beacon': 'off',
'bw': 'default',
'childAction': '',
'controllerId': '',
'delay': '1',
'descr': '',
'dn': 'sys/intf/phys-[eth1/3]',
'dot1qEtherType': '0x8100',
'duplex': 'auto',
'ethpmCfgFailedBmp': '',
'ethpmCfgFailedTs': '00:00:00:00.000',
'ethpmCfgState': '0',
'id': 'eth1/3',
'inhBw': '4294967295',
'layer': 'Layer2',
'linkDebounce': '100',
'linkDebounceLinkUp': '0',
'linkLog': 'default',
'linkTransmitReset': 'enable',
'mdix': 'auto',
'medium': 'broadcast',
'modTs': '2018-10-18T23:43:52.312+00:00',
'mode': 'access',
'mtu': '1500',
'name': '',
'nativeVlan': 'vlan-1',
'packetTimestampEgressSourceId': '0',
'packetTimestampIngressSourceId': '0',
'packetTimestampState': 'disable',
'persistentOnReload': 'true',
'portT': 'leaf',
'routerMac': 'not-applicable',
'snmpTrapSt': 'enable',
'spanMode': 'not-a-span-dest',
'speed': 'auto',
'speedGroup': 'auto',
'status': '',
'switchingSt': 'disabled',
'trunkLog': 'default',
'trunkVlans': '1-4094',
'usage': 'discovery',
'userCfgdFlags': 'admin_layer,admin_state',
'vlanmgrCfgFailedBmp': '',
'vlanmgrCfgFailedTs': '00:00:00:00.000',
'vlanmgrCfgState': '0',
'voicePortCos': 'none',
'voicePortTrust': 'disable',
'voiceVlanId': 'none',
'voiceVlanType': 'none'
}
}
}
]
}