Tunnel Group Backends
Create Tunnel Group Backend
Create a new TunnelGroup backend
Request
POST /backends/tunnel_group
Example Request
curl \
-X POST \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"description":"acme tunnel group","labels":{"baz":"qux","foo":"bar"},"metadata":"{\"environment\": \"staging\"}"}' \
https://api.ngrok.com/backends/tunnel_group
Parameters
Name | Type | Description |
---|---|---|
description | string | human-readable description of this backend. Optional |
metadata | string | arbitrary user-defined machine-readable data of this backend. Optional |
labels | Map<string, string> | labels to watch for tunnels on, e.g. app->foo, dc->bar |
Response
Returns a 201 response on success
Example Response
{
"created_at": "2024-05-23T20:36:22Z",
"description": "acme tunnel group",
"id": "bkdtg_2gsqMES1bwPmhLsiwtzuSnYne56",
"labels": {
"baz": "qux",
"foo": "bar"
},
"metadata": "{\"environment\": \"staging\"}",
"tunnels": [],
"uri": "https://api.ngrok.com/backends/tunnel_group/bkdtg_2gsqMES1bwPmhLsiwtzuSnYne56"
}
Fields
Name | Type | Description |
---|---|---|
id | string | unique identifier for this TunnelGroup backend |
uri | string | URI of the TunnelGroupBackend API resource |
created_at | string | timestamp when the backend was created, RFC 3339 format |
description | string | human-readable description of this backend. Optional |
metadata | string | arbitrary user-defined machine-readable data of this backend. Optional |
labels | Map<string, string> | labels to watch for tunnels on, e.g. app->foo, dc->bar |
tunnels | Ref | tunnels matching this backend |