1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsSubnetRoutingTableAttachment
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IsSubnetRoutingTableAttachment

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, or delete a subnet routing table attachment resource. For more information, about subnet routing table attachment, see setting up routing tables.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
    const exampleIsVpcRoutingTable = new ibm.IsVpcRoutingTable("exampleIsVpcRoutingTable", {vpc: exampleIsVpc.isVpcId});
    const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
        vpc: exampleIsVpc.isVpcId,
        zone: "eu-gb-1",
        totalIpv4AddressCount: 16,
    });
    const exampleIsSubnetRoutingTableAttachment = new ibm.IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment", {
        subnet: exampleIsSubnet.isSubnetId,
        routingTable: exampleIsVpcRoutingTable.routingTable,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example_is_vpc = ibm.IsVpc("exampleIsVpc")
    example_is_vpc_routing_table = ibm.IsVpcRoutingTable("exampleIsVpcRoutingTable", vpc=example_is_vpc.is_vpc_id)
    example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
        vpc=example_is_vpc.is_vpc_id,
        zone="eu-gb-1",
        total_ipv4_address_count=16)
    example_is_subnet_routing_table_attachment = ibm.IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment",
        subnet=example_is_subnet.is_subnet_id,
        routing_table=example_is_vpc_routing_table.routing_table)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
    		if err != nil {
    			return err
    		}
    		exampleIsVpcRoutingTable, err := ibm.NewIsVpcRoutingTable(ctx, "exampleIsVpcRoutingTable", &ibm.IsVpcRoutingTableArgs{
    			Vpc: exampleIsVpc.IsVpcId,
    		})
    		if err != nil {
    			return err
    		}
    		exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
    			Vpc:                   exampleIsVpc.IsVpcId,
    			Zone:                  pulumi.String("eu-gb-1"),
    			TotalIpv4AddressCount: pulumi.Float64(16),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsSubnetRoutingTableAttachment(ctx, "exampleIsSubnetRoutingTableAttachment", &ibm.IsSubnetRoutingTableAttachmentArgs{
    			Subnet:       exampleIsSubnet.IsSubnetId,
    			RoutingTable: exampleIsVpcRoutingTable.RoutingTable,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
    
        var exampleIsVpcRoutingTable = new Ibm.IsVpcRoutingTable("exampleIsVpcRoutingTable", new()
        {
            Vpc = exampleIsVpc.IsVpcId,
        });
    
        var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
        {
            Vpc = exampleIsVpc.IsVpcId,
            Zone = "eu-gb-1",
            TotalIpv4AddressCount = 16,
        });
    
        var exampleIsSubnetRoutingTableAttachment = new Ibm.IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment", new()
        {
            Subnet = exampleIsSubnet.IsSubnetId,
            RoutingTable = exampleIsVpcRoutingTable.RoutingTable,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IsVpc;
    import com.pulumi.ibm.IsVpcRoutingTable;
    import com.pulumi.ibm.IsVpcRoutingTableArgs;
    import com.pulumi.ibm.IsSubnet;
    import com.pulumi.ibm.IsSubnetArgs;
    import com.pulumi.ibm.IsSubnetRoutingTableAttachment;
    import com.pulumi.ibm.IsSubnetRoutingTableAttachmentArgs;
    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 exampleIsVpc = new IsVpc("exampleIsVpc");
    
            var exampleIsVpcRoutingTable = new IsVpcRoutingTable("exampleIsVpcRoutingTable", IsVpcRoutingTableArgs.builder()
                .vpc(exampleIsVpc.isVpcId())
                .build());
    
            var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
                .vpc(exampleIsVpc.isVpcId())
                .zone("eu-gb-1")
                .totalIpv4AddressCount(16)
                .build());
    
            var exampleIsSubnetRoutingTableAttachment = new IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment", IsSubnetRoutingTableAttachmentArgs.builder()
                .subnet(exampleIsSubnet.isSubnetId())
                .routingTable(exampleIsVpcRoutingTable.routingTable())
                .build());
    
        }
    }
    
    resources:
      exampleIsVpc:
        type: ibm:IsVpc
      exampleIsVpcRoutingTable:
        type: ibm:IsVpcRoutingTable
        properties:
          vpc: ${exampleIsVpc.isVpcId}
      exampleIsSubnet:
        type: ibm:IsSubnet
        properties:
          vpc: ${exampleIsVpc.isVpcId}
          zone: eu-gb-1
          totalIpv4AddressCount: 16
      exampleIsSubnetRoutingTableAttachment:
        type: ibm:IsSubnetRoutingTableAttachment
        properties:
          subnet: ${exampleIsSubnet.isSubnetId}
          routingTable: ${exampleIsVpcRoutingTable.routingTable}
    

    Create IsSubnetRoutingTableAttachment Resource

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

    Constructor syntax

    new IsSubnetRoutingTableAttachment(name: string, args: IsSubnetRoutingTableAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def IsSubnetRoutingTableAttachment(resource_name: str,
                                       args: IsSubnetRoutingTableAttachmentArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsSubnetRoutingTableAttachment(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       subnet: Optional[str] = None,
                                       is_subnet_routing_table_attachment_id: Optional[str] = None,
                                       routing_table: Optional[str] = None,
                                       routing_table_crn: Optional[str] = None,
                                       timeouts: Optional[IsSubnetRoutingTableAttachmentTimeoutsArgs] = None)
    func NewIsSubnetRoutingTableAttachment(ctx *Context, name string, args IsSubnetRoutingTableAttachmentArgs, opts ...ResourceOption) (*IsSubnetRoutingTableAttachment, error)
    public IsSubnetRoutingTableAttachment(string name, IsSubnetRoutingTableAttachmentArgs args, CustomResourceOptions? opts = null)
    public IsSubnetRoutingTableAttachment(String name, IsSubnetRoutingTableAttachmentArgs args)
    public IsSubnetRoutingTableAttachment(String name, IsSubnetRoutingTableAttachmentArgs args, CustomResourceOptions options)
    
    type: ibm:IsSubnetRoutingTableAttachment
    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 IsSubnetRoutingTableAttachmentArgs
    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 IsSubnetRoutingTableAttachmentArgs
    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 IsSubnetRoutingTableAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsSubnetRoutingTableAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsSubnetRoutingTableAttachmentArgs
    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 isSubnetRoutingTableAttachmentResource = new Ibm.IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource", new()
    {
        Subnet = "string",
        IsSubnetRoutingTableAttachmentId = "string",
        RoutingTable = "string",
        RoutingTableCrn = "string",
        Timeouts = new Ibm.Inputs.IsSubnetRoutingTableAttachmentTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewIsSubnetRoutingTableAttachment(ctx, "isSubnetRoutingTableAttachmentResource", &ibm.IsSubnetRoutingTableAttachmentArgs{
    	Subnet:                           pulumi.String("string"),
    	IsSubnetRoutingTableAttachmentId: pulumi.String("string"),
    	RoutingTable:                     pulumi.String("string"),
    	RoutingTableCrn:                  pulumi.String("string"),
    	Timeouts: &ibm.IsSubnetRoutingTableAttachmentTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var isSubnetRoutingTableAttachmentResource = new IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource", IsSubnetRoutingTableAttachmentArgs.builder()
        .subnet("string")
        .isSubnetRoutingTableAttachmentId("string")
        .routingTable("string")
        .routingTableCrn("string")
        .timeouts(IsSubnetRoutingTableAttachmentTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    is_subnet_routing_table_attachment_resource = ibm.IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource",
        subnet="string",
        is_subnet_routing_table_attachment_id="string",
        routing_table="string",
        routing_table_crn="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const isSubnetRoutingTableAttachmentResource = new ibm.IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource", {
        subnet: "string",
        isSubnetRoutingTableAttachmentId: "string",
        routingTable: "string",
        routingTableCrn: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:IsSubnetRoutingTableAttachment
    properties:
        isSubnetRoutingTableAttachmentId: string
        routingTable: string
        routingTableCrn: string
        subnet: string
        timeouts:
            create: string
            delete: string
            update: string
    

    IsSubnetRoutingTableAttachment 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 IsSubnetRoutingTableAttachment resource accepts the following input properties:

    Subnet string
    The subnet identifier.
    IsSubnetRoutingTableAttachmentId string
    (String) The unique identifier for this subnet.
    RoutingTable string
    The routing table identity.
    RoutingTableCrn string

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    Timeouts IsSubnetRoutingTableAttachmentTimeouts
    Subnet string
    The subnet identifier.
    IsSubnetRoutingTableAttachmentId string
    (String) The unique identifier for this subnet.
    RoutingTable string
    The routing table identity.
    RoutingTableCrn string

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    Timeouts IsSubnetRoutingTableAttachmentTimeoutsArgs
    subnet String
    The subnet identifier.
    isSubnetRoutingTableAttachmentId String
    (String) The unique identifier for this subnet.
    routingTable String
    The routing table identity.
    routingTableCrn String

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    timeouts IsSubnetRoutingTableAttachmentTimeouts
    subnet string
    The subnet identifier.
    isSubnetRoutingTableAttachmentId string
    (String) The unique identifier for this subnet.
    routingTable string
    The routing table identity.
    routingTableCrn string

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    timeouts IsSubnetRoutingTableAttachmentTimeouts
    subnet str
    The subnet identifier.
    is_subnet_routing_table_attachment_id str
    (String) The unique identifier for this subnet.
    routing_table str
    The routing table identity.
    routing_table_crn str

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    timeouts IsSubnetRoutingTableAttachmentTimeoutsArgs
    subnet String
    The subnet identifier.
    isSubnetRoutingTableAttachmentId String
    (String) The unique identifier for this subnet.
    routingTable String
    The routing table identity.
    routingTableCrn String

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    (Boolean) Indicates whether this is the default routing table for this VPC.
    LifecycleState string
    (String) The lifecycle state of the routing table.
    Name string
    (String) The user-defined name for this subnet.
    ResourceGroups List<IsSubnetRoutingTableAttachmentResourceGroup>
    The resource group for this volume.
    ResourceType string
    (String) The resource type.
    RouteDirectLinkIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    RouteTransitGatewayIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    RouteVpcZoneIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    Routes List<IsSubnetRoutingTableAttachmentRoute>
    (List) The routes for this routing table.
    Subnets List<IsSubnetRoutingTableAttachmentSubnet>
    (List) The subnets to which this routing table is attached.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    (Boolean) Indicates whether this is the default routing table for this VPC.
    LifecycleState string
    (String) The lifecycle state of the routing table.
    Name string
    (String) The user-defined name for this subnet.
    ResourceGroups []IsSubnetRoutingTableAttachmentResourceGroup
    The resource group for this volume.
    ResourceType string
    (String) The resource type.
    RouteDirectLinkIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    RouteTransitGatewayIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    RouteVpcZoneIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    Routes []IsSubnetRoutingTableAttachmentRoute
    (List) The routes for this routing table.
    Subnets []IsSubnetRoutingTableAttachmentSubnet
    (List) The subnets to which this routing table is attached.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    (Boolean) Indicates whether this is the default routing table for this VPC.
    lifecycleState String
    (String) The lifecycle state of the routing table.
    name String
    (String) The user-defined name for this subnet.
    resourceGroups List<IsSubnetRoutingTableAttachmentResourceGroup>
    The resource group for this volume.
    resourceType String
    (String) The resource type.
    routeDirectLinkIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routeTransitGatewayIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    routeVpcZoneIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes List<IsSubnetRoutingTableAttachmentRoute>
    (List) The routes for this routing table.
    subnets List<IsSubnetRoutingTableAttachmentSubnet>
    (List) The subnets to which this routing table is attached.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    (Boolean) Indicates whether this is the default routing table for this VPC.
    lifecycleState string
    (String) The lifecycle state of the routing table.
    name string
    (String) The user-defined name for this subnet.
    resourceGroups IsSubnetRoutingTableAttachmentResourceGroup[]
    The resource group for this volume.
    resourceType string
    (String) The resource type.
    routeDirectLinkIngress boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routeTransitGatewayIngress boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    routeVpcZoneIngress boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes IsSubnetRoutingTableAttachmentRoute[]
    (List) The routes for this routing table.
    subnets IsSubnetRoutingTableAttachmentSubnet[]
    (List) The subnets to which this routing table is attached.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    (Boolean) Indicates whether this is the default routing table for this VPC.
    lifecycle_state str
    (String) The lifecycle state of the routing table.
    name str
    (String) The user-defined name for this subnet.
    resource_groups Sequence[IsSubnetRoutingTableAttachmentResourceGroup]
    The resource group for this volume.
    resource_type str
    (String) The resource type.
    route_direct_link_ingress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    route_transit_gateway_ingress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    route_vpc_zone_ingress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes Sequence[IsSubnetRoutingTableAttachmentRoute]
    (List) The routes for this routing table.
    subnets Sequence[IsSubnetRoutingTableAttachmentSubnet]
    (List) The subnets to which this routing table is attached.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    (Boolean) Indicates whether this is the default routing table for this VPC.
    lifecycleState String
    (String) The lifecycle state of the routing table.
    name String
    (String) The user-defined name for this subnet.
    resourceGroups List<Property Map>
    The resource group for this volume.
    resourceType String
    (String) The resource type.
    routeDirectLinkIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routeTransitGatewayIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    routeVpcZoneIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes List<Property Map>
    (List) The routes for this routing table.
    subnets List<Property Map>
    (List) The subnets to which this routing table is attached.

    Look up Existing IsSubnetRoutingTableAttachment Resource

    Get an existing IsSubnetRoutingTableAttachment 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?: IsSubnetRoutingTableAttachmentState, opts?: CustomResourceOptions): IsSubnetRoutingTableAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            is_default: Optional[bool] = None,
            is_subnet_routing_table_attachment_id: Optional[str] = None,
            lifecycle_state: Optional[str] = None,
            name: Optional[str] = None,
            resource_groups: Optional[Sequence[IsSubnetRoutingTableAttachmentResourceGroupArgs]] = None,
            resource_type: Optional[str] = None,
            route_direct_link_ingress: Optional[bool] = None,
            route_transit_gateway_ingress: Optional[bool] = None,
            route_vpc_zone_ingress: Optional[bool] = None,
            routes: Optional[Sequence[IsSubnetRoutingTableAttachmentRouteArgs]] = None,
            routing_table: Optional[str] = None,
            routing_table_crn: Optional[str] = None,
            subnet: Optional[str] = None,
            subnets: Optional[Sequence[IsSubnetRoutingTableAttachmentSubnetArgs]] = None,
            timeouts: Optional[IsSubnetRoutingTableAttachmentTimeoutsArgs] = None) -> IsSubnetRoutingTableAttachment
    func GetIsSubnetRoutingTableAttachment(ctx *Context, name string, id IDInput, state *IsSubnetRoutingTableAttachmentState, opts ...ResourceOption) (*IsSubnetRoutingTableAttachment, error)
    public static IsSubnetRoutingTableAttachment Get(string name, Input<string> id, IsSubnetRoutingTableAttachmentState? state, CustomResourceOptions? opts = null)
    public static IsSubnetRoutingTableAttachment get(String name, Output<String> id, IsSubnetRoutingTableAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsSubnetRoutingTableAttachment    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:
    IsDefault bool
    (Boolean) Indicates whether this is the default routing table for this VPC.
    IsSubnetRoutingTableAttachmentId string
    (String) The unique identifier for this subnet.
    LifecycleState string
    (String) The lifecycle state of the routing table.
    Name string
    (String) The user-defined name for this subnet.
    ResourceGroups List<IsSubnetRoutingTableAttachmentResourceGroup>
    The resource group for this volume.
    ResourceType string
    (String) The resource type.
    RouteDirectLinkIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    RouteTransitGatewayIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    RouteVpcZoneIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    Routes List<IsSubnetRoutingTableAttachmentRoute>
    (List) The routes for this routing table.
    RoutingTable string
    The routing table identity.
    RoutingTableCrn string

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    Subnet string
    The subnet identifier.
    Subnets List<IsSubnetRoutingTableAttachmentSubnet>
    (List) The subnets to which this routing table is attached.
    Timeouts IsSubnetRoutingTableAttachmentTimeouts
    IsDefault bool
    (Boolean) Indicates whether this is the default routing table for this VPC.
    IsSubnetRoutingTableAttachmentId string
    (String) The unique identifier for this subnet.
    LifecycleState string
    (String) The lifecycle state of the routing table.
    Name string
    (String) The user-defined name for this subnet.
    ResourceGroups []IsSubnetRoutingTableAttachmentResourceGroupArgs
    The resource group for this volume.
    ResourceType string
    (String) The resource type.
    RouteDirectLinkIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    RouteTransitGatewayIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    RouteVpcZoneIngress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    Routes []IsSubnetRoutingTableAttachmentRouteArgs
    (List) The routes for this routing table.
    RoutingTable string
    The routing table identity.
    RoutingTableCrn string

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    Subnet string
    The subnet identifier.
    Subnets []IsSubnetRoutingTableAttachmentSubnetArgs
    (List) The subnets to which this routing table is attached.
    Timeouts IsSubnetRoutingTableAttachmentTimeoutsArgs
    isDefault Boolean
    (Boolean) Indicates whether this is the default routing table for this VPC.
    isSubnetRoutingTableAttachmentId String
    (String) The unique identifier for this subnet.
    lifecycleState String
    (String) The lifecycle state of the routing table.
    name String
    (String) The user-defined name for this subnet.
    resourceGroups List<IsSubnetRoutingTableAttachmentResourceGroup>
    The resource group for this volume.
    resourceType String
    (String) The resource type.
    routeDirectLinkIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routeTransitGatewayIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    routeVpcZoneIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes List<IsSubnetRoutingTableAttachmentRoute>
    (List) The routes for this routing table.
    routingTable String
    The routing table identity.
    routingTableCrn String

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    subnet String
    The subnet identifier.
    subnets List<IsSubnetRoutingTableAttachmentSubnet>
    (List) The subnets to which this routing table is attached.
    timeouts IsSubnetRoutingTableAttachmentTimeouts
    isDefault boolean
    (Boolean) Indicates whether this is the default routing table for this VPC.
    isSubnetRoutingTableAttachmentId string
    (String) The unique identifier for this subnet.
    lifecycleState string
    (String) The lifecycle state of the routing table.
    name string
    (String) The user-defined name for this subnet.
    resourceGroups IsSubnetRoutingTableAttachmentResourceGroup[]
    The resource group for this volume.
    resourceType string
    (String) The resource type.
    routeDirectLinkIngress boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routeTransitGatewayIngress boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    routeVpcZoneIngress boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes IsSubnetRoutingTableAttachmentRoute[]
    (List) The routes for this routing table.
    routingTable string
    The routing table identity.
    routingTableCrn string

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    subnet string
    The subnet identifier.
    subnets IsSubnetRoutingTableAttachmentSubnet[]
    (List) The subnets to which this routing table is attached.
    timeouts IsSubnetRoutingTableAttachmentTimeouts
    is_default bool
    (Boolean) Indicates whether this is the default routing table for this VPC.
    is_subnet_routing_table_attachment_id str
    (String) The unique identifier for this subnet.
    lifecycle_state str
    (String) The lifecycle state of the routing table.
    name str
    (String) The user-defined name for this subnet.
    resource_groups Sequence[IsSubnetRoutingTableAttachmentResourceGroupArgs]
    The resource group for this volume.
    resource_type str
    (String) The resource type.
    route_direct_link_ingress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    route_transit_gateway_ingress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    route_vpc_zone_ingress bool
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes Sequence[IsSubnetRoutingTableAttachmentRouteArgs]
    (List) The routes for this routing table.
    routing_table str
    The routing table identity.
    routing_table_crn str

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    subnet str
    The subnet identifier.
    subnets Sequence[IsSubnetRoutingTableAttachmentSubnetArgs]
    (List) The subnets to which this routing table is attached.
    timeouts IsSubnetRoutingTableAttachmentTimeoutsArgs
    isDefault Boolean
    (Boolean) Indicates whether this is the default routing table for this VPC.
    isSubnetRoutingTableAttachmentId String
    (String) The unique identifier for this subnet.
    lifecycleState String
    (String) The lifecycle state of the routing table.
    name String
    (String) The user-defined name for this subnet.
    resourceGroups List<Property Map>
    The resource group for this volume.
    resourceType String
    (String) The resource type.
    routeDirectLinkIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routeTransitGatewayIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
    routeVpcZoneIngress Boolean
    (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
    routes List<Property Map>
    (List) The routes for this routing table.
    routingTable String
    The routing table identity.
    routingTableCrn String

    The routing table crn associated with the subnet.

    Note routing_table and routing_table_crn are mutually exclusive.

    subnet String
    The subnet identifier.
    subnets List<Property Map>
    (List) The subnets to which this routing table is attached.
    timeouts Property Map

    Supporting Types

    IsSubnetRoutingTableAttachmentResourceGroup, IsSubnetRoutingTableAttachmentResourceGroupArgs

    Href string
    (List) The URL for this route.
    Id string
    (String) The unique identifier for this subnet.
    Name string
    (String) The user-defined name for this subnet.
    Href string
    (List) The URL for this route.
    Id string
    (String) The unique identifier for this subnet.
    Name string
    (String) The user-defined name for this subnet.
    href String
    (List) The URL for this route.
    id String
    (String) The unique identifier for this subnet.
    name String
    (String) The user-defined name for this subnet.
    href string
    (List) The URL for this route.
    id string
    (String) The unique identifier for this subnet.
    name string
    (String) The user-defined name for this subnet.
    href str
    (List) The URL for this route.
    id str
    (String) The unique identifier for this subnet.
    name str
    (String) The user-defined name for this subnet.
    href String
    (List) The URL for this route.
    id String
    (String) The unique identifier for this subnet.
    name String
    (String) The user-defined name for this subnet.

    IsSubnetRoutingTableAttachmentRoute, IsSubnetRoutingTableAttachmentRouteArgs

    Id string
    (String) The unique identifier for this subnet.
    Name string
    (String) The user-defined name for this subnet.
    Id string
    (String) The unique identifier for this subnet.
    Name string
    (String) The user-defined name for this subnet.
    id String
    (String) The unique identifier for this subnet.
    name String
    (String) The user-defined name for this subnet.
    id string
    (String) The unique identifier for this subnet.
    name string
    (String) The user-defined name for this subnet.
    id str
    (String) The unique identifier for this subnet.
    name str
    (String) The user-defined name for this subnet.
    id String
    (String) The unique identifier for this subnet.
    name String
    (String) The user-defined name for this subnet.

    IsSubnetRoutingTableAttachmentSubnet, IsSubnetRoutingTableAttachmentSubnetArgs

    Id string
    (String) The unique identifier for this subnet.
    Name string
    (String) The user-defined name for this subnet.
    Id string
    (String) The unique identifier for this subnet.
    Name string
    (String) The user-defined name for this subnet.
    id String
    (String) The unique identifier for this subnet.
    name String
    (String) The user-defined name for this subnet.
    id string
    (String) The unique identifier for this subnet.
    name string
    (String) The user-defined name for this subnet.
    id str
    (String) The unique identifier for this subnet.
    name str
    (String) The user-defined name for this subnet.
    id String
    (String) The unique identifier for this subnet.
    name String
    (String) The user-defined name for this subnet.

    IsSubnetRoutingTableAttachmentTimeouts, IsSubnetRoutingTableAttachmentTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    The ibm_is_subnet_routing_table_attachment resource can be imported by using the subnet ID.

    Syntax

    $ pulumi import ibm:index/isSubnetRoutingTableAttachment:IsSubnetRoutingTableAttachment example <subnet_ID>
    

    Example

    $ pulumi import ibm:index/isSubnetRoutingTableAttachment:IsSubnetRoutingTableAttachment example d7bec597-4726-451f-8a63-1111e6f19c32c
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud