Dear All, my goal is to create kibana data_views using the API;
It works fine if I create simple data_view in the default space.
But it's not working if I want to precise the namespace I want to target.
Looking in the already opened topics, I saw the related topics : Kibana dataview namespace is closed BUT I don't see the solution.
The related github issue is closed as well BUT if I'm not wrong there is so solution displayed.
Obviously there is something wrong with this APIs usage; Is the function won't be implemented ?
If I'm using the api wrong, may I kindly ask me to point me to the good direction ? Thanks.
Could you provide me an update status on this ? Thanks in advance.
kr,
ps: In order to reproduce the issue, here is my dev console output
POST kbn:/api/data_views/data_view
{
"data_view": {
"title": "logstash-*",
"name": "logstash*"
}
}
- answer
{
"data_view": {
"id": "bc7fbbc3-4af2-40c8-8ac1-9692f4e8b130",
"title": "logstash-*",
. . .
"name": "logstash*"
}
}
- delete and recreate specifying the namespaces list this time:
DELETE kbn:/api/data_views/data_view/bc7fbbc3-4af2-40c8-8ac1-9692f4e8b130
POST kbn:/api/data_views/data_view
{
"data_view": {
"title": "logstash-*",
"name": "logstash*",
"namespaces": ["test", "default"]
}
}
- answer:
{
"statusCode": 400,
"error": "Bad Request",
"message": "[request body.data_view.namespaces]: definition for this key is missing"
}