Skip to content
v1
Docs

API reference

Tag groups

Tag groups: sets of tags that apply together.

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

The Tag group object

Attributes

  • 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.

Create a tag group

POST/v1/tag-groups

Creates a tag group. The name must be valid for a group and unique in the organisation. service_type says what the group’s tags can be put on and cannot be changed afterwards.

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

  • namestringRequired

    The group’s name.

  • service_typestring or nullOptional

    What the group’s tags can be put on; it cannot be changed afterwards.

    Values:domainserviceserverlog_sourcecustom_metricdatabase_instancenone(an open set: new values may be added)

Returns

201 Created:

The new tag 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 group

PUT/v1/tag-groups/{tag_group_uuid}

Renames a tag group. A system group cannot be renamed and is refused with 422, and a group’s service_type 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_group_uuidstring (uuid)Required

    The uuid of the tag group.

Body parameters

  • namestringRequired

    The group’s name.

Returns

200 OK:

The tag group after the rename, with its tags.

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 group

GET/v1/tag-groups/{tag_group_uuid}

Returns one tag group with its tags.

Needs the scope tags.view.

Path parameters

  • tag_group_uuidstring (uuid)Required

    The uuid of the tag group.

Returns

200 OK:

The tag group and its tags.

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 tag groups

GET/v1/tag-groups

Lists the organisation’s tag groups without their tags; read a group, or list tags, for those. 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

  • 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 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.

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 group

DELETE/v1/tag-groups/{tag_group_uuid}

Deletes a tag group together with its tags, which are removed from every resource they were put on. A system group cannot be deleted and is refused with 422. 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_group_uuidstring (uuid)Required

    The uuid of the tag group.

Returns

204 No Content:

The tag group 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.