Import a view
This endpoint allows you to import an existing view into your organization. It's intended for one-time migrations rather than ongoing view management. Unlike the standard API, this endpoint supports importing views with full editability, allowing you to modify views that were previously created elsewhere. Note: This endpoint is not recommended for Infrastructure-as-Code (IaC) workflows. Using it in IaC scenarios can cause configuration drift and inconsistencies between your source configuration and the imported view state. Importing a view without an id will create a new view and return the created asset with a generated id. Importing a view with an existing id (metadata>dash0Extensions>id) will override the corresponding view definition. In case there is no view with the given id a new view will be created.
Request
- Base URL: https://api.eu-west-1.aws.dash0.com
- URL: https://api.eu-west-1.aws.dash0.com/api/import/view
- Auth: none declared
Query parameters
Optional dataset to query across. Defaults to whatever is configured to be the default dataset for the organization.
Request body
Example request
{
"spec": {
"filter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
],
"implicitFilter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
]
}
}Response
The imported view.
Example response
{
"spec": {
"filter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
],
"implicitFilter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.