oci.Core.DefaultRouteTable
Explore with Pulumi AI
Create DefaultRouteTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefaultRouteTable(name: string, args: DefaultRouteTableArgs, opts?: CustomResourceOptions);
@overload
def DefaultRouteTable(resource_name: str,
args: DefaultRouteTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DefaultRouteTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
manage_default_resource_id: Optional[str] = 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.DefaultRouteTableRouteRuleArgs]] = None)
func NewDefaultRouteTable(ctx *Context, name string, args DefaultRouteTableArgs, opts ...ResourceOption) (*DefaultRouteTable, error)
public DefaultRouteTable(string name, DefaultRouteTableArgs args, CustomResourceOptions? opts = null)
public DefaultRouteTable(String name, DefaultRouteTableArgs args)
public DefaultRouteTable(String name, DefaultRouteTableArgs args, CustomResourceOptions options)
type: oci:Core:DefaultRouteTable
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 DefaultRouteTableArgs
- 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 DefaultRouteTableArgs
- 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 DefaultRouteTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultRouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultRouteTableArgs
- 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 defaultRouteTableResource = new Oci.Core.DefaultRouteTable("defaultRouteTableResource", new()
{
ManageDefaultResourceId = "string",
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
RouteRules = new[]
{
new Oci.Core.Inputs.DefaultRouteTableRouteRuleArgs
{
NetworkEntityId = "string",
Description = "string",
Destination = "string",
DestinationType = "string",
RouteType = "string",
},
},
});
example, err := Core.NewDefaultRouteTable(ctx, "defaultRouteTableResource", &Core.DefaultRouteTableArgs{
ManageDefaultResourceId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
RouteRules: core.DefaultRouteTableRouteRuleArray{
&core.DefaultRouteTableRouteRuleArgs{
NetworkEntityId: pulumi.String("string"),
Description: pulumi.String("string"),
Destination: pulumi.String("string"),
DestinationType: pulumi.String("string"),
RouteType: pulumi.String("string"),
},
},
})
var defaultRouteTableResource = new DefaultRouteTable("defaultRouteTableResource", DefaultRouteTableArgs.builder()
.manageDefaultResourceId("string")
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.displayName("string")
.freeformTags(Map.of("string", "string"))
.routeRules(DefaultRouteTableRouteRuleArgs.builder()
.networkEntityId("string")
.description("string")
.destination("string")
.destinationType("string")
.routeType("string")
.build())
.build());
default_route_table_resource = oci.core.DefaultRouteTable("defaultRouteTableResource",
manage_default_resource_id="string",
compartment_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 defaultRouteTableResource = new oci.core.DefaultRouteTable("defaultRouteTableResource", {
manageDefaultResourceId: "string",
compartmentId: "string",
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
routeRules: [{
networkEntityId: "string",
description: "string",
destination: "string",
destinationType: "string",
routeType: "string",
}],
});
type: oci:Core:DefaultRouteTable
properties:
compartmentId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
manageDefaultResourceId: string
routeRules:
- description: string
destination: string
destinationType: string
networkEntityId: string
routeType: string
DefaultRouteTable 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 DefaultRouteTable resource accepts the following input properties:
- Manage
Default stringResource Id - Compartment
Id string - Dictionary<string, string>
- Display
Name string - Dictionary<string, string>
- Route
Rules List<DefaultRoute Table Route Rule>
- Manage
Default stringResource Id - Compartment
Id string - map[string]string
- Display
Name string - map[string]string
- Route
Rules []DefaultRoute Table Route Rule Args
- manage
Default StringResource Id - compartment
Id String - Map<String,String>
- display
Name String - Map<String,String>
- route
Rules List<DefaultRoute Table Route Rule>
- manage
Default stringResource Id - compartment
Id string - {[key: string]: string}
- display
Name string - {[key: string]: string}
- route
Rules DefaultRoute Table Route Rule[]
- manage_
default_ strresource_ id - compartment_
id str - Mapping[str, str]
- display_
name str - Mapping[str, str]
- route_
rules Sequence[core.Default Route Table Route Rule Args]
- manage
Default StringResource Id - compartment
Id String - Map<String>
- display
Name String - Map<String>
- route
Rules List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultRouteTable resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Time
Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Time
Created string
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- time
Created String
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- time
Created string
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- time_
created str
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- time
Created String
Look up Existing DefaultRouteTable Resource
Get an existing DefaultRouteTable 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?: DefaultRouteTableState, opts?: CustomResourceOptions): DefaultRouteTable
@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,
manage_default_resource_id: Optional[str] = None,
route_rules: Optional[Sequence[_core.DefaultRouteTableRouteRuleArgs]] = None,
state: Optional[str] = None,
time_created: Optional[str] = None) -> DefaultRouteTable
func GetDefaultRouteTable(ctx *Context, name string, id IDInput, state *DefaultRouteTableState, opts ...ResourceOption) (*DefaultRouteTable, error)
public static DefaultRouteTable Get(string name, Input<string> id, DefaultRouteTableState? state, CustomResourceOptions? opts = null)
public static DefaultRouteTable get(String name, Output<String> id, DefaultRouteTableState 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 - Dictionary<string, string>
- Display
Name string - Dictionary<string, string>
- Manage
Default stringResource Id - Route
Rules List<DefaultRoute Table Route Rule> - State string
- Time
Created string
- Compartment
Id string - map[string]string
- Display
Name string - map[string]string
- Manage
Default stringResource Id - Route
Rules []DefaultRoute Table Route Rule Args - State string
- Time
Created string
- compartment
Id String - Map<String,String>
- display
Name String - Map<String,String>
- manage
Default StringResource Id - route
Rules List<DefaultRoute Table Route Rule> - state String
- time
Created String
- compartment
Id string - {[key: string]: string}
- display
Name string - {[key: string]: string}
- manage
Default stringResource Id - route
Rules DefaultRoute Table Route Rule[] - state string
- time
Created string
- compartment_
id str - Mapping[str, str]
- display_
name str - Mapping[str, str]
- manage_
default_ strresource_ id - route_
rules Sequence[core.Default Route Table Route Rule Args] - state str
- time_
created str
- compartment
Id String - Map<String>
- display
Name String - Map<String>
- manage
Default StringResource Id - route
Rules List<Property Map> - state String
- time
Created String
Supporting Types
DefaultRouteTableRouteRule, DefaultRouteTableRouteRuleArgs
- Network
Entity stringId - Cidr
Block string - Description string
- Destination string
- Destination
Type string - Route
Type string
- Network
Entity stringId - Cidr
Block string - Description string
- Destination string
- Destination
Type string - Route
Type string
- network
Entity StringId - cidr
Block String - description String
- destination String
- destination
Type String - route
Type String
- network
Entity stringId - cidr
Block string - description string
- destination string
- destination
Type string - route
Type string
- network_
entity_ strid - cidr_
block str - description str
- destination str
- destination_
type str - route_
type str
- network
Entity StringId - cidr
Block String - description String
- destination String
- destination
Type String - route
Type String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.