Assigns custom tags to the specified process group. You need only provide a tag value. The CONTEXTLESS
context will be assigned automatically.
The usage of this API is limited to value-only tags. To assign key:value tags, use the Custom tags API.
The request produces an application/json
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/process-groups/{meIdentifier} |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v1/entity/infrastructure/process-groups/{meIdentifier} |
To execute this request, you need an access token with DataExport
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
meIdentifier | string | The Dynatrace entity ID of the process group to be updated. | path | required |
body | Update | The JSON body of the request. Contains tags to be added to the process group. | body | optional |
UpdateEntity
objectA list of tags to be assigned to a Dynatrace entity.
Element | Type | Description | Required |
---|---|---|---|
tags | string[] | A list of tags to be assigned to a Dynatrace entity. | required |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"tags": ["office-linz","office-klagenfurt"]}
Code | Type | Description |
---|---|---|
204 | - | Success. The parameters of the process group have been updated. |
400 | Error | Failed. The input is invalid. |
4XX | Error | Client side error. |
5XX | Error | Server side error. |
In this example, the request assigns the PHP tag to the PHP-FPM process group, which has the ID of PROCESS_GROUP-E5C3CC7EC1F80B5B.
The API token is passed in the Authorization header.
curl -X POST \https://mySampleEnv.live.dynatrace.com/api/v1/entity/infrastructure/process-groups/PROCESS_GROUP-E5C3CC7EC1F80B5B \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890' \-H 'Content-Type: application/json' \-d '{"tags": ["PHP"]}'
https://mySampleEnv.live.dynatrace.com/api/v1/entity/infrastructure/process-groups/PROCESS_GROUP-E5C3CC7EC1F80B5B
{"tags": ["PHP"]}
204