HP OneView REST API Reference

appliance/trap-destinations
appliance-trap-destinations.html[10/17/2013 10:35:52 AM]
"communityString": "public"
}
POST Adds or updates the specified trap forwarding destination. The trap destination associated with
the given id will be updated if a trap destination with that id already exists. If the given id is not
found, then a trap destination will be created with the given id.
Parameter Attributes Description
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Request Body Attributes Description
TrapDestination Required
Response Description
void
Response Codes
REST API Response Codes
Examples
POST https://{appl}/rest/appliance/trap-destinations/9
Request body
{
"destination": "1.1.1.9",
"port": 162,
"communityString": "test9"
}
DELETE Deletes the trap forwarding destination associated with the id.
Parameter Attributes Description
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Response Description
void
Response Codes
REST API Response Codes
Examples
DELETE https://{appl}/rest/appliance/trap-destinations/3
TrapDestination
description: A trap destination.