Switch
Get Switch details
This API retrieves current switch information for the specified serial number or stack id. Conductor serial may also be used instead of a stack id. In the case of stacked switches, logical switch details and trend data are also provided. Member-level information can be obtained using the listStackMember API.
get/network-monitoring/v1/switches/{serial-number}
Request
- Base URLhttps://sso.common.cloud.hpe.com
- AuthOAuth 2Client credentialsToken URLhttps://sso.common.cloud.hpe.com/as/token.oauth2
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
serial-numberstring const required
The device serial number.
Example:AP00000001
Serial Number of the switch in case of standalone, StackId or conductor serial in case of stack for which the device related information is requested.
Response
Object containing the switch information
Example response
{
"id": "CN31HKZ0CN",
"type": "switch",
"switchLinkType": "BPS",
"switchType": "pvos",
"serialNumber": "CN31HKZ0CN",
"ipv4": "10.21.78.4",
"status": "Offline",
"ipv6": null,
"macAddress": "ec:50:aa:0d:99:30",
"publicIp": "59.144.73.163",
"model": "AS-2930F",
"health": "Poor",
"healthReasons": {
"poorReasons": [
"DEVICE_OFFLINE"
],
"fairReasons": {}
},
"siteId": "749988555",
"siteName": "PVOS_MON_Troubleshooting",
"uptimeInMillis": null,
"firmwareVersion": "WC.16.11.0001",
"deployment": "Standalone",
"contact": "",
"jNumber": "JL258A",
"lastSeenAt": 1707919492646,
"configStatus": "Synchronized",
"deviceName": "Aruba-2930F-8G-PoEP-2SFPP",
"switchRole": "Standalone",
"manufacturer": "Aruba",
"lastConfigChange": 1707907296000,
"lastRestartReason": null,
"switchTrends": [
{
"serialNumber": "CN09HKW38R",
"switchRole": "Conductor",
"cpuUtilization": 10,
"memoryUtilization": 36,
"systemTemperature": 70,
"poeAvailable": 370,
"powerConsumption": 0,
"upLinkPorts": "1/8",
"usage": 14345.45
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.