PUT /snmptrapprofile/{uuid}
/snmptrapprofile/{uuid}
UUID of the object to fetch
object name
Avi Tenant Header
Avi Tenant Header UUID
The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
SnmpTrapProfile object creation
Show optional properties
{
"name": "string"
}
{
"_last_modified": "string",
"configpb_attributes": {
"version": 0
},
"name": "string",
"tenant_ref": "string",
"trap_servers": [
{
"community": "string",
"ip_addr": {
"addr": "string",
"type": "string"
},
"port": 0,
"user": {
"auth_passphrase": "string",
"auth_type": "string",
"priv_passphrase": "string",
"priv_type": "string",
"username": "string"
},
"version": "string"
}
],
"url": "string",
"uuid": "string"
}
OK
"SnmpTrapProfile Object"
UNIX time since epoch in microseconds. Units(MICROSECONDS).
configpb_attributes
A user-friendly name of the SNMP trap configuration. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.
It is a reference to an object of type Tenant. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.
The IP address or hostname of the SNMP trap destination server. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.
url
UUID of the SNMP trap profile object. Allowed in Enterprise edition with any value, Essentials, Basic, Enterprise with Cloud Services edition.
log in failed
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}' https://{api_host}/api/snmptrapprofile/{uuid}