Check_mk 1.6 Assign label via Api-http

Hi neeloj,

I hadn’t thought about a get_host. thank you :slight_smile: .

I’ll leave an example:

curl “http://…” -d 'request={“hostname”:“hostname”,“folder”:“destination_folder”,"attributes":{"… “labels”: {“key”: “value”}, “ipaddress”: “ipaddress”,“tag_agent”:“tag_agent”}}’

Dario.

2 Likes