Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.14.0
Describe the issue:
I’m trying to export an index pattern from dashboards. Exporting from the UI returns the object. Exporting with curl fails.
curl -XPOST -k http://localhost:5601/api/saved_objects/_export -u user:password -H "osd-xsrf:true" -H 'Content-Type: application/json' -d '{
"objects": [
{
"type": "index-pattern",
"id": "3cb30f70-1e8b-11ef-947d-bd1d0193c5ea"
}
]
}'
fails with Saved object [index-pattern/3cb30f70-1e8b-11ef-947d-bd1d0193c5ea]
not found
while
curl -XPOST -k http://localhost:5601/api/saved_objects/_export -u user:password -H "osd-xsrf:true" -H 'Content-Type: application/json' -d '{ "type": "index-pattern" }'
returns
{“exportedCount”:0,“missingRefCount”:0,“missingReferences”:}%
The index pattern is in the global tenant.
Thanks for any assistance!