oci.Core.RouteTable
Explore with Pulumi AI
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=[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: "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
The RouteTable resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment to contain the route table.
- Vcn
Id 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
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Route
Rules List<RouteTable Route Rule> - (Updatable) The collection of rules used for routing destination IPs to network devices.
- Compartment
Id string - (Updatable) The OCID of the compartment to contain the route table.
- Vcn
Id 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
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Route
Rules []RouteTable Route Rule Args - (Updatable) The collection of rules used for routing destination IPs to network devices.
- compartment
Id String - (Updatable) The OCID of the compartment to contain the route table.
- vcn
Id 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
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- route
Rules List<RouteTable Route Rule> - (Updatable) The collection of rules used for routing destination IPs to network devices.
- compartment
Id string - (Updatable) The OCID of the compartment to contain the route table.
- vcn
Id 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
- {[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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- route
Rules RouteTable Route Rule[] - (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
- 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.
- 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.Route Table Route Rule Args] - (Updatable) The collection of rules used for routing destination IPs to network devices.
- compartment
Id String - (Updatable) The OCID of the compartment to contain the route table.
- vcn
Id 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
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- route
Rules 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.
- Time
Created 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.
- Time
Created 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.
- time
Created 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.
- time
Created 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.
- time
Created 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.
- Compartment
Id string - (Updatable) The OCID of the compartment to contain the route table.
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Route
Rules List<RouteTable Route Rule> - (Updatable) The collection of rules used for routing destination IPs to network devices.
- State string
- The route table's current state.
- Time
Created string - The date and time the route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vcn
Id 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 string - (Updatable) The OCID of the compartment to contain the route table.
- 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Route
Rules []RouteTable Route Rule Args - (Updatable) The collection of rules used for routing destination IPs to network devices.
- State string
- The route table's current state.
- Time
Created string - The date and time the route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Vcn
Id 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 String - (Updatable) The OCID of the compartment to contain the route table.
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- route
Rules List<RouteTable Route Rule> - (Updatable) The collection of rules used for routing destination IPs to network devices.
- state String
- The route table's current state.
- time
Created String - The date and time the route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id 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 string - (Updatable) The OCID of the compartment to contain the route table.
- {[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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- route
Rules RouteTable Route Rule[] - (Updatable) The collection of rules used for routing destination IPs to network devices.
- state string
- The route table's current state.
- time
Created string - The date and time the route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id 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.
- 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.
- 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.Route Table Route Rule Args] - (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
- compartment
Id String - (Updatable) The OCID of the compartment to contain the route table.
- 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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- route
Rules List<Property Map> - (Updatable) The collection of rules used for routing destination IPs to network devices.
- state String
- The route table's current state.
- time
Created String - The date and time the route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- vcn
Id 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
- Network
Entity stringId - (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
- Cidr
Block string (Updatable) Deprecated. Instead use
destination
anddestinationType
. Requests that include bothcidrBlock
anddestination
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
- 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
or2001: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 particularService
through a service gateway. For example:oci-phx-objectstorage
.
- IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example:
- Destination
Type string - (Updatable) Type of destination for the rule. Required if you provide a
destination
.CIDR_BLOCK
: If the rule'sdestination
is an IP address range in CIDR notation.SERVICE_CIDR_BLOCK
: If the rule'sdestination
is thecidrBlock
value for a Service (the rule is for traffic destined for a particularService
through a service gateway).
- Route
Type 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 stringId - (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
- Cidr
Block string (Updatable) Deprecated. Instead use
destination
anddestinationType
. Requests that include bothcidrBlock
anddestination
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
- 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
or2001: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 particularService
through a service gateway. For example:oci-phx-objectstorage
.
- IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example:
- Destination
Type string - (Updatable) Type of destination for the rule. Required if you provide a
destination
.CIDR_BLOCK
: If the rule'sdestination
is an IP address range in CIDR notation.SERVICE_CIDR_BLOCK
: If the rule'sdestination
is thecidrBlock
value for a Service (the rule is for traffic destined for a particularService
through a service gateway).
- Route
Type 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 StringId - (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
- cidr
Block String (Updatable) Deprecated. Instead use
destination
anddestinationType
. Requests that include bothcidrBlock
anddestination
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
- 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
or2001: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 particularService
through a service gateway. For example:oci-phx-objectstorage
.
- IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example:
- destination
Type String - (Updatable) Type of destination for the rule. Required if you provide a
destination
.CIDR_BLOCK
: If the rule'sdestination
is an IP address range in CIDR notation.SERVICE_CIDR_BLOCK
: If the rule'sdestination
is thecidrBlock
value for a Service (the rule is for traffic destined for a particularService
through a service gateway).
- route
Type 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 stringId - (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
- cidr
Block string (Updatable) Deprecated. Instead use
destination
anddestinationType
. Requests that include bothcidrBlock
anddestination
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
- 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
or2001: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 particularService
through a service gateway. For example:oci-phx-objectstorage
.
- IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example:
- destination
Type string - (Updatable) Type of destination for the rule. Required if you provide a
destination
.CIDR_BLOCK
: If the rule'sdestination
is an IP address range in CIDR notation.SERVICE_CIDR_BLOCK
: If the rule'sdestination
is thecidrBlock
value for a Service (the rule is for traffic destined for a particularService
through a service gateway).
- route
Type 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_ strid - (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
anddestinationType
. Requests that include bothcidrBlock
anddestination
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
- 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
or2001: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 particularService
through a service gateway. For example:oci-phx-objectstorage
.
- IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example:
- destination_
type str - (Updatable) Type of destination for the rule. Required if you provide a
destination
.CIDR_BLOCK
: If the rule'sdestination
is an IP address range in CIDR notation.SERVICE_CIDR_BLOCK
: If the rule'sdestination
is thecidrBlock
value for a Service (the rule is for traffic destined for a particularService
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.
- network
Entity StringId - (Updatable) The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables.
- cidr
Block String (Updatable) Deprecated. Instead use
destination
anddestinationType
. Requests that include bothcidrBlock
anddestination
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
- 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
or2001: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 particularService
through a service gateway. For example:oci-phx-objectstorage
.
- IP address range in CIDR notation. Can be an IPv4 CIDR block or IPv6 prefix. For example:
- destination
Type String - (Updatable) Type of destination for the rule. Required if you provide a
destination
.CIDR_BLOCK
: If the rule'sdestination
is an IP address range in CIDR notation.SERVICE_CIDR_BLOCK
: If the rule'sdestination
is thecidrBlock
value for a Service (the rule is for traffic destined for a particularService
through a service gateway).
- route
Type 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.