Replaces a New Relic entity's entire tag set with the tags provided.
For prerequisites, see New Relic Tagging actions.
Replace tags
The action identifier is newrelic.tagging.replaceTags.
Replaces a New Relic entity's entire tag set with the tags provided. This action is destructive: it removes any existing tag not included in the tags input. To add tags without removing existing ones, use newrelic.tagging.addTags instead. Built on newrelic.nerdgraph.execute.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
entityGuid | String | Required. The GUID of the New Relic entity to retag. |
|
tags | List | Required. The complete tag set the entity should end up with. Any existing tag not included here is removed. | |
selectors | List | Optional. JQ selectors to extract specific values from the response. | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure, whether transport-level or a NerdGraph business-logic error. |
data | Map | NerdGraph response: Use |
The following example replaces an entity's entire tag set with a single team tag.
Workflow example |
|---|
|