Skip to content
Start here

Routes

resource cloudflare_magic_wan_static_route

required Expand Collapse
account_id: String

Identifier

nexthop: String

The next-hop IP Address for the static route.

prefix: String

IP Prefix in Classless Inter-Domain Routing format.

priority: Int64

Priority of the static route.

optional Expand Collapse
description?: String

An optional human provided description of the static route.

weight?: Int64

Optional weight of the ECMP scope - if provided.

scope?: Attributes

Used only for ECMP routes.

colo_names?: List[String]

List of colo names for the ECMP scope.

colo_regions?: List[String]

List of colo regions for the ECMP scope.

computed Expand Collapse
id: String

Identifier

created_on: Time

When the route was created.

modified: Bool
modified_on: Time

When the route was last modified.

modified_route: Attributes
id: String

Identifier

nexthop: String

The next-hop IP Address for the static route.

prefix: String

IP Prefix in Classless Inter-Domain Routing format.

priority: Int64

Priority of the static route.

created_on: Time

When the route was created.

description: String

An optional human provided description of the static route.

modified_on: Time

When the route was last modified.

scope: Attributes

Used only for ECMP routes.

colo_names: List[String]

List of colo names for the ECMP scope.

colo_regions: List[String]

List of colo regions for the ECMP scope.

weight: Int64

Optional weight of the ECMP scope - if provided.

route: Attributes
id: String

Identifier

nexthop: String

The next-hop IP Address for the static route.

prefix: String

IP Prefix in Classless Inter-Domain Routing format.

priority: Int64

Priority of the static route.

created_on: Time

When the route was created.

description: String

An optional human provided description of the static route.

modified_on: Time

When the route was last modified.

scope: Attributes

Used only for ECMP routes.

colo_names: List[String]

List of colo names for the ECMP scope.

colo_regions: List[String]

List of colo regions for the ECMP scope.

weight: Int64

Optional weight of the ECMP scope - if provided.

cloudflare_magic_wan_static_route

resource "cloudflare_magic_wan_static_route" "example_magic_wan_static_route" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  nexthop = "203.0.113.1"
  prefix = "192.0.2.0/24"
  priority = 0
  description = "New route for new prefix 203.0.113.1"
  scope = {
    colo_names = ["den01"]
    colo_regions = ["APAC"]
  }
  weight = 0
}

data cloudflare_magic_wan_static_route

required Expand Collapse
route_id: String

Identifier

account_id: String

Identifier

computed Expand Collapse
id: String

Identifier

route: Attributes
id: String

Identifier

nexthop: String

The next-hop IP Address for the static route.

prefix: String

IP Prefix in Classless Inter-Domain Routing format.

priority: Int64

Priority of the static route.

created_on: Time

When the route was created.

description: String

An optional human provided description of the static route.

modified_on: Time

When the route was last modified.

scope: Attributes

Used only for ECMP routes.

colo_names: List[String]

List of colo names for the ECMP scope.

colo_regions: List[String]

List of colo regions for the ECMP scope.

weight: Int64

Optional weight of the ECMP scope - if provided.

cloudflare_magic_wan_static_route

data "cloudflare_magic_wan_static_route" "example_magic_wan_static_route" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  route_id = "023e105f4ecef8ad9ca31a8372d0c353"
}