pub struct Tunnel {
pub id: String,
pub public_url: String,
pub started_at: String,
pub metadata: String,
pub proto: String,
pub region: String,
pub tunnel_session: Ref,
pub endpoint: Option<Ref>,
pub labels: Option<HashMap<String, String>>,
pub backends: Option<Vec<Ref>>,
pub forwards_to: String,
}Fields§
§id: Stringunique tunnel resource identifier
public_url: StringURL of the ephemeral tunnel’s public endpoint
started_at: Stringtimestamp when the tunnel was initiated in RFC 3339 format
metadata: Stringuser-supplied metadata for the tunnel defined in the ngrok configuration file. See the tunnel metadata configuration option In API version 0, this value was instead pulled from the top-level metadata configuration option.
proto: Stringtunnel protocol for ephemeral tunnels. one of http, https, tcp or tls
region: Stringidentifier of tune region where the tunnel is running
tunnel_session: Refreference object pointing to the tunnel session on which this tunnel was started
endpoint: Option<Ref>the ephemeral endpoint this tunnel is associated with, if this is an agent-initiated tunnel
labels: Option<HashMap<String, String>>the labels the tunnel group backends will match against, if this is a backend tunnel
backends: Option<Vec<Ref>>tunnel group backends served by this backend tunnel
forwards_to: Stringupstream address the ngrok agent forwards traffic over this tunnel to. this may be expressed as a URL or a network address.