[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Send Test Trap To SNMP Destination Profile
DescriptionSend Test trap to SNMP destination profile. Only admin users can perform this action.
Request
URLURL
https://vrni.example.com/api/ni/settings/snmp/profiles/send-test-trap
Request Body
Request Body
{
"nick_name": "AWS SNMP collector profile",
"target_ip": "10.11.11.102",
"target_port": 161
}
string
nick_name
Optional
Descriptor or identifier for particular SNMP profile.
string
snmp_version
Optional
Possible values are: v2c , v3
string
target_ip
Optional
IP address of SNMP target destination
integer
target_port
Optional
Receiving port number of SNMP target destination
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
TestSnmpProfileResponse
of type(s) application/json
{
"message": "Failed sending SNMP trap",
"status": true
}
string
message
Optional
Test SNMP trap status message
boolean
status
Optional
Test trap sent successfully or not
Errors
ApiError
400
Bad Request
ApiError
401
Unauthorized
ApiError
403
Forbidden
ApiError
500
Internal Error
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"nick_name":"AWS SNMP collector profile","target_ip":"10.11.11.102","target_port":161}' https://vrni.example.com/api/ni/settings/snmp/profiles/send-test-trap
[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
On This Page
Settings Operations
post
post
post
post
post
post
post
delete
delete
delete
delete
delete
delete
delete
delete
delete
delete
post
post
get
get
get
get
get
get
get
get
get
get
get
post
put