oci.Core.DefaultRouteTable
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[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:
- ManageDefault stringResource Id 
- CompartmentId string
- Dictionary<string, string>
- DisplayName string
- Dictionary<string, string>
- RouteRules List<DefaultRoute Table Route Rule> 
- ManageDefault stringResource Id 
- CompartmentId string
- map[string]string
- DisplayName string
- map[string]string
- RouteRules []DefaultRoute Table Route Rule Args 
- manageDefault StringResource Id 
- compartmentId String
- Map<String,String>
- displayName String
- Map<String,String>
- routeRules List<DefaultRoute Table Route Rule> 
- manageDefault stringResource Id 
- compartmentId string
- {[key: string]: string}
- displayName string
- {[key: string]: string}
- routeRules DefaultRoute Table Route Rule[] 
- manage_default_ strresource_ id 
- compartment_id str
- Mapping[str, str]
- display_name str
- Mapping[str, str]
- route_rules Sequence[DefaultRoute Table Route Rule Args] 
- manageDefault StringResource Id 
- compartmentId String
- Map<String>
- displayName String
- Map<String>
- routeRules 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
- TimeCreated string
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- TimeCreated string
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- timeCreated String
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- timeCreated 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
- timeCreated 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[DefaultRouteTableRouteRuleArgs]] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> DefaultRouteTablefunc 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)resources:  _:    type: oci:Core:DefaultRouteTable    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CompartmentId string
- Dictionary<string, string>
- DisplayName string
- Dictionary<string, string>
- ManageDefault stringResource Id 
- RouteRules List<DefaultRoute Table Route Rule> 
- State string
- TimeCreated string
- CompartmentId string
- map[string]string
- DisplayName string
- map[string]string
- ManageDefault stringResource Id 
- RouteRules []DefaultRoute Table Route Rule Args 
- State string
- TimeCreated string
- compartmentId String
- Map<String,String>
- displayName String
- Map<String,String>
- manageDefault StringResource Id 
- routeRules List<DefaultRoute Table Route Rule> 
- state String
- timeCreated String
- compartmentId string
- {[key: string]: string}
- displayName string
- {[key: string]: string}
- manageDefault stringResource Id 
- routeRules DefaultRoute Table Route Rule[] 
- state string
- timeCreated string
- compartment_id str
- Mapping[str, str]
- display_name str
- Mapping[str, str]
- manage_default_ strresource_ id 
- route_rules Sequence[DefaultRoute Table Route Rule Args] 
- state str
- time_created str
- compartmentId String
- Map<String>
- displayName String
- Map<String>
- manageDefault StringResource Id 
- routeRules List<Property Map>
- state String
- timeCreated String
Supporting Types
DefaultRouteTableRouteRule, DefaultRouteTableRouteRuleArgs          
- NetworkEntity stringId 
- CidrBlock string
- Description string
- Destination string
- DestinationType string
- RouteType string
- NetworkEntity stringId 
- CidrBlock string
- Description string
- Destination string
- DestinationType string
- RouteType string
- networkEntity StringId 
- cidrBlock String
- description String
- destination String
- destinationType String
- routeType String
- networkEntity stringId 
- cidrBlock string
- description string
- destination string
- destinationType string
- routeType string
- network_entity_ strid 
- cidr_block str
- description str
- destination str
- destination_type str
- route_type str
- networkEntity StringId 
- cidrBlock String
- description String
- destination String
- destinationType String
- routeType String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
