Method: addCredentialEx

Add a SNMP credential to the database.

Parameters

Name Type Description
name string Name of the credential
snmpVersion int SNMP version
communityName string SNMP community name
userName string SNMPv3 username
authPassword string SNMPv3 authentication password
authType string SNMPv3 authentication type, available options are:
-MD5
-SHA
privPassword string SNMPv3 privacy password
privType string SNMPv3 privacy type, available options are:
-AED
-DES

Returns

Returns a NsWsResult with a structure defined by the following table.

Name Type Description
errorCode int See the Web Service Error Codes
errorMessage string Error message in readable text
success boolean True if operation is successful

Example

Execute the following web service with a browser:

https://192.168.30.34:8443/axis/services/NetSightDeviceWebService/addCredentialEx?name=SNMPv2-Readonly&snmpVersion=2&communityName=readonly&userName=&authPassword=&authType=&privPasswod=&privType=