Skip to content

Use regex to select dashboards to export #4774

@andrewkroh

Description

@andrewkroh

We could use the saved_objects API to list the dashboards, match against the names, then use the export API to get the matching dashboards and their deps.

$ curl -s "http://localhost:5601/api/saved_objects/dashboard?per_page=10000" | jq '.saved_objects[] | {title: .attributes.title, id: .id}'
{
  "title": "My Dashboard",
  "id": "c9dea300-72f3-11e7-bb5f-6bf23f27ae74"
}
{
  "title": "My Dashboard Copy",
  "id": "371c43d0-72f6-11e7-bb5f-6bf23f27ae74"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions