StaticRoute

class StaticRoute : KotlinCustomResource

Provides a resource, that manages Cloudflare static routes for Magic Transit or Magic WAN. Static routes are used to route traffic through GRE tunnels.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.StaticRoute;
import com.pulumi.cloudflare.StaticRouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new StaticRoute("example", StaticRouteArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.coloNames("den01")
.coloRegions("APAC")
.description("New route for new prefix 192.0.2.0/24")
.nexthop("10.0.0.0")
.prefix("192.0.2.0/24")
.priority(100)
.weight(10)
.build());
}
}

Import

$ pulumi import cloudflare:index/staticRoute:StaticRoute example <account_id>/<static_route_id>

Properties

Link copied to clipboard
val accountId: Output<String>?

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val coloNames: Output<List<String>>?

List of Cloudflare colocation regions for this static route.

Link copied to clipboard
val coloRegions: Output<List<String>>?

List of Cloudflare colocation names for this static route.

Link copied to clipboard
val description: Output<String>?

Description of the static route.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val nexthop: Output<String>

The nexthop IP address where traffic will be routed to.

Link copied to clipboard
val prefix: Output<String>

Your network prefix using CIDR notation.

Link copied to clipboard
val priority: Output<Int>

The priority for the static route.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val weight: Output<Int>?

The optional weight for ECMP routes. Modifying this attribute will force creation of a new resource.