This CURL command below does work for my local kibana, it created a index pattern for me:
curl -X POST "http://localhost:5601/api/saved_objects/index-pattern/my-pattern" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
"attributes": {
"title": "my-pattern-*"
}
}
'
So I substituted the url http://localhost:5601 with my Cloud Kibana url, and try passing credentials along with -u username:password, but it didn't work, it didn't create an index on my kibana cloud. I am getting
curl: (52) Empty reply from server
So my question is... does the Kibana SavedObject API work for the cloud version? if so how to pass the credentials?
@Joseph_Mak Kibana's saved object API does work for the cloud version. If you're using cURL to do so, you use the same -u username:password flag which you do locally. You can use the -I flag with curl to get additional information, which might be helpful in your situation.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.