not sure with API => https://community.arubanetworks.com/discussion/aos-cx-allow-unsafe-updates-via-rest-api
do you have search on swagger ?
for Ansible, you can use aruba_cx_config modules (using SSH)
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Jan 30, 2024 03:59 AM
From: jonlar
Subject: is it possible to allow unsafe updates via API or Ansible?
After a rather unfortunate upgrade last week, we discovered this command: "allow-unsafe-updates". Vital functions on the switch stopped working because some module was not upgraded. Some switches even crashed and we had to remove the power cable to get them up and running again.
The fix was easy, however it was very manual. We had to log in to each switch, and run the "allow-unsafe-updates" command and restart the switches.
Is it possible to do this through Ansible or API?
And is it a way to check if this is necessary to apply beforehand (through Ansible or API)?