github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/inputs/dynamic.md (about)

     1  ---
     2  title: dynamic
     3  type: input
     4  status: stable
     5  categories: ["Utility"]
     6  ---
     7  
     8  <!--
     9       THIS FILE IS AUTOGENERATED!
    10  
    11       To make changes please edit the contents of:
    12       lib/input/dynamic.go
    13  -->
    14  
    15  import Tabs from '@theme/Tabs';
    16  import TabItem from '@theme/TabItem';
    17  
    18  
    19  A special broker type where the inputs are identified by unique labels and can
    20  be created, changed and removed during runtime via a REST HTTP interface.
    21  
    22  ```yaml
    23  # Config fields, showing default values
    24  input:
    25    label: ""
    26    dynamic:
    27      inputs: {}
    28      prefix: ""
    29      timeout: 5s
    30  ```
    31  
    32  To GET a JSON map of input identifiers with their current uptimes use the
    33  `/inputs` endpoint.
    34  
    35  To perform CRUD actions on the inputs themselves use POST, DELETE, and GET
    36  methods on the `/inputs/{input_id}` endpoint. When using POST the body
    37  of the request should be a YAML configuration for the input, if the input
    38  already exists it will be changed.
    39  
    40  ## Fields
    41  
    42  ### `inputs`
    43  
    44  A map of inputs to statically create.
    45  
    46  
    47  Type: `object`  
    48  Default: `{}`  
    49  
    50  ### `prefix`
    51  
    52  A path prefix for HTTP endpoints that are registered.
    53  
    54  
    55  Type: `string`  
    56  Default: `""`  
    57  
    58  ### `timeout`
    59  
    60  The server side timeout of HTTP requests.
    61  
    62  
    63  Type: `string`  
    64  Default: `"5s"`  
    65  
    66