# Snmp

## Return list of traps

> \*\*API Key Scope\*\*: traps / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"snmp_traps_index":{"description":"List of trap.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_trap_collection"}}}}},"schemas":{"snmp_trap_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"traps":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/snmp_trap"}}}},"snmp_trap":{"type":"object","properties":{"snmp_trap_id":{"type":"string"},"activation":{"type":"integer"},"version":{"type":"string"},"manager":{"type":"string"},"community":{"type":"string"},"severity_low":{"type":"integer"},"severity_high":{"type":"integer"}}}}},"paths":{"/snmp/traps":{"get":{"operationId":"index_traps","summary":"Return list of traps","description":"**API Key Scope**: traps / index","tags":["snmp"],"responses":{"200":{"$ref":"#/components/responses/snmp_traps_index"}}}}}}
```

## Creates a new trap.

> \*\*API Key Scope\*\*: traps / create

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"snmp_traps_show":{"description":"A specific trap.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_trap"}}}},"unprocessable_entity":{"description":"The received resource was not correctly formatted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"snmp_trap":{"type":"object","properties":{"snmp_trap_id":{"type":"string"},"activation":{"type":"integer"},"version":{"type":"string"},"manager":{"type":"string"},"community":{"type":"string"},"severity_low":{"type":"integer"},"severity_high":{"type":"integer"}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}},"requestBodies":{"snmp_trap_body":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_trap"}}},"required":true}}},"paths":{"/snmp/traps":{"post":{"summary":"Creates a new trap.","operationId":"create_trap","description":"**API Key Scope**: traps / create","tags":["snmp"],"responses":{"201":{"$ref":"#/components/responses/snmp_traps_show"},"422":{"$ref":"#/components/responses/unprocessable_entity"}},"requestBody":{"$ref":"#/components/requestBodies/snmp_trap_body"}}}}}
```

## Displays a specific trap.

> \*\*API Key Scope\*\*: traps / show

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"snmp_traps_show":{"description":"A specific trap.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_trap"}}}}},"schemas":{"snmp_trap":{"type":"object","properties":{"snmp_trap_id":{"type":"string"},"activation":{"type":"integer"},"version":{"type":"string"},"manager":{"type":"string"},"community":{"type":"string"},"severity_low":{"type":"integer"},"severity_high":{"type":"integer"}}}}},"paths":{"/snmp/traps/{snmp_trap_id}":{"get":{"summary":"Displays a specific trap.","operationId":"show_trap","description":"**API Key Scope**: traps / show","tags":["snmp"],"responses":{"200":{"$ref":"#/components/responses/snmp_traps_show"}}}}}}
```

## Updates a specific trap with his relations.

> \*\*API Key Scope\*\*: traps / update

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"snmp_traps_show":{"description":"A specific trap.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_trap"}}}},"unprocessable_entity":{"description":"The received resource was not correctly formatted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"snmp_trap":{"type":"object","properties":{"snmp_trap_id":{"type":"string"},"activation":{"type":"integer"},"version":{"type":"string"},"manager":{"type":"string"},"community":{"type":"string"},"severity_low":{"type":"integer"},"severity_high":{"type":"integer"}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}},"requestBodies":{"snmp_trap_body":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_trap"}}},"required":true}}},"paths":{"/snmp/traps/{snmp_trap_id}":{"put":{"summary":"Updates a specific trap with his relations.","operationId":"update_trap","description":"**API Key Scope**: traps / update","tags":["snmp"],"responses":{"200":{"$ref":"#/components/responses/snmp_traps_show"},"422":{"$ref":"#/components/responses/unprocessable_entity"}},"requestBody":{"$ref":"#/components/requestBodies/snmp_trap_body"}}}}}
```

## Destroys a specific trap.

> \*\*API Key Scope\*\*: traps / destroy

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/snmp/traps/{snmp_trap_id}":{"delete":{"summary":"Destroys a specific trap.","operationId":"destroy_trap","description":"**API Key Scope**: traps / destroy","tags":["snmp"],"responses":{"204":{"description":"trap destroyed."}}}}}}
```

## Return server configuration infos

> \*\*API Key Scope\*\*: server\_configuration / show

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"snmp_server_configuration_show":{"description":"server configuration infos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_server_configuration"}}}}},"schemas":{"snmp_server_configuration":{"type":"object","properties":{"version":{"type":"string"},"community":{"type":"string"},"location":{"type":"string"},"contact":{"type":"string"}}}}},"paths":{"/snmp/server_configuration":{"get":{"operationId":"show_server_configuration","summary":"Return server configuration infos","description":"**API Key Scope**: server_configuration / show","tags":["snmp"],"responses":{"200":{"$ref":"#/components/responses/snmp_server_configuration_show"}}}}}}
```

## Updates server configuration infos.

> \*\*API Key Scope\*\*: server\_configuration / update

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"snmp_server_configuration_show":{"description":"server configuration infos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_server_configuration"}}}},"unprocessable_entity":{"description":"The received resource was not correctly formatted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"snmp_server_configuration":{"type":"object","properties":{"version":{"type":"string"},"community":{"type":"string"},"location":{"type":"string"},"contact":{"type":"string"}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}},"requestBodies":{"snmp_server_configuration_body":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/snmp_server_configuration"}}},"required":true}}},"paths":{"/snmp/server_configuration":{"put":{"summary":"Updates server configuration infos.","operationId":"update_server_configuration","description":"**API Key Scope**: server_configuration / update","tags":["snmp"],"responses":{"200":{"$ref":"#/components/responses/snmp_server_configuration_show"},"422":{"$ref":"#/components/responses/unprocessable_entity"}},"requestBody":{"$ref":"#/components/requestBodies/snmp_server_configuration_body"}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nodeum.io/data-archiving/api-developers/api-reference-nodeum-data-archiving/snmp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
