Get stream attachments Technical Preview

View as Markdown
GET /api/streams/{streamName}/attachments

Spaces method and path for this operation:

get /s/{space_id}/api/streams/{streamName}/attachments

Refer to Spaces for more information.

Fetches all attachments linked to a stream that are visible to the current user in the current space. Optionally filter by attachment type.

[Required authorization] Route required privileges: read_stream.

Path parameters

  • streamName string Required

    The name of the stream

Query parameters

  • attachmentType string

    Filter by attachment type

    Values are dashboard, rule, or slo.

application/json

Body

object object

Additional properties are NOT allowed.

Responses

  • 200 application/json

    Successfully retrieved attachments

GET /api/streams/{streamName}/attachments
curl \
 --request GET 'https://localhost:5601/api/streams/{streamName}/attachments' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"value":{}}'
Request example
{
  "value": {}
}
Response examples (200)
{
  "attachments": [
    {
      "id": "dashboard-123",
      "tags": [
        "monitoring",
        "production"
      ],
      "type": "dashboard",
      "title": "My Dashboard"
    }
  ]
}