GET /v2/tags
Get a paginated list of tags.
Token scope required: tags:list
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”If true, return count of total records and current page start and count in metadata
Cursor value at which to start the results, provided in nextCursor or prevCursor of a prior request
Example
bmV4dA.eyJsb2dzLmNyZQ5iIiwiX3ZhbHVlIjo9In19Number of records to return in each page
Order in which to return results. Each endpoint sorts on its own key (for example, hosts by
name and audit logs by creation time). Matching is case-insensitive, and any value other than
desc sorts ascending.
Responses
Section titled “ Responses ”Successful operation
object
object
Key is max 20 characters, value is max 50 characters, no whitespace around either allowed
Example
key:valueList of config overrides for the nebula config. Each key may appear at most once. Responses may include keys that aren’t documented; since setting overrides replaces the whole list, keep entries you don’t recognize when writing a list back.
A single Nebula config override. key names the Nebula config option and determines the type of value; see Config override keys for the documented keys and their value types, and the Nebula config reference for what each option does.
object
Example
tun.mtuThe override’s value. Its type depends on key.
Example
1300Priority is managed by the API. Use “before” and “after” inputs to order tags. Config overrides associated with tags of a higher (greater) priority take precedence over lower priorities.
Count of hosts which have the tag assigned.
Count of inbound firewall rules configured on this tag. 0 when the tag has none.
Route IDs to which any hosts with this tag will be subscribed.
Example
[ "route-X47KHSCOSQJP5IOKNNKRRGHVAI"]object
The total number of resources existing in the account. Only present when includeCounts is true.
Is there a page of data that can be fetched using the nextCursor?
Is there a page of data that can be fetched using the prevCursor?
An opaque string that can be used to fetch the next page of results. Not provided if result set is empty.
An opaque string that can be used to fetch the previous page of results. Not provided if result set is empty.
Only present when includeCounts is true.
object
The number of results returned in the response.
The zero-based index of the first result within the overall list. For example, the first page will have a start of 0. If 25 results are fetched, and the nextCursor used to fetch a new page of results, the second request’s start will be 25.
Examples
When includeCounts parameter is not set to true
{ "data": [ { "name": "env:prod", "description": "Production hosts", "configOverrides": [ { "key": "logging.level", "value": "info" } ], "priority": 6, "hostCount": 10, "firewallRulesCount": 2, "routeSubscriptions": [ "route-X47KHSCOSQJP5IOKNNKRRGHVAI" ] }, { "name": "env:dev", "description": "Development hosts", "configOverrides": [ { "key": "logging.level", "value": "debug" } ], "priority": 7, "hostCount": 2, "firewallRulesCount": 0, "routeSubscriptions": [] }, { "name": "region:us-east-1", "description": "", "configOverrides": [], "priority": 8, "hostCount": 7, "firewallRulesCount": 1, "routeSubscriptions": [] }, { "name": "region:us-west-2", "description": "", "configOverrides": [], "priority": 9, "hostCount": 3, "firewallRulesCount": 0, "routeSubscriptions": [] }, { "name": "region:eu-central-1", "description": "", "configOverrides": [], "priority": 10, "hostCount": 2, "firewallRulesCount": 0, "routeSubscriptions": [] } ], "metadata": { "hasNextPage": true, "hasPrevPage": true, "nextCursor": "bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc", "prevCursor": "cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU" }}Metadata returned when including request params for includeCounts=true, pageSize=5, and cursor="somevalue".
{ "data": [ { "name": "env:prod", "description": "Production hosts", "configOverrides": [ { "key": "logging.level", "value": "info" } ], "priority": 6, "hostCount": 10, "firewallRulesCount": 2, "routeSubscriptions": [ "route-X47KHSCOSQJP5IOKNNKRRGHVAI" ] }, { "name": "env:dev", "description": "Development hosts", "configOverrides": [ { "key": "logging.level", "value": "debug" } ], "priority": 7, "hostCount": 2, "firewallRulesCount": 0, "routeSubscriptions": [] }, { "name": "region:us-east-1", "description": "", "configOverrides": [], "priority": 8, "hostCount": 7, "firewallRulesCount": 1, "routeSubscriptions": [] }, { "name": "region:us-west-2", "description": "", "configOverrides": [], "priority": 9, "hostCount": 3, "firewallRulesCount": 0, "routeSubscriptions": [] }, { "name": "region:eu-central-1", "description": "", "configOverrides": [], "priority": 10, "hostCount": 2, "firewallRulesCount": 0, "routeSubscriptions": [] } ], "metadata": { "totalCount": 150, "hasNextPage": true, "hasPrevPage": true, "prevCursor": "cHJldg.SI6ImIiLCJfdmFsdWUiOiI0dDVuREQreU", "nextCursor": "bmV4dA.bHVlIjoieGJVS0UvYkRjQmZsY1pUbGJCc", "page": { "count": 5, "start": 5 } }}The API key is missing, invalid or expired.
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Example
{ "errors": [ { "code": "ERR_UNAUTHORIZED", "message": "unauthorized" } ]}The API key lacks a required scope.
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Examples
The API key lacks a required scope.
{ "errors": [ { "code": "ERR_FORBIDDEN", "message": "api key must support the following scopes: hosts:read" } ]}The organization has exceeded its API request rate limit. Retry the request after a short delay.
object
object
A static name for the error type
A short human readable description of the error
Describes the variable missing or malformed
The query parameter the error relates to, such as filter.targetType
Machine-readable details about the error. ERR_LIMIT_EXCEEDED errors carry limit and limitName.
object
The maximum number of resources allowed
The kind of resource the limit applies to
Example
{ "errors": [ { "code": "ERR_TOO_MANY_REQUESTS", "message": "too many requests" } ]}