* feat: initialize Terraform Plugin Framework * fix docker-compose path for tests * fix: ensure documentation can be generated with old provider SDK and new plugin framework * lint
1.5 KiB
1.5 KiB
page_title, subcategory, description
| page_title | subcategory | description |
|---|---|---|
| unifi_static_route Resource - terraform-provider-unifi | unifi_static_route manages a static route. |
unifi_static_route (Resource)
unifi_static_route manages a static route.
Example Usage
resource "unifi_static_route" "nexthop" {
type = "nexthop-route"
network = "172.17.0.0/16"
name = "basic nexthop"
distance = 1
next_hop = "172.16.0.1"
}
resource "unifi_static_route" "blackhole" {
type = "blackhole"
network = var.blackhole_cidr
name = "blackhole traffice to cidr"
distance = 1
}
resource "unifi_static_route" "interface" {
type = "interface-route"
network = var.wan2_cidr
name = "send traffic over wan2"
distance = 1
interface = "WAN2"
}
Schema
Required
distance(Number) The distance of the static route.name(String) The name of the static route.network(String) The network subnet address.type(String) The type of static route. Can beinterface-route,nexthop-route, orblackhole.
Optional
interface(String) The interface of the static route (only valid forinterface-routetype). This can beWAN1,WAN2, or a network ID.next_hop(String) The next hop of the static route (only valid fornexthop-routetype).site(String) The name of the site to associate the static route with.
Read-Only
id(String) The ID of the static route.