Aruba CX icon

Aruba CX

Interact with Aruba CX Switch REST API

SNMP Communities → Update

AI-generated

Summary

Update an SNMP community on an Aruba CX switch

Inputs

  • hostOverride — Optional: Override the hostname from credentials (useful for loops with multiple switches)
  • domain (required) — Domain of the Aruba CX API
  • communityName (required) — Name of the SNMP community
  • updateFields — Fields to update for the SNMP community, such as access type and restriction

Output shape

a list of updated SNMP community objects

May return an empty array on success; errors are thrown and can be caught with continueOnFail

Examples

Example 1: Update community 'public' on switch 192.168.1.1

Set hostOverride to 192.168.1.1, domain to System, communityName to public, updateFields.accessType to rw, updateFields.restricted to false

Example 2: Update multiple communities in a loop

Provide hostOverride values dynamically, keep domain as System, specify communityName and desired updateFields for each iteration

Example 3: Update community with restricted access

Set hostOverride if needed, domain to System, communityName to admin, updateFields.accessType to ro, updateFields.restricted to true

Discussion