2 minutes read

Manage Tags

Create and manage tags through the Tag Manager API. Assign tags to servers and filter server inventories using tag values.
Milica Dancuk
· Updated
November 27, 2026

The Tag Manager API lets you organize Bare Metal Cloud (BMC) resources using tags. Tags are key-value pairs that group similar resources, filter server inventories, and organize billing information.

Using tags helps organize resources across teams and projects, and provides a clearer breakdown of server usage on BMC invoices.

Most API requests in this guide are relative to:

https://api.phoenixnap.com/tag-manager/v1Code language: HTTP (http)

Operations involving BMC servers use the BMC API base URL instead:

https://api.phoenixnap.com/bmc/v1Code language: HTTP (http)
Prerequisites

BMC API access token with the tags scope (see API credentials). For filtering servers by tag, use the bmc.read scope. If updating server tags, you will need the bmc scope.

Create a Tag

Send a POST request to:

POST /tagsCode language: HTTP (http)

Include the tag name and the isBillingTag property. The description is optional. For example:

{
  "name": "Example tag",
  "description": "Example description",
  "isBillingTag": false
}Code language: JSON / JSON with Comments (json)

The isBillingTag property instructs whether the tag is used to identify server usage with recurring costs on invoices. Each created tag receives a unique ID. You can use the tag name or ID in API requests.

Note

Tag names are case-sensitive, must be unique, and contain up to 100 characters. You cannot create multiple tags with the same name, even if their other properties differ.

View Tags

To view all tags, send a GET request to:

GET /tagsCode language: HTTP (http)

To view a specific tag and its properties, send a GET request to:

GET /tags/[TAG_ID]Code language: HTTP (http)

Update Tag

Send a PATCH request to:

PATCH /tags/[TAG_ID]Code language: HTTP (http)

For example, change isBillingTag from false to true. If the isBillingTag property is patched, the tag changes on all assigned resources.

Delete Tag

Send a DELETE request to:

DELETE /tags/[TAG_ID]Code language: HTTP (http)

Deleting a tag automatically removes it from any assigned resources.

Assign Tags to Servers

Send a PUT request to:

PUT /servers/[SERVER_ID]/tags Code language: HTTP (http)

The tag body must contain a tag name. The value property can be left empty, but specifying a value enables multiple servers to use the same tag name with a different value.

For example, you can set the environment tag with the value prod to one server and use the same tag name with the value dev for another server. 

Note

You can assign a maximum of 20 tags to each BMC server.

When viewing tag details, the response shows information about the resources it is assigned to. If a tag assignment is removed from a resource, the system updates the tag details automatically.

Filter Servers by Tags

Use the tag query parameter to filter servers by tags:

?tag=tagName.tagValueCode language: HTTP (http)

Or, use multiple parameters to further refine the filtering:

?tag=tagName1.tagValue1&tagName2.tagValue2Code language: HTTP (http)

The tag value is optional. For example, send a request to:

GET /servers?tag=EnvironmentCode language: HTTP (http)

The result shows all servers that match the provided filter, if there are any.

Note

Tag names are case-sensitive. Use the exact tag name and value to avoid unexpected result.

Find out more

BMC API - GET /servers