Skip to content
v1
Docs

API reference

Tags

Tags: labels to group monitored resources.

Its operations need the scopes tags.edit, tags.view or tags.delete.

The Tag object

Attributes

  • uuidstring

    The tag’s uuid.

  • namestring

    The tag’s name.

  • groupobject

    The group the tag belongs to; it is set when the tag is created and never changes.

Create a tag

POST/v1/tags

Creates a tag in the tag group named by tag_group_uuid. The name must be valid for a tag and unique in the organisation; the group is set here and cannot be changed afterwards. Creating a tag costs nothing.

Needs the scope tags.edit.

Headers

  • Idempotency-KeystringOptional

    Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries Idempotent-Replayed: true); the same key on a different request is refused 422 invalid_request.

Body parameters

  • tag_group_uuidstring (uuid)Required

    The uuid of the tag group to create the tag in.

  • namestringRequired

    The tag’s name.

Returns

201 Created:

The new tag with its group.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.

Rename a tag

PUT/v1/tags/{tag_uuid}

Renames a tag. The name must be valid for a tag and unique in the organisation; the tag’s group cannot be changed.

Needs the scope tags.edit.

Headers

  • Idempotency-KeystringOptional

    Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries Idempotent-Replayed: true); the same key on a different request is refused 422 invalid_request.

Path parameters

  • tag_uuidstring (uuid)Required

    The uuid of the tag.

Body parameters

  • namestringRequired

    The tag’s name.

Returns

200 OK:

The tag after the rename, with its group.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.

Get a tag

GET/v1/tags/{tag_uuid}

Returns one tag with the group it belongs to.

Needs the scope tags.view.

Path parameters

  • tag_uuidstring (uuid)Required

    The uuid of the tag.

Returns

200 OK:

The tag and its group.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.

List tags

GET/v1/tags

Lists the organisation’s tag groups, each with its tags. With service_type, only the groups for that type of resource are returned, together with the organisation-wide groups (none), which are always listed. The page counts groups. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.

Needs the scope tags.view.

Query parameters

  • service_typestring or nullOptional

    Only the groups for this type of resource, together with the organisation-wide groups (none): one of domain, service, server, log_source, custom_metric, database_instance and none.

    Values:domainserviceserverlog_sourcecustom_metricdatabase_instancenone(an open set: new values may be added)
  • limitinteger or nullOptional

    The same as per_page, kept for existing clients.

  • include_totalstring or nullOptional

    Ignored: total is always present.

    Values:truefalse10(an open set: new values may be added)
  • per_pageinteger or nullOptional

    How many groups to return in one page, from 1 to 100.

  • pageinteger or nullOptional

    The page to read, from 1; 1 when omitted. A page past the last answers no rows.

Returns

200 OK:

One page of the organisation’s tag groups, each with its tags.

Each item of the page:

  • uuidstring

    The group’s uuid.

  • namestring

    The group’s name.

  • service_typestring

    What the group’s tags can be put on: one of none, domain, service, server, log_source, custom_metric, database_instance.

  • editableboolean

    Whether the group can be changed in the console; the system groups cannot.

  • tagsarray of objects

    The tags in the group.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.

Delete a tag

DELETE/v1/tags/{tag_uuid}

Deletes a tag and removes it from every resource it was put on. This cannot be undone.

Needs the scope tags.delete.

Headers

  • Idempotency-KeystringOptional

    Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries Idempotent-Replayed: true); the same key on a different request is refused 422 invalid_request.

Path parameters

  • tag_uuidstring (uuid)Required

    The uuid of the tag.

Returns

204 No Content:

The tag was deleted; the answer has no body.

Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.