dms6978
(EunYeong Son)
October 26, 2022, 6:47am
1
There is "namespace" properties of the data_view object when create Data Views.
(doc: Create data view API | Kibana Guide [master] | Elastic )
curl -X POST "kibanahost:port/api/data_views/data_view" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
"data_view": {
"title": "kibana_sample_data_ecommerce",
"name": "Kibana Sample Data eCommerce",
"namespaces": ["test", "default"]
}
}
'
But returned message is
"message":"[request body.data_view.namespaces]: definition for this key is missing"}
Is the function not implemented? Or is there a problem with my query?
1 Like
jsanz
(Jorge Sanz)
October 26, 2022, 10:54am
2
Unfortunately the namespaces
key is only available for the response object, but not on the request.
There is already a github issue discussing this, please feel free to chime in you have further feedback
opened 03:23PM - 09 Sep 22 UTC
bug
Feature:Data Views
Team:AppServicesSv
impact:medium
Currently, the `namespace` parameter in the data view create API is not taken in… to account. In the code, it is some sort of a read-only parameter.
We should either update the documentation or fix that in the code.
1 Like
system
(system)
Closed
November 23, 2022, 10:54am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.