Settings/SNMP Operations
PUTSNMP OperationsSince 4.7.21SynchronousAuth Required
UpdateSnmpAgent
UpdateSnmpAgent
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
updatesnmpagentObjectRequiredupdatesnmpagent request body object.
uuidStringRequiredThe resource UUID.
versionStringRequiredThe protocol version.
theupdatesnmpagentObjectRequiredtheupdatesnmpagent request body object.
readCommunityStringOptional. The read community (used for the v2c version).
userNameStringOptional. The user name (used for the v3 version).
authAlgorithmStringOptional. The authentication algorithm.
authPasswordStringOptional. The authentication password.
privacyAlgorithmStringOptional. The privacy algorithm.
privacyPasswordStringOptional. The privacy password.
portintRequiredThe port.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/snmp/agent/actions
/zstack/v1/snmp/agent/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/snmp/agent/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatesnmpagent":{"uuid":"<uuid>","version":"<version>"},"theupdatesnmpagent":{"readCommunity":"<readCommunity>","userName":"<userName>","authAlgorithm":"<authAlgorithm>","authPassword":"<authPassword>","privacyAlgorithm":"<privacyAlgorithm>","privacyPassword":"<privacyPassword>","port":1},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "cad9965ebedd495aa1f5718f31da1aa8", "version": "v3", "userName": "zstack", "authAlgorithm": "SHA", "authPassword": "authPassword", "privacyAlgorithm": "AES128", "privacyPassword": "privPassword", "port": 162 } }Change History
This API has no change history records yet.
