API: Listeners
This section covers listener management via the API.
Search Listeners (v2)
Use the paged listing to search listeners without fetching the complete v1 listener map.
| Parameter | Description |
|---|---|
page, pageSize |
Zero-based page; defaults 0 and 100, with page sizes from 1 to 1000 |
search |
Case-insensitive substring search across listener ID, name, and plugin ID |
status |
Listener status filter; repeat for multiple values |
pluginId |
Exact, case-sensitive plugin ID filter; repeat for multiple values |
sort |
ID, NAME, STATUS, PLUGIN_ID, CREATE_TIME, or UPDATE_TIME, optionally followed by :ASC or :DESC |
The response uses the shared paged response. Listener records also expose effective configurations.
Get Listener Plugins
Retrieve a list of available listener plugins.
Each plugin entry provides its configuration schema and named configuration examples. A
named default example is a complete example; its values are not merged into fields omitted
from a hand-written create or update request. For plugins without a page under
REST/Listeners, use the canonical External WebSocket listener
and commercial DNS listener configuration
references.
Create a New Listener
Use this endpoint to create a listener. You must provide the plugin ID (from the plugins list), a name, and configuration settings. By default, the listener starts immediately after creation.
JSON request:
Multipart request (when the listener configuration uses files):
For JSON file reuse or inline Base64 content, see Configuration files in requests.
Example:
List All Listeners
Get all created listeners.
Response is a JSON object keyed by listener ID:
Listener status values are unknown, created, started, stopped, and deleted.
Get Listener Details
Fetch full information for a specific listener.
Update a Listener
Change the name or configuration of an existing listener. Updating the configuration triggers immediate listener reconfiguration.
Use the multipart variant when the new configuration requires uploaded files:
Start a Listener
Activate a listener.
Stop a Listener
Deactivate a listener.
Delete a Listener
Remove a listener.