Hi,
i have the follwing curl request, which i would like to rebuild in n8n, the problem is the columns parameter.
curl \
-v -G \
--request GET \
--write-out "\nxxx-status_code=%{http_code}\n" \
--header "Authorization: Bearer $USERNAME $PASSWORD" \
--header "Accept: */*" \
--data-urlencode 'query={"op": "=", "left": "host_name", "right": "erp.it.local"}' \
--data-urlencode 'columns=host_name' \
--data-urlencode 'columns=description' \
"$API_URL/domain-types/service/collections/all"
)
Output:
{"links": [{"domainType": "link", "rel": "self", "href": "https://example.com/check_mk/api/1.0/objects/host/erp.it.local", "method": "GET", "type": "application/json"}], "domainType": "host", "id": "erp.it.local", "title": "erp.it.local", "members": {}, "extensions": {"host_name": "erp.it.local", "description": "ERP System"}}
Here is my n8n build:
I will not get the columns work, only the default value response by the api called “name”, tryed different styles.
Any Ideas?
N8N Version: 1.57.0
Thanks, Kr Christian




