Cloud Managed Networks

 View Only
Expand all | Collapse all

Question about Central API command

This thread has been viewed 8 times
  • 1.  Question about Central API command

    Posted Dec 20, 2023 10:49 PM

    Does anyone know what this command does? 

    I've tested with a lab switch, the command returns a [200] success, but the switch configuration is unmodified.

    https://developer.arubanetworks.com/aruba-central/reference/apidevicesupdate_ssh_connection_info

    I'm interested as I'm building the capability to bulk change admin passwords via the API, and was hoping there was a simple way to update passwords for switches both in UI groups and template groups.



  • 2.  RE: Question about Central API command

    Posted Jan 04, 2024 02:09 AM

    This API endpoint has been long overdue to be marked as deprecated and be removed from public documentation. It was used to store credentials for accessing a device from Central but it's been deprecated as all devices connect to Central using web socket these days.

    What you are trying to achieve is probably best achieved through one of these APIs:

    AOS-Switch (UI Group): https://developer.arubanetworks.com/aruba-central/reference/apihppc_switchset_group_admin

    Template Groups: if you are working with TGs you should variablize the credential part of your template, which will then allow you to use the variable APIs to update the credentials: https://developer.arubanetworks.com/aruba-central/reference/apidevicesupdate_device_template_variables

    AFAIK AOS-CX switches currently lack a programmatic approach (when managed through a UI group) but Mutli-Editor should ease that pain: https://www.arubanetworks.com/techdocs/central/latest/content/nms/aos-cx/cfg/conf-cx-multiedit-edit-conf.htm



    ------------------------------
    I work for Aruba. Any opinions expressed here are solely my own and not do not represent that of Hewlett Packard Enterprise or Aruba.
    ------------------------------