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

Update UCS SNMP Config

Description

Update SNMP config for Cisco UCS Manager

Request

Request

URL

URL


put
https://vrni.example.com/api/ni/data-sources/ucs-managers/{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
{
	"config_snmp_2c": {
		"community_string": "public"
	},
	"config_snmp_3": {
		"authentication_password": "VMware1!",
		"authentication_type": "MD5",
		"context_name": "default",
		"privacy_password": "VMware1!",
		"privacy_type": "AES256",
		"username": "readonly"
	},
	"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
{
	"config_snmp_2c": {
		"community_string": "public"
	},
	"config_snmp_3": {
		"authentication_password": "VMware1!",
		"authentication_type": "MD5",
		"context_name": "default",
		"privacy_password": "VMware1!",
		"privacy_type": "AES256",
		"username": "readonly"
	},
	"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

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 '{"config_snmp_2c":{"community_string":"public"},"config_snmp_3":{"authentication_password":"VMware1!","authentication_type":"MD5","context_name":"default","privacy_password":"VMware1!","privacy_type":"AES256","username":"readonly"},"snmp_enabled":true,"snmp_version":"v2c"}' https://vrni.example.com/api/ni/data-sources/ucs-managers/{id}/snmp-config


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

Was this page helpful?