[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Update Mellanox Switch SNMP Config

Description

Update SNMP config for Mellanox switch data source

Request

Request

URL

URL


put
https://vrni.example.com/api/ni/data-sources/mellanox-switches/{id}/snmp-config
Copy

Path Parameters

Path Parameters

string
id Required

The Entity ID of object requestion information on


Request Body

Request Body

SNMPConfig of type(s) application/json Optional
{
    "snmp_enabled": true,
    "snmp_version": "v2c"
}
config_snmp_2c Optional

config_snmp_3 Optional

boolean
snmp_enabled Optional

Enable SNMP stats collection?


string
snmp_version Optional

SNMP version to use

Possible values are: v2cv3

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns SNMPConfig of type(s) application/json
{
    "snmp_enabled": true,
    "snmp_version": "v2c"
}
config_snmp_2c Optional

config_snmp_3 Optional

boolean
snmp_enabled Optional

Enable SNMP stats collection?


string
snmp_version Optional

SNMP version to use

Possible values are: v2cv3

Errors

Errors

ApiError
400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"snmp_enabled":true,"snmp_version":"v2c"}' https://vrni.example.com/api/ni/data-sources/mellanox-switches/{id}/snmp-config


[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Data Sources Operations
Feedback

Was this page helpful?