1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. RouteTable
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Core.RouteTable

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 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("testRouteTable", {
        compartmentId: _var.compartment_id,
        vcnId: oci_core_vcn.test_vcn.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.route_table_display_name,
        freeformTags: {
            Department: "Finance",
        },
        routeRules: [{
            networkEntityId: oci_core_internet_gateway.test_internet_gateway.id,
            cidrBlock: _var.route_table_route_rules_cidr_block,
            description: _var.route_table_route_rules_description,
            destination: _var.route_table_route_rules_destination,
            destinationType: _var.route_table_route_rules_destination_type,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_route_table = oci.core.RouteTable("testRouteTable",
        compartment_id=var["compartment_id"],
        vcn_id=oci_core_vcn["test_vcn"]["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["route_table_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        route_rules=[oci.core.RouteTableRouteRuleArgs(
            network_entity_id=oci_core_internet_gateway["test_internet_gateway"]["id"],
            cidr_block=var["route_table_route_rules_cidr_block"],
            description=var["route_table_route_rules_description"],
            destination=var["route_table_route_rules_destination"],
            destination_type=var["route_table_route_rules_destination_type"],
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewRouteTable(ctx, "testRouteTable", &Core.RouteTableArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			VcnId:         pulumi.Any(oci_core_vcn.Test_vcn.Id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Route_table_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			RouteRules: core.RouteTableRouteRuleArray{
    				&core.RouteTableRouteRuleArgs{
    					NetworkEntityId: pulumi.Any(oci_core_internet_gateway.Test_internet_gateway.Id),
    					CidrBlock:       pulumi.Any(_var.Route_table_route_rules_cidr_block),
    					Description:     pulumi.Any(_var.Route_table_route_rules_description),
    					Destination:     pulumi.Any(_var.Route_table_route_rules_destination),
    					DestinationType: pulumi.Any(_var.Route_table_route_rules_destination_type),
    				},
    			},
    		})
    		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("testRouteTable", new()
        {
            CompartmentId = @var.Compartment_id,
            VcnId = oci_core_vcn.Test_vcn.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Route_table_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            RouteRules = new[]
            {
                new Oci.Core.Inputs.RouteTableRouteRuleArgs
                {
                    NetworkEntityId = oci_core_internet_gateway.Test_internet_gateway.Id,
                    CidrBlock = @var.Route_table_route_rules_cidr_block,
                    Description = @var.Route_table_route_rules_description,
                    Destination = @var.Route_table_route_rules_destination,
                    DestinationType = @var.Route_table_route_rules_destination_type,
                },
            },
        });
    
    });
    
    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(var_.compartment_id())
                .vcnId(oci_core_vcn.test_vcn().id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.route_table_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .routeRules(RouteTableRouteRuleArgs.builder()
                    .networkEntityId(oci_core_internet_gateway.test_internet_gateway().id())
                    .cidrBlock(var_.route_table_route_rules_cidr_block())
                    .description(var_.route_table_route_rules_description())
                    .destination(var_.route_table_route_rules_destination())
                    .destinationType(var_.route_table_route_rules_destination_type())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testRouteTable:
        type: oci:Core:RouteTable
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          vcnId: ${oci_core_vcn.test_vcn.id}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.route_table_display_name}
          freeformTags:
            Department: Finance
          routeRules:
            - networkEntityId: ${oci_core_internet_gateway.test_internet_gateway.id}
              cidrBlock: ${var.route_table_route_rules_cidr_block}
              description: ${var.route_table_route_rules_description}
              destination: ${var.route_table_route_rules_destination}
              destinationType: ${var.route_table_route_rules_destination_type}
    

    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, Any]] = None,
                   display_name: Optional[str] = None,
                   freeform_tags: Optional[Mapping[str, Any]] = 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.

    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", "any" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        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.Map{
    		"string": pulumi.Any("any"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	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", "any"))
        .displayName("string")
        .freeformTags(Map.of("string", "any"))
        .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": "any",
        },
        display_name="string",
        freeform_tags={
            "string": "any",
        },
        route_rules=[oci.core.RouteTableRouteRuleArgs(
            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: "any",
        },
        displayName: "string",
        freeformTags: {
            string: "any",
        },
        routeRules: [{
            networkEntityId: "string",
            description: "string",
            destination: "string",
            destinationType: "string",
            routeType: "string",
        }],
    });
    
    type: oci:Core:RouteTable
    properties:
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        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

    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, object>
    (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, object>
    (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]interface{}
    (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]interface{}
    (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,Object>
    (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,Object>
    (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]: any}
    (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]: any}
    (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, Any]
    (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, Any]
    (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<Any>
    (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<Any>
    (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, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = 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, object>
    (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, object>
    (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]interface{}
    (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]interface{}
    (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,Object>
    (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,Object>
    (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]: any}
    (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]: any}
    (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, Any]
    (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, Any]
    (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<Any>
    (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<Any>
    (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.
    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.
    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.
    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.
    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.
    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.
    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 v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi