1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. RouteTable
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.RouteTable

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Route Table resource in Oracle Cloud Infrastructure Core service.

    Creates a new route table for the specified VCN. In the request you must also include at least one route rule for the new route table. For information on the number of rules you can have in a route table, see Service Limits. For general information about route tables in your VCN and the types of targets you can use in route rules, see Route Tables.

    For the purposes of access control, you must provide the OCID of the compartment where you want the route table to reside. Notice that the route table doesn’t have to be in the same compartment as the VCN, subnets, or other Networking Service components. If you’re not sure which compartment to use, put the route table in the same compartment as the VCN. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.

    You may optionally specify a display name for the route table, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.

    For more information on configuring a VCN’s default route table, see Managing Default VCN Resources

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRouteTable = new oci.core.RouteTable("test_route_table", {
        compartmentId: compartmentId,
        vcnId: testVcn.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: routeTableDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        routeRules: [{
            networkEntityId: testInternetGateway.id,
            cidrBlock: routeTableRouteRulesCidrBlock,
            description: routeTableRouteRulesDescription,
            destination: routeTableRouteRulesDestination,
            destinationType: routeTableRouteRulesDestinationType,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_route_table = oci.core.RouteTable("test_route_table",
        compartment_id=compartment_id,
        vcn_id=test_vcn["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=route_table_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        route_rules=[{
            "network_entity_id": test_internet_gateway["id"],
            "cidr_block": route_table_route_rules_cidr_block,
            "description": route_table_route_rules_description,
            "destination": route_table_route_rules_destination,
            "destination_type": route_table_route_rules_destination_type,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewRouteTable(ctx, "test_route_table", &Core.RouteTableArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			VcnId:         pulumi.Any(testVcn.Id),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			DisplayName: pulumi.Any(routeTableDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			RouteRules: core.RouteTableRouteRuleArray{
    				&core.RouteTableRouteRuleArgs{
    					NetworkEntityId: pulumi.Any(testInternetGateway.Id),
    					CidrBlock:       pulumi.Any(routeTableRouteRulesCidrBlock),
    					Description:     pulumi.Any(routeTableRouteRulesDescription),
    					Destination:     pulumi.Any(routeTableRouteRulesDestination),
    					DestinationType: pulumi.Any(routeTableRouteRulesDestinationType),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testRouteTable = new Oci.Core.RouteTable("test_route_table", new()
        {
            CompartmentId = compartmentId,
            VcnId = testVcn.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = routeTableDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            RouteRules = new[]
            {
                new Oci.Core.Inputs.RouteTableRouteRuleArgs
                {
                    NetworkEntityId = testInternetGateway.Id,
                    CidrBlock = routeTableRouteRulesCidrBlock,
                    Description = routeTableRouteRulesDescription,
                    Destination = routeTableRouteRulesDestination,
                    DestinationType = routeTableRouteRulesDestinationType,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.RouteTable;
    import com.pulumi.oci.Core.RouteTableArgs;
    import com.pulumi.oci.Core.inputs.RouteTableRouteRuleArgs;
    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 testRouteTable = new RouteTable("testRouteTable", RouteTableArgs.builder()
                .compartmentId(compartmentId)
                .vcnId(testVcn.id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(routeTableDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .routeRules(RouteTableRouteRuleArgs.builder()
                    .networkEntityId(testInternetGateway.id())
                    .cidrBlock(routeTableRouteRulesCidrBlock)
                    .description(routeTableRouteRulesDescription)
                    .destination(routeTableRouteRulesDestination)
                    .destinationType(routeTableRouteRulesDestinationType)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testRouteTable:
        type: oci:Core:RouteTable
        name: test_route_table
        properties:
          compartmentId: ${compartmentId}
          vcnId: ${testVcn.id}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${routeTableDisplayName}
          freeformTags:
            Department: Finance
          routeRules:
            - networkEntityId: ${testInternetGateway.id}
              cidrBlock: ${routeTableRouteRulesCidrBlock}
              description: ${routeTableRouteRulesDescription}
              destination: ${routeTableRouteRulesDestination}
              destinationType: ${routeTableRouteRulesDestinationType}
    

    Create RouteTable Resource

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

    Constructor syntax

    new RouteTable(name: string, args: RouteTableArgs, opts?: CustomResourceOptions);
    @overload
    def RouteTable(resource_name: str,
                   args: RouteTableArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def RouteTable(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   compartment_id: Optional[str] = None,
                   vcn_id: Optional[str] = None,
                   defined_tags: Optional[Mapping[str, str]] = None,
                   display_name: Optional[str] = None,
                   freeform_tags: Optional[Mapping[str, str]] = None,
                   route_rules: Optional[Sequence[_core.RouteTableRouteRuleArgs]] = None)
    func NewRouteTable(ctx *Context, name string, args RouteTableArgs, opts ...ResourceOption) (*RouteTable, error)
    public RouteTable(string name, RouteTableArgs args, CustomResourceOptions? opts = null)
    public RouteTable(String name, RouteTableArgs args)
    public RouteTable(String name, RouteTableArgs args, CustomResourceOptions options)
    
    type: oci:Core:RouteTable
    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 RouteTableArgs
    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 RouteTableArgs
    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 RouteTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RouteTableArgs
    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 routeTableResource = new Oci.Core.RouteTable("routeTableResource", new()
    {
        CompartmentId = "string",
        VcnId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        RouteRules = new[]
        {
            new Oci.Core.Inputs.RouteTableRouteRuleArgs
            {
                NetworkEntityId = "string",
                Description = "string",
                Destination = "string",
                DestinationType = "string",
                RouteType = "string",
            },
        },
    });
    
    example, err := Core.NewRouteTable(ctx, "routeTableResource", &Core.RouteTableArgs{
    	CompartmentId: pulumi.String("string"),
    	VcnId:         pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	RouteRules: core.RouteTableRouteRuleArray{
    		&core.RouteTableRouteRuleArgs{
    			NetworkEntityId: pulumi.String("string"),
    			Description:     pulumi.String("string"),
    			Destination:     pulumi.String("string"),
    			DestinationType: pulumi.String("string"),
    			RouteType:       pulumi.String("string"),
    		},
    	},
    })
    
    var routeTableResource = new RouteTable("routeTableResource", RouteTableArgs.builder()
        .compartmentId("string")
        .vcnId("string")
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .routeRules(RouteTableRouteRuleArgs.builder()
            .networkEntityId("string")
            .description("string")
            .destination("string")
            .destinationType("string")
            .routeType("string")
            .build())
        .build());
    
    route_table_resource = oci.core.RouteTable("routeTableResource",
        compartment_id="string",
        vcn_id="string",
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        route_rules=[{
            "network_entity_id": "string",
            "description": "string",
            "destination": "string",
            "destination_type": "string",
            "route_type": "string",
        }])
    
    const routeTableResource = new oci.core.RouteTable("routeTableResource", {
        compartmentId: "string",
        vcnId: "string",
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        routeRules: [{
            networkEntityId: "string",
            description: "string",
            destination: "string",
            destinationType: "string",
            routeType: "string",
        }],
    });
    
    type: oci:Core:RouteTable
    properties:
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        routeRules:
            - description: string
              destination: string
              destinationType: string
              networkEntityId: string
              routeType: string
        vcnId: string
    

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

    CompartmentId string
    (Updatable) The OCID of the compartment to contain the route table.
    VcnId string

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    RouteRules List<RouteTableRouteRule>
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    CompartmentId string
    (Updatable) The OCID of the compartment to contain the route table.
    VcnId string

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    RouteRules []RouteTableRouteRuleArgs
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    compartmentId String
    (Updatable) The OCID of the compartment to contain the route table.
    vcnId String

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    routeRules List<RouteTableRouteRule>
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    compartmentId string
    (Updatable) The OCID of the compartment to contain the route table.
    vcnId string

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    routeRules RouteTableRouteRule[]
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    compartment_id str
    (Updatable) The OCID of the compartment to contain the route table.
    vcn_id str

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    route_rules Sequence[core.RouteTableRouteRuleArgs]
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    compartmentId String
    (Updatable) The OCID of the compartment to contain the route table.
    vcnId String

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    routeRules List<Property Map>
    (Updatable) The collection of rules used for routing destination IPs to network devices.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The route table's current state.
    TimeCreated string
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The route table's current state.
    TimeCreated string
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The route table's current state.
    timeCreated String
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The route table's current state.
    timeCreated string
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The route table's current state.
    time_created str
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The route table's current state.
    timeCreated String
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    Look up Existing RouteTable Resource

    Get an existing RouteTable 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?: RouteTableState, opts?: CustomResourceOptions): RouteTable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            route_rules: Optional[Sequence[_core.RouteTableRouteRuleArgs]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            vcn_id: Optional[str] = None) -> RouteTable
    func GetRouteTable(ctx *Context, name string, id IDInput, state *RouteTableState, opts ...ResourceOption) (*RouteTable, error)
    public static RouteTable Get(string name, Input<string> id, RouteTableState? state, CustomResourceOptions? opts = null)
    public static RouteTable get(String name, Output<String> id, RouteTableState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CompartmentId string
    (Updatable) The OCID of the compartment to contain the route table.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    RouteRules List<RouteTableRouteRule>
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    State string
    The route table's current state.
    TimeCreated string
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    VcnId string

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    (Updatable) The OCID of the compartment to contain the route table.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    RouteRules []RouteTableRouteRuleArgs
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    State string
    The route table's current state.
    TimeCreated string
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    VcnId string

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment to contain the route table.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    routeRules List<RouteTableRouteRule>
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    state String
    The route table's current state.
    timeCreated String
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vcnId String

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    (Updatable) The OCID of the compartment to contain the route table.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    routeRules RouteTableRouteRule[]
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    state string
    The route table's current state.
    timeCreated string
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vcnId string

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    (Updatable) The OCID of the compartment to contain the route table.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    route_rules Sequence[core.RouteTableRouteRuleArgs]
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    state str
    The route table's current state.
    time_created str
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vcn_id str

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment to contain the route table.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    routeRules List<Property Map>
    (Updatable) The collection of rules used for routing destination IPs to network devices.
    state String
    The route table's current state.
    timeCreated String
    The date and time the route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    vcnId String

    The OCID of the VCN the route table belongs to.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    RouteTableRouteRule, RouteTableRouteRuleArgs

    NetworkEntityId string
    (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
    CidrBlock string

    (Updatable) Deprecated. Instead use destination and destinationType. Requests that include both cidrBlock and destination will be rejected.

    A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).

    Cannot be an IPv6 prefix.

    Example: 0.0.0.0/0

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    Description string
    (Updatable) An optional description of your choice for the rule.
    Destination string

    (Updatable) Conceptually, this is the range of IP addresses used for matching when routing traffic. Required if you provide a destinationType.

    Allowed values:

    • IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. If you set this to an IPv6 prefix, the route rule's target can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.
    • The cidrBlock value for a Service, if you're setting up a route rule for traffic destined for a particular Service through a service gateway. For example: oci-phx-objectstorage.
    DestinationType string
    (Updatable) Type of destination for the rule. Required if you provide a destination.

    • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
    • SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).
    RouteType string
    (Updatable) A route rule can be STATIC if manually added to the route table, LOCAL if added by Oracle Cloud Infrastructure to the route table.
    NetworkEntityId string
    (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
    CidrBlock string

    (Updatable) Deprecated. Instead use destination and destinationType. Requests that include both cidrBlock and destination will be rejected.

    A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).

    Cannot be an IPv6 prefix.

    Example: 0.0.0.0/0

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    Description string
    (Updatable) An optional description of your choice for the rule.
    Destination string

    (Updatable) Conceptually, this is the range of IP addresses used for matching when routing traffic. Required if you provide a destinationType.

    Allowed values:

    • IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. If you set this to an IPv6 prefix, the route rule's target can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.
    • The cidrBlock value for a Service, if you're setting up a route rule for traffic destined for a particular Service through a service gateway. For example: oci-phx-objectstorage.
    DestinationType string
    (Updatable) Type of destination for the rule. Required if you provide a destination.

    • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
    • SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).
    RouteType string
    (Updatable) A route rule can be STATIC if manually added to the route table, LOCAL if added by Oracle Cloud Infrastructure to the route table.
    networkEntityId String
    (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
    cidrBlock String

    (Updatable) Deprecated. Instead use destination and destinationType. Requests that include both cidrBlock and destination will be rejected.

    A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).

    Cannot be an IPv6 prefix.

    Example: 0.0.0.0/0

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description String
    (Updatable) An optional description of your choice for the rule.
    destination String

    (Updatable) Conceptually, this is the range of IP addresses used for matching when routing traffic. Required if you provide a destinationType.

    Allowed values:

    • IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. If you set this to an IPv6 prefix, the route rule's target can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.
    • The cidrBlock value for a Service, if you're setting up a route rule for traffic destined for a particular Service through a service gateway. For example: oci-phx-objectstorage.
    destinationType String
    (Updatable) Type of destination for the rule. Required if you provide a destination.

    • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
    • SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).
    routeType String
    (Updatable) A route rule can be STATIC if manually added to the route table, LOCAL if added by Oracle Cloud Infrastructure to the route table.
    networkEntityId string
    (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
    cidrBlock string

    (Updatable) Deprecated. Instead use destination and destinationType. Requests that include both cidrBlock and destination will be rejected.

    A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).

    Cannot be an IPv6 prefix.

    Example: 0.0.0.0/0

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description string
    (Updatable) An optional description of your choice for the rule.
    destination string

    (Updatable) Conceptually, this is the range of IP addresses used for matching when routing traffic. Required if you provide a destinationType.

    Allowed values:

    • IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. If you set this to an IPv6 prefix, the route rule's target can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.
    • The cidrBlock value for a Service, if you're setting up a route rule for traffic destined for a particular Service through a service gateway. For example: oci-phx-objectstorage.
    destinationType string
    (Updatable) Type of destination for the rule. Required if you provide a destination.

    • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
    • SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).
    routeType string
    (Updatable) A route rule can be STATIC if manually added to the route table, LOCAL if added by Oracle Cloud Infrastructure to the route table.
    network_entity_id str
    (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
    cidr_block str

    (Updatable) Deprecated. Instead use destination and destinationType. Requests that include both cidrBlock and destination will be rejected.

    A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).

    Cannot be an IPv6 prefix.

    Example: 0.0.0.0/0

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description str
    (Updatable) An optional description of your choice for the rule.
    destination str

    (Updatable) Conceptually, this is the range of IP addresses used for matching when routing traffic. Required if you provide a destinationType.

    Allowed values:

    • IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. If you set this to an IPv6 prefix, the route rule's target can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.
    • The cidrBlock value for a Service, if you're setting up a route rule for traffic destined for a particular Service through a service gateway. For example: oci-phx-objectstorage.
    destination_type str
    (Updatable) Type of destination for the rule. Required if you provide a destination.

    • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
    • SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).
    route_type str
    (Updatable) A route rule can be STATIC if manually added to the route table, LOCAL if added by Oracle Cloud Infrastructure to the route table.
    networkEntityId String
    (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
    cidrBlock String

    (Updatable) Deprecated. Instead use destination and destinationType. Requests that include both cidrBlock and destination will be rejected.

    A destination IP address range in CIDR notation. Matching packets will be routed to the indicated network entity (the target).

    Cannot be an IPv6 prefix.

    Example: 0.0.0.0/0

    Deprecated: The 'cidr_block' field has been deprecated. Please use 'destination' instead.

    description String
    (Updatable) An optional description of your choice for the rule.
    destination String

    (Updatable) Conceptually, this is the range of IP addresses used for matching when routing traffic. Required if you provide a destinationType.

    Allowed values:

    • IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example: 192.168.1.0/24 or 2001:0db8:0123:45::/56. If you set this to an IPv6 prefix, the route rule's target can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. See IPv6 Addresses.
    • The cidrBlock value for a Service, if you're setting up a route rule for traffic destined for a particular Service through a service gateway. For example: oci-phx-objectstorage.
    destinationType String
    (Updatable) Type of destination for the rule. Required if you provide a destination.

    • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
    • SERVICE_CIDR_BLOCK: If the rule's destination is the cidrBlock value for a Service (the rule is for traffic destined for a particular Service through a service gateway).
    routeType String
    (Updatable) A route rule can be STATIC if manually added to the route table, LOCAL if added by Oracle Cloud Infrastructure to the route table.

    Import

    RouteTables can be imported using the id, e.g.

    $ pulumi import oci:Core/routeTable:RouteTable test_route_table "id"
    

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi