---
type: api
title: Get output by ID
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-get-output
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-get-output
products:
  - Kibana
---

# Get output by ID

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/fleet/outputs/{outputId}`
- `GET` `/s/{space_id}/api/fleet/outputs/{outputId}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v8/authentication#basicauth)

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Responses

#### `200`

OK

`application/json`

- `item` (union)
  - **Fleet_output_create_request_elasticsearch** (`type: elasticsearch`)
    - `ca_sha256` (string)
    - `ca_trusted_fingerprint` (string)
    - `config` (object)
    - `config_yaml` (string)
    - `hosts` ([] string)
    - `id` (string)
    - `is_default` (boolean)
    - `is_default_monitoring` (boolean)
    - `is_internal` (boolean)
    - `name` (string)
    - `preset` (enum)
      Values: `balanced`, `custom`, `throughput`, `scale`, `latency`
    - `proxy_id` (string)
    - `shipper` (object)
      - `compression_level` (number)
      - `disk_queue_compression_enabled` (boolean)
      - `disk_queue_enabled` (boolean)
      - `disk_queue_encryption_enabled` (boolean)
      - `disk_queue_max_size` (number)
      - `disk_queue_path` (string)
      - `loadbalance` (boolean)
    - `ssl` (object)
      - `certificate` (string)
      - `certificate_authorities` ([] string)
      - `key` (string)
    - `type` (enum)
      Values: `elasticsearch`
  - **Fleet_output_create_request_kafka** (`type: kafka`)
    - `auth_type` (string)
    - `broker_timeout` (number)
    - `ca_sha256` (string)
    - `ca_trusted_fingerprint` (string)
    - `client_id` (string)
    - `compression` (string)
    - `compression_level` (number)
    - `config` (object)
    - `config_yaml` (string)
    - `connection_type` (enum)
      Values: `plaintext`, `encryption`
    - `headers` ([] object)
      - `key` (string)
      - `value` (string)
    - `hosts` ([] string)
    - `id` (string)
    - `is_default` (boolean)
    - `is_default_monitoring` (boolean)
    - `is_internal` (boolean)
    - `key` (string)
    - `name` (string)
    - `partition` (string)
    - `password` (string)
    - `proxy_id` (string)
    - `random` (object)
      - `group_events` (number)
    - `required_acks` (number)
    - `round_robin` (object)
      - `group_events` (number)
    - `sasl` (object)
      - `mechanism` (string)
    - `secrets` (object)
      - `password` (string)
      - `ssl` (object)
        - `key` (string)
    - `shipper` (object)
      - `compression_level` (number)
      - `disk_queue_compression_enabled` (boolean)
      - `disk_queue_enabled` (boolean)
      - `disk_queue_encryption_enabled` (boolean)
      - `disk_queue_max_size` (number)
      - `disk_queue_path` (string)
      - `loadbalance` (boolean)
    - `ssl` (object)
      - `certificate` (string)
      - `certificate_authorities` ([] string)
      - `key` (string)
      - `verification_mode` (enum)
        Values: `none`, `full`, `certificate`, `strict`
    - `timeout` (number)
    - `topic` (string)
    - `topics` ([] object) — deprecated
      Use topic instead.
      - `topic` (string)
      - `when` (object) — deprecated
        Deprecated, kafka output do not support conditionnal topics anymore.
        - `condition` (string)
        - `type` (string)
    - `type` (enum)
      Values: `kafka`
    - `username` (string)
    - `version` (string)
  - **Fleet_output_create_request_logstash** (`type: logstash`)
    - `ca_sha256` (string)
    - `ca_trusted_fingerprint` (string)
    - `config` (object)
    - `config_yaml` (string)
    - `hosts` ([] string)
    - `id` (string)
    - `is_default` (boolean)
    - `is_default_monitoring` (boolean)
    - `is_internal` (boolean)
    - `name` (string)
    - `proxy_id` (string)
    - `secrets` (object)
      - `ssl` (object)
        - `key` (string)
    - `shipper` (object)
      - `compression_level` (number)
      - `disk_queue_compression_enabled` (boolean)
      - `disk_queue_enabled` (boolean)
      - `disk_queue_encryption_enabled` (boolean)
      - `disk_queue_max_size` (number)
      - `disk_queue_path` (string)
      - `loadbalance` (boolean)
    - `ssl` (object)
      - `certificate` (string)
      - `certificate_authorities` ([] string)
      - `key` (string)
    - `type` (enum)
      Values: `logstash`
  - **Fleet_output_create_request_remote_elasticsearch** (`type: remote_elasticsearch`)
    - `hosts` ([] string)
    - `id` (string)
    - `is_default` (boolean)
    - `is_default_monitoring` (boolean)
    - `is_internal` (boolean)
    - `name` (string)
    - `secrets` (object)
      - `service_token` (string)
    - `service_token` (string)
    - `type` (enum)
      Values: `remote_elasticsearch`
#### `400`

Generic Error

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code Examples

#### Console

```console
GET /api/fleet/outputs/{outputId}
```

#### curl

```curl
curl -X GET "https://{kibana_url}/api/fleet/outputs/{outputId}"
```

