Actions
Bug #5786
closedYou cannot pass 'include' / 'exclude' targets as json for Rule API
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
When defining a Rule, defining include/exclude targets is not easy.
You have to put a whole string to manage that target ... instead of using a json object.
We should definitely correct this.
To be more precise, this is the supported use cases:
JSON in a file (notice the content-type):
curl -H "X-API-Token: HRLeYGfBX9TZQnF0aq6Ab7U2M7HbRJO8" -k -X POST -H "Content-Type: application/json" http://localhost:8082/rudder-web/api/latest/rules/19050b37-cb8c-4449-8696-68bf6e575cf6\?prettify\=true -d @update.json
JSON in the line (notice the content-type):
curl -H "X-API-Token: HRLeYGfBX9TZQnF0aq6Ab7U2M7HbRJO8" -k -X POST -H "Content-Type: application/json" http://localhost:8082/rudder-web/api/latest/rules/19050b37-cb8c-4449-8696-68bf6e575cf6\?prettify\=true -d '{"targets":["special:all", "group:b92a4f59-da85-455e-ab3d-1fd48e43a5f8"]}'
Simple list of groups:
curl -H "X-API-Token: HRLeYGfBX9TZQnF0aq6Ab7U2M7HbRJO8" -k -X POST http://localhost:8082/rudder-web/api/latest/rules/19050b37-cb8c-4449-8696-68bf6e575cf6\?prettify\=true -d "targets=special:all" -d "targets=group:b92a4f59-da85-455e-ab3d-1fd48e43a5f8"
Updated by Vincent MEMBRÉ about 10 years ago
- Subject changed from You can pass 'include' / 'exclude' targets as json for Rule API to You cannot pass 'include' / 'exclude' targets as json for Rule API
Updated by François ARMAND almost 10 years ago
- Status changed from New to Pending release
- % Done changed from 0 to 100
Applied in changeset d60597d3d5ae4a3064f8acc2f861a3eab34f2172.
Updated by François ARMAND almost 10 years ago
Applied in changeset e0aaa26eedda596b6a1b916bb53d7cd63db7c0bc.
Updated by Vincent MEMBRÉ almost 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.8 and 2.11.5, which were released today (16/12/14)
- Announcement 2.10 2.11
- Changelog 2.10 2.11
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Actions