This update interfaces API for CX switches will allow changing VLAN configuration.
You can create/delete VLANs using {{base_url}}/configuration/v1/switch/cx/vlans and you can update which interfaces with trunk/access using {{base_url}}/configuration/v1/switch/cx/interfaces.
Original Message:
Sent: Nov 16, 2022 09:20 PM
From: sam seriescode
Subject: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?
thanks @ProbeRequest Yep get request is there in monitoring but also looking for put/post request :)
https://hpedev.slack.com/archives/C02EG5XFK8Q/p1668530934466319?thread_ts=1668491134.391109&cid=C02EG5XFK8Q
Original Message:
Sent: Nov 16, 2022 06:54 PM
From: Matthew Sutherland
Subject: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?
It looks like /monitoring/v1/cx_switches/{serial}/vlan might get you there. I've adapted the url to match your region so let me know if it doesn't take you to the swagger interface. There is an equivalent version of this for the CX switch stacks also.
the response sample shows tagged and untagged VLANs:
{
"count": 5,
"total": 5,
"vlans": [
{
"name": "DEFAULT_VLAN",
"id": 1,
"ipaddress": [],
"tagged_ports": [
"1/1/10"
],
"untagged_ports": [
"1/1/45"
],
"access_ports": [
"1/1/15"
],
"status": "Up",
"is_igmp_enabled": true,
"is_jumbo_enabled": true,
"is_voice_enabled": true,
"promiscuous_ports": [],
"isl_ports": [],
"type": "Regular",
"oper_state_reason": "OK",
"is_management_vlan": true
}
]
}
Original Message:
Sent: Nov 16, 2022 06:29 AM
From: sam seriescode
Subject: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?
@probere
Yes within Central as that is what I am referring to.
Original Message:
Sent: Nov 16, 2022 05:48 AM
From: Matthew Sutherland
Subject: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?
Do you mean within Central or to the CX switch directly? If you're talking about the CX API then I wonder if the resources on the developer portal will help:
https://developer.arubanetworks.com/aruba-aoscx/docs/get
https://developer.arubanetworks.com/aruba-aoscx/docs/tips-and-tricks-with-aos-cx-rest
Original Message:
Sent: Nov 15, 2022 02:19 AM
From: sam seriescode
Subject: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?
is there an api to get/set vlan tagged ,untagged, isolated ports configs for CX switch similar to AOS switch https://apigw-uswest4.central.arubanetworks.com/swagger/central/#!/AOS-S/api_hppc_switch_get_device_vlans
GET/PUT / configuration / v1 / aos_switch / vlans / devices / { device_serial }
I can't seem to find one for CX switch in swagger docs.
I have asked this in slack in hpe-greenlake channel but that channel seems to be pretty silient .