mirror of
https://github.com/netbirdio/terraform-provider-netbird.git
synced 2026-05-22 17:13:16 -07:00
3.0 KiB
3.0 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| netbird_reverse_proxy_service Data Source - netbird | Look up a reverse proxy service by ID, name, or domain. |
netbird_reverse_proxy_service (Data Source)
Look up a reverse proxy service by ID, name, or domain.
Example Usage
# Retrieve by name
data "netbird_reverse_proxy_service" "example" {
name = "my-service"
}
# Retrieve by domain
data "netbird_reverse_proxy_service" "by_domain" {
domain = "app.example.netbird.cloud"
}
# Retrieve by ID
data "netbird_reverse_proxy_service" "by_id" {
id = "cvit5sjl0ubs73aslrkg"
}
Schema
Optional
domain(String) Domain for the serviceid(String) Service IDname(String) Service name
Read-Only
auth(Attributes) Authentication configuration (see below for nested schema)enabled(Boolean) Whether the service is enabledpass_host_header(Boolean) When true, the original client Host header is passed through to the backendproxy_cluster(String) The proxy cluster handling this servicerewrite_redirects(Boolean) When true, Location headers in backend responses are rewritten to replace the backend address with the public-facing domaintargets(Attributes List) List of target backends for this service (see below for nested schema)
Nested Schema for auth
Read-Only:
bearer_auth(Attributes) Bearer token authentication (see below for nested schema)link_auth(Attributes) Link authentication (see below for nested schema)password_auth(Attributes) Password authentication (see below for nested schema)pin_auth(Attributes) PIN authentication (see below for nested schema)
Nested Schema for auth.bearer_auth
Read-Only:
distribution_groups(List of String) List of group IDs that can use bearer authenabled(Boolean)
Nested Schema for auth.link_auth
Read-Only:
enabled(Boolean)
Nested Schema for auth.password_auth
Read-Only:
enabled(Boolean)password(String, Sensitive)
Nested Schema for auth.pin_auth
Read-Only:
enabled(Boolean)pin(String, Sensitive)
Nested Schema for targets
Read-Only:
enabled(Boolean) Whether this target is enabledhost(String) Backend IP or domain for this targetpath(String) URL path prefix for this targetport(Number) Backend port for this targetprotocol(String) Protocol to use when connecting to the backend (http, https)target_id(String) Target ID (resource or peer ID)target_type(String) Target type (peer, host, domain, subnet)