Actions74
- ACLs Actions
- CLI Actions
- Configuration Actions
- DHCP Relay Actions
- Firmware Actions
- Interfaces Actions
- LLDP Neighbors Actions
- Logs Actions
- Mirror Sessions Actions
- Mirror Endpoints Actions
- Packet Captures Actions
- Port Access Cached Clients Actions
- Port Access Roles Actions
- SNMP Communities Actions
- System Actions
- Users Actions
- VLANs Actions
- VRFs Actions
SNMP Communities → Update
AI-generatedSummary
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