Files

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 service
  • id (String) Service ID
  • name (String) Service name

Read-Only

  • auth (Attributes) Authentication configuration (see below for nested schema)
  • enabled (Boolean) Whether the service is enabled
  • pass_host_header (Boolean) When true, the original client Host header is passed through to the backend
  • proxy_cluster (String) The proxy cluster handling this service
  • rewrite_redirects (Boolean) When true, Location headers in backend responses are rewritten to replace the backend address with the public-facing domain
  • targets (Attributes List) List of target backends for this service (see below for nested schema)

Nested Schema for auth

Read-Only:

Nested Schema for auth.bearer_auth

Read-Only:

  • distribution_groups (List of String) List of group IDs that can use bearer auth
  • enabled (Boolean)

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 enabled
  • host (String) Backend IP or domain for this target
  • path (String) URL path prefix for this target
  • port (Number) Backend port for this target
  • protocol (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)