APITags

List tags

List tags in a namespace.

GET
/tags

List tags in a namespace.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_tags

Query Parameters

offset?integer

Number of items to skip before returning results.

Formatint32
Range0 <= value
Default0
limit?integer

Maximum number of items to return per page.

Formatint32
Range0 <= value <= 256
Default10
search?string

Free-text search term to filter results by name.

Lengthlength <= 255
namespace*string

Which kind of entity a tag can be applied to. A tag belongs to exactly one namespace.

Value in"agent""resource"
sort_by?string

Field to sort a list of tags by.

Default"name"
Value in"name""created_at"
sort_order?string

Direction to sort results.

Default"asc"
Value in"asc""desc"

Response Body

The request has succeeded.

application/json
  1. response

A page of results together with its paging information.

items*array<>

The items in this page.

meta*

Paging information for a list response.

Example Request
curl -X GET 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/tags?namespace=agent'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "namespace": "agent",      "name": "string",      "color": "red",      "system": true,      "description": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "total": 0,    "offset": 0,    "limit": 0  }}