Send Test trap To SNMP destination profile

Send Test trap To SNMP destination profile

Send Test trap to SNMP destination profile. Only admin users can perform this action.

Request
URI
POST
https://www.mgmt.cloud.vmware.com/ni/api/ni/settings/snmp/profiles/send-test-trap
COPY
Request Body
SnmpProfileRequest of type(s) application/json
Optional
{
    "nick_name": "Aws collector profile",
    "target_ip": "10.11.11.102",
    "target_port": 161,
    "snmp_version": "string",
    "snmp_v2c": {
        "community_string": "string"
    },
    "snmp_v3": {
        "username": "string",
        "context_name": "string",
        "authentication_type": "string",
        "authentication_password": "string",
        "privacy_type": "string",
        "privacy_password": "string"
    }
}
string
nick_name
Optional

Descriptor or identifier for particular snmp profile.

string
target_ip
Optional

IP address of SNMP target destination

integer
target_port
Optional

Receiving port number of SNMP target destination

string
snmp_version
Optional

snmp_version

snmp_v2c
Optional

snmp_v2c

snmp_v3
Optional

snmp_v3

Authentication
This operation uses the following authentication methods.
Responses
200

Success

Returns TestSnmpProfileResponse of type(s) application/json
{
    "status": true,
    "message": "Failed sending SNMP trap"
}
boolean
status
Optional

Test trap sent successfully or not

string
message
Optional

Test snmp trap status message


400

Bad Request

Returns ApiError of type(s) application/json
{
    "code": "integer",
    "message": "string",
    "details": [
        {
            "code": "integer",
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details


401

Unauthorized

Returns ApiError of type(s) application/json
{
    "code": "integer",
    "message": "string",
    "details": [
        {
            "code": "integer",
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details


403

Forbidden

Returns ApiError of type(s) application/json
{
    "code": "integer",
    "message": "string",
    "details": [
        {
            "code": "integer",
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details


500

Internal Error

Returns ApiError of type(s) application/json
{
    "code": "integer",
    "message": "string",
    "details": [
        {
            "code": "integer",
            "message": "string",
            "target": [
                "string"
            ]
        }
    ]
}
integer As int32 As int32
code
Optional

code

string
message
Optional

message

details
Optional

details