Retrieve SNMP traphost details
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
GET /support/snmp/traphosts/{host}
Retrieves the details of an SNMP traphost along with the SNMP user configured for that traphost.
Learn more
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
host |
string |
path |
True |
Fully Qualified Domain Name (FQDN), IPv4 address or IPv6 address of SNMP traphost. |
fields |
array[string] |
query |
False |
Specify the fields to return. |
return_timeout |
integer |
query |
False |
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached. |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_links |
||
host |
string |
Fully qualified domain name (FQDN), IPv4 address or IPv6 address of SNMP traphost. |
ip_address |
string |
IPv4 or IPv6 address |
user |
Optional SNMP user parameter. For an SNMPv3 traphost, this property refers to an SNMPv3 or User-based Security Model (USM) user. For an SNMPv1 or SNMPv2c traphost, this property refers to an SNMP community. |
Example response
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"host": "traphost.example.com",
"ip_address": "10.10.10.7",
"user": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "snmpv3user3"
}
}
Error
Status: Default, Error
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
user
Optional SNMP user parameter. For an SNMPv3 traphost, this property refers to an SNMPv3 or User-based Security Model (USM) user. For an SNMPv1 or SNMPv2c traphost, this property refers to an SNMP community.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
Optional SNMPv1/SNMPv2c or SNMPv3 user name. For an SNMPv3 traphost, this object refers to an SNMPv3 or User-based Security Model (USM) user. For an SNMPv1 or SNMPv2c traphost, this object refers to an SNMP community. For an SNMPv3 traphost, this object is mandatory and refers to an SNMPv3 or User-based Security Model (USM) user. For an SNMPv1 or SNMPv2c traphost, ONTAP automatically uses "public", if the same is configured, or any other configured community as user. So, for an SNMPv1 or SNMPv2c traphost, this property should not be provided in the "POST" method. However, the configured community for the SNMPv1/SNMPv2c traphost is returned by the "GET" method.
|
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |