Infrastructure/Agents
POSTAgentSince 1.0SynchronousAuth Required
ApplyLabelTemplate
Apply a label template to a selection of agents with optional dry run support
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
idStringRequiredUUID of the label template to apply
Body Fields
selectorObjectRequiredSelector for this resource
uuidsListUuids for this resource
Example: item1,item2
typeStringFilter agents by type
Example: log
regionStringFilter agents by deployment region
Example: us-east-1
labelMatchLinkedHashMapLabel matching criteria for agent selection
Example: (nested object)
dryRunBooleanRequiredIf true, simulate the operation without persisting changes
Example: false
Responses
Endpoint
POST/api/v1/agent/label-templates/{id}/apply
/api/v1/agent/label-templates/{id}/apply
Request Example
curl -X POST '{host}/api/v1/agent/label-templates/{id}/apply' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"selector":{"uuids":"item1,item2","type":"log","region":"us-east-1","labelMatch":"(nested object)"},"dryRun":false}'
Response Example
200{
"affectedCount": 30,
"affectedUuids": [],
"dryRun": false,
"errors": [
{}
]
}Change History
This API has no change history records yet.
