LAGs
| Description | Retrieves all LAG data for all systems available in NEO | |
| Request URL | GET /neo/resources/lags | |
| Filters | Specific LAGs can be filtered for using the following filter attribute: | |
| Filter Attributes | Description | |
| lag_type=<lag|mlag> | Returns only LAGs of the specified type | |
| Request Data | N/A | |
Response:
            
            [
   {
 		"systemID": "10.224.15.90.system",
		"systemIP": "10.224.15.90",
		"allowedVlans": [
			400,
			1
		],
		"vlans": [
			400,
			1
		],
		"name": "Port-channel 40",
		"lagType": "lag",
		"systemName": "ufm-switch20",
		"mtu": 1500,
		"memberNames": [],
		"adminState": "Enabled",
		"activeSpeed": "N/A",
		"mode": "",
		"vlanMode": "Trunk",
		"accessVlan": null,
		"health": "Unknown",
		"operationalState": "DOWN",
		"id": "10.224.15.90.link_aggregator.port-channel.40",
		"memberIDs": []
   }
]
    
| Description | Retrieves all LAG data for specific systems in NEO | |
| Request URL | GET /neo/resources/lags?system_ids=<list of system ids> | |
| Filters | Specific LAGs can be filtered for using the following filter attribute: | |
| Filter Attributes | Description | |
| lag_type=<lag|mlag> | Returns only LAGs of the specified type | |
| Request Data | N/A | |
Response:
            
            [
	{
		"systemID": "10.224.15.90.system",
		"systemIP": "10.224.15.90",
		"allowedVlans": [
			400,
			1
		],
		"vlans": [
			400,
			1
		],
		"name": "Port-channel 40",
		"lagType": "lag",
		"systemName": "ufm-switch20",
		"mtu": 1500,
		"memberNames": [],
		"adminState": "Enabled",
		"activeSpeed": "N/A",
		"mode": "",
		"vlanMode": "Trunk",
		"accessVlan": null,
		"health": "Unknown",
		"operationalState": "DOWN",
		"id": "10.224.15.90.link_aggregator.port-channel.40",
		"memberIDs": []
	}
]
    
- If an invalid or a non-existent system is specified, an empty list will be returned. 
- LAGs API is supported on Mellanox switches, Cumulus switches, and Nutanix hosts. 
- In this API, users can specify one system or more by adding systems instance IDs in the request URL. 
| Description | Retrieves all LAG data for LAG IDs provided | |
| Request URL | GET /neo/resources/lags/<lags_ids> | |
| Filters | Specific LAGs can be filtered for using the following filter attribute: | |
| Filter Attributes | Description | |
| lag_type=<lag|mlag> | Returns only LAGs of the specified type | |
| Request Data | N/A | |
Response:
            
            [
	{
		"systemID": "10.224.15.90.system",
		"systemIP": "10.224.15.90",
		"allowedVlans": [
			400,
			1
		],
		"vlans": [
			400,
			1
		],
		"name": "Port-channel 40",
		"lagType": "lag",
		"systemName": "ufm-switch20",
		"mtu": 1500,
		"memberNames": [],
		"adminState": "Enabled",
		"activeSpeed": "N/A",
		"mode": "",
		"vlanMode": "Trunk",
		"accessVlan": null,
		"health": "Unknown",
		"operationalState": "DOWN",
		"id": "10.224.15.90.link_aggregator.port-channel.40",
		"memberIDs": []
	}
]