Skip to content

Depot snmp templates

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETdiscovery:readshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

GET /api/v1/snmp/templates

StatusBodyDescription
200application/json, objectSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
500application/problem+json, ProblemDetailsThe request failed.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/snmp/templates' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTprofile:manage_mandatoryshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

POST /api/v1/snmp/templates

Required, sent as application/json.

FieldTypeDescription
bundledrequiredboolean
idrequiredstring
monitorsrequiredarray of Monitor
monitors[].alertAlert
monitors[].alert.breachesrequiredinteger
monitors[].alert.operatorrequiredstring
monitors[].alert.recoveriesrequiredinteger
monitors[].alert.severityrequiredstring
monitors[].alert.valuestring
monitors[].idrequiredstring
monitors[].kindrequiredstring
monitors[].labelsobject
monitors[].namerequiredstring
monitors[].offsetnumber

double.

monitors[].oidrequiredstring
monitors[].scalerequirednumber

double.

monitors[].unitstring
namerequiredstring
revisionrequiredinteger

int64.

sourcestring
vendorstring
StatusBodyDescription
200application/json, SNMPTemplateSuccess.
400application/problem+json, ProblemDetailsThe request body is not valid JSON.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold profile:manage_mandatory.
404application/problem+json, ProblemDetailsTemplate not found.
409application/problem+json, ProblemDetailsTemplate changed. Reload before saving.
500application/problem+json, ProblemDetailsCould not save template.
503application/problem+json, ProblemDetailsTemplate storage unavailable.

200 response body

FieldTypeDescription
bundledrequiredboolean
idrequiredstring
monitorsrequiredarray of Monitor
monitors[].alertAlert
monitors[].alert.breachesrequiredinteger
monitors[].alert.operatorrequiredstring
monitors[].alert.recoveriesrequiredinteger
monitors[].alert.severityrequiredstring
monitors[].alert.valuestring
monitors[].idrequiredstring
monitors[].kindrequiredstring
monitors[].labelsobject
monitors[].namerequiredstring
monitors[].offsetnumber

double.

monitors[].oidrequiredstring
monitors[].scalerequirednumber

double.

monitors[].unitstring
namerequiredstring
revisionrequiredinteger

int64.

sourcestring
vendorstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/snmp/templates' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"bundled": false,
"id": "string",
"monitors": [
{
"alert": {
"breaches": 0,
"operator": "string",
"recoveries": 0,
"severity": "string",
"value": "string"
},
"id": "string",
"kind": "string",
"labels": {
"key": "string"
},
"name": "string",
"offset": 0,
"oid": "string",
"scale": 0,
"unit": "string"
}
],
"name": "string",
"revision": 0,
"source": "string",
"vendor": "string"
}'

DELETE /api/v1/snmp/templates/{templateId}

Section titled “DELETE /api/v1/snmp/templates/{templateId}”

DELETEprofile:manage_mandatoryshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

DELETE /api/v1/snmp/templates/{templateId}

NameInTypeRequiredDescription
templateIdpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold profile:manage_mandatory.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsTemplate storage unavailable.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X DELETE 'https://depot.example.com/api/v1/snmp/templates/<templateId>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/snmp/templates/{templateId}/{revision}

Section titled “GET /api/v1/snmp/templates/{templateId}/{revision}”

GETdiscovery:readshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

GET /api/v1/snmp/templates/{templateId}/{revision}

NameInTypeRequiredDescription
revisionpathstringYes
templateIdpathstringYes
StatusBodyDescription
200application/json, SNMPTemplateSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsTemplate not found.
500application/problem+json, ProblemDetailsCould not read template.

200 response body

FieldTypeDescription
bundledrequiredboolean
idrequiredstring
monitorsrequiredarray of Monitor
monitors[].alertAlert
monitors[].alert.breachesrequiredinteger
monitors[].alert.operatorrequiredstring
monitors[].alert.recoveriesrequiredinteger
monitors[].alert.severityrequiredstring
monitors[].alert.valuestring
monitors[].idrequiredstring
monitors[].kindrequiredstring
monitors[].labelsobject
monitors[].namerequiredstring
monitors[].offsetnumber

double.

monitors[].oidrequiredstring
monitors[].scalerequirednumber

double.

monitors[].unitstring
namerequiredstring
revisionrequiredinteger

int64.

sourcestring
vendorstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/snmp/templates/<templateId>/<revision>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/snmp/templates/{templateId}/{revision}/overrides

Section titled “GET /api/v1/snmp/templates/{templateId}/{revision}/overrides”

GETdiscovery:readshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Snmp overrides

NameInTypeRequiredDescription
revisionpathstringYes
templateIdpathstringYes
StatusBodyDescription
200application/json, objectSuccess.
400application/problem+json, ProblemDetailsThe request body is not valid JSON.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsSNMP storage unavailable.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/snmp/templates/<templateId>/<revision>/overrides' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PUT /api/v1/snmp/templates/{templateId}/{revision}/overrides

Section titled “PUT /api/v1/snmp/templates/{templateId}/{revision}/overrides”

PUTdiscovery:manageshared facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Snmp overrides

NameInTypeRequiredDescription
revisionpathstringYes
templateIdpathstringYes

Required, sent as application/json.

FieldTypeDescription
monitorsrequiredarray of Monitor
monitors[].alertAlert
monitors[].alert.breachesrequiredinteger
monitors[].alert.operatorrequiredstring
monitors[].alert.recoveriesrequiredinteger
monitors[].alert.severityrequiredstring
monitors[].alert.valuestring
monitors[].idrequiredstring
monitors[].kindrequiredstring
monitors[].labelsobject
monitors[].namerequiredstring
monitors[].offsetnumber

double.

monitors[].oidrequiredstring
monitors[].scalerequirednumber

double.

monitors[].unitstring
StatusBodyDescription
200application/json, objectSuccess.
400application/problem+json, ProblemDetailsThe request body is not valid JSON.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsSNMP storage unavailable.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X PUT 'https://depot.example.com/api/v1/snmp/templates/<templateId>/<revision>/overrides' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"monitors": [
{
"alert": {
"breaches": 0,
"operator": "string",
"recoveries": 0,
"severity": "string",
"value": "string"
},
"id": "string",
"kind": "string",
"labels": {
"key": "string"
},
"name": "string",
"offset": 0,
"oid": "string",
"scale": 0,
"unit": "string"
}
]
}'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.