1. Packages
  2. stackit
  3. API Docs
  4. RoutingTableRoute
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Routing table route resource schema. Must have a region specified in the provider configuration.

    This resource is part of the routing-tables experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.

    Example Usage

    resource "stackit_routing_table_route" "example" {
      organization_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      network_area_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      routing_table_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      destination = {
        type  = "cidrv4"
        value = "192.168.178.0/24"
      }
      next_hop = {
        type  = "ipv4"
        value = "192.168.178.1"
      }
      labels = {
        "key" = "value"
      }
    }
    
    # Only use the import statement, if you want to import an existing routing table route
    import {
      to = stackit_routing_table_route.import-example
      id = "${var.organization_id},${var.region},${var.network_area_id},${var.routing_table_id},${var.routing_table_route_id}"
    }
    

    Create RoutingTableRoute Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RoutingTableRoute(name: string, args: RoutingTableRouteArgs, opts?: CustomResourceOptions);
    @overload
    def RoutingTableRoute(resource_name: str,
                          args: RoutingTableRouteArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoutingTableRoute(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          destination: Optional[RoutingTableRouteDestinationArgs] = None,
                          network_area_id: Optional[str] = None,
                          next_hop: Optional[RoutingTableRouteNextHopArgs] = None,
                          organization_id: Optional[str] = None,
                          routing_table_id: Optional[str] = None,
                          labels: Optional[Mapping[str, str]] = None,
                          region: Optional[str] = None)
    func NewRoutingTableRoute(ctx *Context, name string, args RoutingTableRouteArgs, opts ...ResourceOption) (*RoutingTableRoute, error)
    public RoutingTableRoute(string name, RoutingTableRouteArgs args, CustomResourceOptions? opts = null)
    public RoutingTableRoute(String name, RoutingTableRouteArgs args)
    public RoutingTableRoute(String name, RoutingTableRouteArgs args, CustomResourceOptions options)
    
    type: stackit:RoutingTableRoute
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RoutingTableRouteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RoutingTableRouteArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RoutingTableRouteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoutingTableRouteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoutingTableRouteArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var routingTableRouteResource = new Stackit.RoutingTableRoute("routingTableRouteResource", new()
    {
        Destination = new Stackit.Inputs.RoutingTableRouteDestinationArgs
        {
            Type = "string",
            Value = "string",
        },
        NetworkAreaId = "string",
        NextHop = new Stackit.Inputs.RoutingTableRouteNextHopArgs
        {
            Type = "string",
            Value = "string",
        },
        OrganizationId = "string",
        RoutingTableId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Region = "string",
    });
    
    example, err := stackit.NewRoutingTableRoute(ctx, "routingTableRouteResource", &stackit.RoutingTableRouteArgs{
    	Destination: &stackit.RoutingTableRouteDestinationArgs{
    		Type:  pulumi.String("string"),
    		Value: pulumi.String("string"),
    	},
    	NetworkAreaId: pulumi.String("string"),
    	NextHop: &stackit.RoutingTableRouteNextHopArgs{
    		Type:  pulumi.String("string"),
    		Value: pulumi.String("string"),
    	},
    	OrganizationId: pulumi.String("string"),
    	RoutingTableId: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Region: pulumi.String("string"),
    })
    
    var routingTableRouteResource = new RoutingTableRoute("routingTableRouteResource", RoutingTableRouteArgs.builder()
        .destination(RoutingTableRouteDestinationArgs.builder()
            .type("string")
            .value("string")
            .build())
        .networkAreaId("string")
        .nextHop(RoutingTableRouteNextHopArgs.builder()
            .type("string")
            .value("string")
            .build())
        .organizationId("string")
        .routingTableId("string")
        .labels(Map.of("string", "string"))
        .region("string")
        .build());
    
    routing_table_route_resource = stackit.RoutingTableRoute("routingTableRouteResource",
        destination={
            "type": "string",
            "value": "string",
        },
        network_area_id="string",
        next_hop={
            "type": "string",
            "value": "string",
        },
        organization_id="string",
        routing_table_id="string",
        labels={
            "string": "string",
        },
        region="string")
    
    const routingTableRouteResource = new stackit.RoutingTableRoute("routingTableRouteResource", {
        destination: {
            type: "string",
            value: "string",
        },
        networkAreaId: "string",
        nextHop: {
            type: "string",
            value: "string",
        },
        organizationId: "string",
        routingTableId: "string",
        labels: {
            string: "string",
        },
        region: "string",
    });
    
    type: stackit:RoutingTableRoute
    properties:
        destination:
            type: string
            value: string
        labels:
            string: string
        networkAreaId: string
        nextHop:
            type: string
            value: string
        organizationId: string
        region: string
        routingTableId: string
    

    RoutingTableRoute Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RoutingTableRoute resource accepts the following input properties:

    Destination RoutingTableRouteDestination
    Destination of the route.
    NetworkAreaId string
    The network area ID to which the routing table is associated.
    NextHop RoutingTableRouteNextHop
    Next hop destination.
    OrganizationId string
    STACKIT organization ID to which the routing table is associated.
    RoutingTableId string
    The routing tables ID.
    Labels Dictionary<string, string>
    Labels are key-value string pairs which can be attached to a resource container
    Region string
    The resource region. If not defined, the provider region is used.
    Destination RoutingTableRouteDestinationArgs
    Destination of the route.
    NetworkAreaId string
    The network area ID to which the routing table is associated.
    NextHop RoutingTableRouteNextHopArgs
    Next hop destination.
    OrganizationId string
    STACKIT organization ID to which the routing table is associated.
    RoutingTableId string
    The routing tables ID.
    Labels map[string]string
    Labels are key-value string pairs which can be attached to a resource container
    Region string
    The resource region. If not defined, the provider region is used.
    destination RoutingTableRouteDestination
    Destination of the route.
    networkAreaId String
    The network area ID to which the routing table is associated.
    nextHop RoutingTableRouteNextHop
    Next hop destination.
    organizationId String
    STACKIT organization ID to which the routing table is associated.
    routingTableId String
    The routing tables ID.
    labels Map<String,String>
    Labels are key-value string pairs which can be attached to a resource container
    region String
    The resource region. If not defined, the provider region is used.
    destination RoutingTableRouteDestination
    Destination of the route.
    networkAreaId string
    The network area ID to which the routing table is associated.
    nextHop RoutingTableRouteNextHop
    Next hop destination.
    organizationId string
    STACKIT organization ID to which the routing table is associated.
    routingTableId string
    The routing tables ID.
    labels {[key: string]: string}
    Labels are key-value string pairs which can be attached to a resource container
    region string
    The resource region. If not defined, the provider region is used.
    destination RoutingTableRouteDestinationArgs
    Destination of the route.
    network_area_id str
    The network area ID to which the routing table is associated.
    next_hop RoutingTableRouteNextHopArgs
    Next hop destination.
    organization_id str
    STACKIT organization ID to which the routing table is associated.
    routing_table_id str
    The routing tables ID.
    labels Mapping[str, str]
    Labels are key-value string pairs which can be attached to a resource container
    region str
    The resource region. If not defined, the provider region is used.
    destination Property Map
    Destination of the route.
    networkAreaId String
    The network area ID to which the routing table is associated.
    nextHop Property Map
    Next hop destination.
    organizationId String
    STACKIT organization ID to which the routing table is associated.
    routingTableId String
    The routing tables ID.
    labels Map<String>
    Labels are key-value string pairs which can be attached to a resource container
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RoutingTableRoute resource produces the following output properties:

    CreatedAt string
    Date-time when the route was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    RouteId string
    The ID of the route.
    UpdatedAt string
    Date-time when the route was updated.
    CreatedAt string
    Date-time when the route was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    RouteId string
    The ID of the route.
    UpdatedAt string
    Date-time when the route was updated.
    createdAt String
    Date-time when the route was created.
    id String
    The provider-assigned unique ID for this managed resource.
    routeId String
    The ID of the route.
    updatedAt String
    Date-time when the route was updated.
    createdAt string
    Date-time when the route was created.
    id string
    The provider-assigned unique ID for this managed resource.
    routeId string
    The ID of the route.
    updatedAt string
    Date-time when the route was updated.
    created_at str
    Date-time when the route was created.
    id str
    The provider-assigned unique ID for this managed resource.
    route_id str
    The ID of the route.
    updated_at str
    Date-time when the route was updated.
    createdAt String
    Date-time when the route was created.
    id String
    The provider-assigned unique ID for this managed resource.
    routeId String
    The ID of the route.
    updatedAt String
    Date-time when the route was updated.

    Look up Existing RoutingTableRoute Resource

    Get an existing RoutingTableRoute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RoutingTableRouteState, opts?: CustomResourceOptions): RoutingTableRoute
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            destination: Optional[RoutingTableRouteDestinationArgs] = None,
            labels: Optional[Mapping[str, str]] = None,
            network_area_id: Optional[str] = None,
            next_hop: Optional[RoutingTableRouteNextHopArgs] = None,
            organization_id: Optional[str] = None,
            region: Optional[str] = None,
            route_id: Optional[str] = None,
            routing_table_id: Optional[str] = None,
            updated_at: Optional[str] = None) -> RoutingTableRoute
    func GetRoutingTableRoute(ctx *Context, name string, id IDInput, state *RoutingTableRouteState, opts ...ResourceOption) (*RoutingTableRoute, error)
    public static RoutingTableRoute Get(string name, Input<string> id, RoutingTableRouteState? state, CustomResourceOptions? opts = null)
    public static RoutingTableRoute get(String name, Output<String> id, RoutingTableRouteState state, CustomResourceOptions options)
    resources:  _:    type: stackit:RoutingTableRoute    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    Date-time when the route was created.
    Destination RoutingTableRouteDestination
    Destination of the route.
    Labels Dictionary<string, string>
    Labels are key-value string pairs which can be attached to a resource container
    NetworkAreaId string
    The network area ID to which the routing table is associated.
    NextHop RoutingTableRouteNextHop
    Next hop destination.
    OrganizationId string
    STACKIT organization ID to which the routing table is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    RouteId string
    The ID of the route.
    RoutingTableId string
    The routing tables ID.
    UpdatedAt string
    Date-time when the route was updated.
    CreatedAt string
    Date-time when the route was created.
    Destination RoutingTableRouteDestinationArgs
    Destination of the route.
    Labels map[string]string
    Labels are key-value string pairs which can be attached to a resource container
    NetworkAreaId string
    The network area ID to which the routing table is associated.
    NextHop RoutingTableRouteNextHopArgs
    Next hop destination.
    OrganizationId string
    STACKIT organization ID to which the routing table is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    RouteId string
    The ID of the route.
    RoutingTableId string
    The routing tables ID.
    UpdatedAt string
    Date-time when the route was updated.
    createdAt String
    Date-time when the route was created.
    destination RoutingTableRouteDestination
    Destination of the route.
    labels Map<String,String>
    Labels are key-value string pairs which can be attached to a resource container
    networkAreaId String
    The network area ID to which the routing table is associated.
    nextHop RoutingTableRouteNextHop
    Next hop destination.
    organizationId String
    STACKIT organization ID to which the routing table is associated.
    region String
    The resource region. If not defined, the provider region is used.
    routeId String
    The ID of the route.
    routingTableId String
    The routing tables ID.
    updatedAt String
    Date-time when the route was updated.
    createdAt string
    Date-time when the route was created.
    destination RoutingTableRouteDestination
    Destination of the route.
    labels {[key: string]: string}
    Labels are key-value string pairs which can be attached to a resource container
    networkAreaId string
    The network area ID to which the routing table is associated.
    nextHop RoutingTableRouteNextHop
    Next hop destination.
    organizationId string
    STACKIT organization ID to which the routing table is associated.
    region string
    The resource region. If not defined, the provider region is used.
    routeId string
    The ID of the route.
    routingTableId string
    The routing tables ID.
    updatedAt string
    Date-time when the route was updated.
    created_at str
    Date-time when the route was created.
    destination RoutingTableRouteDestinationArgs
    Destination of the route.
    labels Mapping[str, str]
    Labels are key-value string pairs which can be attached to a resource container
    network_area_id str
    The network area ID to which the routing table is associated.
    next_hop RoutingTableRouteNextHopArgs
    Next hop destination.
    organization_id str
    STACKIT organization ID to which the routing table is associated.
    region str
    The resource region. If not defined, the provider region is used.
    route_id str
    The ID of the route.
    routing_table_id str
    The routing tables ID.
    updated_at str
    Date-time when the route was updated.
    createdAt String
    Date-time when the route was created.
    destination Property Map
    Destination of the route.
    labels Map<String>
    Labels are key-value string pairs which can be attached to a resource container
    networkAreaId String
    The network area ID to which the routing table is associated.
    nextHop Property Map
    Next hop destination.
    organizationId String
    STACKIT organization ID to which the routing table is associated.
    region String
    The resource region. If not defined, the provider region is used.
    routeId String
    The ID of the route.
    routingTableId String
    The routing tables ID.
    updatedAt String
    Date-time when the route was updated.

    Supporting Types

    RoutingTableRouteDestination, RoutingTableRouteDestinationArgs

    Type string
    CIDRV type. Possible values are: cidrv4, cidrv6. Only cidrv4 is supported during experimental stage.
    Value string
    An CIDR string.
    Type string
    CIDRV type. Possible values are: cidrv4, cidrv6. Only cidrv4 is supported during experimental stage.
    Value string
    An CIDR string.
    type String
    CIDRV type. Possible values are: cidrv4, cidrv6. Only cidrv4 is supported during experimental stage.
    value String
    An CIDR string.
    type string
    CIDRV type. Possible values are: cidrv4, cidrv6. Only cidrv4 is supported during experimental stage.
    value string
    An CIDR string.
    type str
    CIDRV type. Possible values are: cidrv4, cidrv6. Only cidrv4 is supported during experimental stage.
    value str
    An CIDR string.
    type String
    CIDRV type. Possible values are: cidrv4, cidrv6. Only cidrv4 is supported during experimental stage.
    value String
    An CIDR string.

    RoutingTableRouteNextHop, RoutingTableRouteNextHopArgs

    Type string
    Type of the next hop. Possible values are: blackhole, internet, ipv4, ipv6.
    Value string
    Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage.
    Type string
    Type of the next hop. Possible values are: blackhole, internet, ipv4, ipv6.
    Value string
    Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage.
    type String
    Type of the next hop. Possible values are: blackhole, internet, ipv4, ipv6.
    value String
    Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage.
    type string
    Type of the next hop. Possible values are: blackhole, internet, ipv4, ipv6.
    value string
    Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage.
    type str
    Type of the next hop. Possible values are: blackhole, internet, ipv4, ipv6.
    value str
    Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage.
    type String
    Type of the next hop. Possible values are: blackhole, internet, ipv4, ipv6.
    value String
    Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.