Add new SNMP Trap destination profile

Add new SNMP Trap destination profile

Add a new SNMP destination profile. By Default, maximum of 4 SNMP Trap profiles can be configured. Only admin users can perform this action.

Request
URI
POST
https://{api_host}/ni/api/ni/settings/snmp/profiles
COPY
Request Body

SNMP Trap destination profile

SnmpProfileRequest of type(s) application/json
Required
{
    "nick_name": "AWS SNMP collector profile",
    "target_ip": "10.11.11.102",
    "target_port": 161,
    "snmp_version": "string",
    "snmp_v2c": {
        "community_string": "public"
    },
    "snmp_v3": {
        "username": "readonly",
        "context_name": "default",
        "authentication_type": "MD5",
        "authentication_password": "VMware1!",
        "privacy_type": "AES256",
        "privacy_password": "VMware1!"
    }
}
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

Possible values are : v2c, v3,
object
snmp_v2c
Optional

snmp_v2c

object
snmp_v3
Optional

snmp_v3

Authentication
This operation uses the following authentication methods.
Responses
201

Success

Returns SnmpProfileResponse of type(s) application/json
"SnmpProfileResponse Object"
string
entity_id
Optional

Entity Identifier for SNMP profile.

string
nick_name
Optional

User defined 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

Possible values are : v2c, v3,
object
snmp_v2c
Optional

snmp_v2c

object
snmp_v3
Optional

snmp_v3


400

Bad Request

Returns ApiError of type(s) application/json
"ApiError Object"
integer As int32 As int32
code
Optional

code

string
message
Optional

message

array of object
details
Optional

details


401

Unauthorized

Returns ApiError of type(s) application/json
"ApiError Object"
integer As int32 As int32
code
Optional

code

string
message
Optional

message

array of object
details
Optional

details


403

Forbidden

Returns ApiError of type(s) application/json
"ApiError Object"
integer As int32 As int32
code
Optional

code

string
message
Optional

message

array of object
details
Optional

details


500

Internal Error

Returns ApiError of type(s) application/json
"ApiError Object"
integer As int32 As int32
code
Optional

code

string
message
Optional

message

array of object
details
Optional

details


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/ni/api/ni/settings/snmp/profiles
                
Settings Operations
GET
Get Ip Tag Ids
Deprecated
GET
Get Ip Tag
Deprecated
POST
Add Ip Tag
Deprecated
POST
Remove Ip Tag
Deprecated
GET
Get Tag Ids V2
GET
Get Ip Tag V2
POST
Add Tag V2
POST
Remove Tag V2
POST
Create Subnet Mapping
GET
Get Subnet Mappings
PUT
Update Subnet Mapping
DELETE
Delete Subnet Mapping
PUT
Update user password
POST
Add Web Proxy
GET
Get Web Proxies
PUT
Update Web Proxy
GET
Get Web Proxy
DELETE
Delete Web Proxy
POST
Validate Connections Via Web Proxy
POST
Validate Web Proxy Migration
GET
Get Connected Clients To Web Proxy
GET
Get Infra Nodes Web Proxy
POST
Add new SNMP Trap destination profile
GET
List the configured SNMP Trap destination profiles
POST
Send Test trap To SNMP destination profile
GET
Get details Of An existing SNMP destination profile
PUT
Update An existing SNMP destination profile
DELETE
Delete An existing SNMP Trap destination profile
POST
Migrate event subscriptions To other SNMP Trap destination profiles
POST
Add Search Based Alert Config
GET
Get All Search Based Alert Configs
POST
Enable Search Based Alert Config
POST
Disable Search Based Alert Config
GET
Get Search Based Alert Config
PUT
Update Search Based Alert Config
DELETE
Delete Search Based Alert Config
POST
Create User Defined Event
Deprecated
GET
Get All User Defined Events
Deprecated
POST
Enable User Defined Event
Deprecated
POST
Disable User Defined Event
Deprecated
GET
Get User Defined Event
Deprecated
PUT
Update User Defined Event
Deprecated
DELETE
Delete User Defined Event
Deprecated
POST
Add Backup Config
PUT
Update Backup Config
GET
Get Backup Config
DELETE
Delete Backup Config
GET
Get Backup Status Report
POST
Add Restore Config
GET
Get Restore Config
DELETE
Delete Restore Config
GET
Get Restore Status Report
POST
Create Subscriber
GET
Get All Subscriber
GET
Get Subscriber
PUT
Update Subscriber
DELETE
Delete Subscriber
POST
Add Syslog Target
GET
Get Syslog Target List
PUT
Update Syslog Target
DELETE
Delete Syslog Target
POST
Send Syslog Test Message
GET
Get Syslog Mapping
POST
Update Syslog Mapping
GET
Get Syslog Status
PATCH
Update Syslog Status