Settings/SNMP Operations
POSTSNMP OperationsSince 4.7.21SynchronousAuth Required
CreateSnmpAgent
CreateSnmpAgent
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
versionStringRequiredThe protocol version.
readCommunityStringOptional. The read community (used when for v2c version).
userNameStringOptional. The user name (used for v3 version).
authAlgorithmStringOptional. The authentication algorithm.
authPasswordStringOptional. The authentication password.
privacyAlgorithmStringOptional. The privacy algorithm.
privacyPasswordStringOptional. The privacy password.
portintRequiredThe port.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID.
systemTagsListOptional. the system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/snmp/agent
/zstack/v1/snmp/agent
Request Example
curl -X POST 'http://{host}/zstack/v1/snmp/agent' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"version":"<version>","readCommunity":"<readCommunity>","userName":"<userName>","authAlgorithm":"<authAlgorithm>","authPassword":"<authPassword>","privacyAlgorithm":"<privacyAlgorithm>","privacyPassword":"<privacyPassword>","port":1,"resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "6dac2a94d44c3216acc13286a50416aa", "version": "v3", "userName": "zstack", "authAlgorithm": "SHA512", "authPassword": "auth_password", "privacyAlgorithm": "DES", "privacyPassword": "priv_password", "port": 161, "status": "Enable", "securityLevel": "authPriv" } }Change History
This API has no change history records yet.
