Skip to content

Depot endpointtags

Registers the definition routes.

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

GETendpoint:readshared facehosteditmspremoteIdempotent

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

Source: [object Object]

List endpoint tags

StatusBodyDescription
200application/json, EndpointTagListViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold endpoint:read.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsShared endpoint tags are not available on this Depot.

200 response body

FieldTypeDescription
itemsrequiredarray of EndpointTagDefView
items[].createdAtrequiredstring (date-time)
items[].descriptionrequiredstring
items[].idrequiredstring
items[].keyrequiredstring
items[].labelrequiredstring
items[].rulesrequiredarray of EndpointTagRuleView
items[].rules[].kindrequiredstring
items[].rules[].patternrequiredstring
items[].scoperequiredstring
items[].updatedAtrequiredstring (date-time)
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/endpoint-tags' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTtag:manageshared facehosteditmspremote

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

Source: [object Object]

Create endpoint tag

Required, sent as application/json.

FieldTypeDescription
descriptionstring or null
keystring or null
labelstring or null
rulesrequiredarray of EndpointTagRuleView
rules[].kindrequiredstring
rules[].patternrequiredstring
scopestring or null
StatusBodyDescription
201application/json, EndpointTagDefViewCreated.
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 tag:manage.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsShared endpoint tags are not available on this Depot.

201 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
descriptionrequiredstring
idrequiredstring
keyrequiredstring
labelrequiredstring
rulesrequiredarray of EndpointTagRuleView
rules[].kindrequiredstring
rules[].patternrequiredstring
scoperequiredstring
updatedAtrequiredstring (date-time)
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/endpoint-tags' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"description": "string",
"key": "string",
"label": "string",
"rules": [
{
"kind": "string",
"pattern": "string"
}
],
"scope": "string"
}'

PUTtag:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Update endpoint tag

NameInTypeRequiredDescription
idpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
descriptionstring or null
keystring or null
labelstring or null
rulesrequiredarray of EndpointTagRuleView
rules[].kindrequiredstring
rules[].patternrequiredstring
scopestring or null
StatusBodyDescription
200application/json, EndpointTagDefViewSuccess.
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 tag:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsCould not read the tag.
503application/problem+json, ProblemDetailsShared endpoint tags are not available on this Depot.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
descriptionrequiredstring
idrequiredstring
keyrequiredstring
labelrequiredstring
rulesrequiredarray of EndpointTagRuleView
rules[].kindrequiredstring
rules[].patternrequiredstring
scoperequiredstring
updatedAtrequiredstring (date-time)
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/endpoint-tags/<id>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"description": "string",
"key": "string",
"label": "string",
"rules": [
{
"kind": "string",
"pattern": "string"
}
],
"scope": "string"
}'

DELETEtag:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Delete endpoint tag

NameInTypeRequiredDescription
idpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold tag:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsCould not delete the tag.
503application/problem+json, ProblemDetailsShared endpoint tags are not available on this Depot.
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/endpoint-tags/<id>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTtag:manageshared facehosteditmspremote

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

Source: [object Object]

Preview endpoint tag

Required, sent as application/json.

FieldTypeDescription
rulesrequiredarray of EndpointTagRuleView
rules[].kindrequiredstring
rules[].patternrequiredstring
StatusBodyDescription
200application/json, EndpointTagPreviewViewSuccess.
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 tag:manage.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsShared endpoint tags are not available on this Depot.

200 response body

FieldTypeDescription
matchCountrequiredinteger
samplerequiredarray of string
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/endpoint-tags/preview' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"rules": [
{
"kind": "string",
"pattern": "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.