Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getDrgRouteTableRouteRules
Explore with Pulumi AI
This data source provides the list of Drg Route Table Route Rules in Oracle Cloud Infrastructure Core service.
Lists the route rules in the specified DRG route table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgRouteTableRouteRules = oci.Core.getDrgRouteTableRouteRules({
    drgRouteTableId: testDrgRouteTable.id,
    routeType: drgRouteTableRouteRuleRouteType,
});
import pulumi
import pulumi_oci as oci
test_drg_route_table_route_rules = oci.Core.get_drg_route_table_route_rules(drg_route_table_id=test_drg_route_table["id"],
    route_type=drg_route_table_route_rule_route_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.GetDrgRouteTableRouteRules(ctx, &core.GetDrgRouteTableRouteRulesArgs{
			DrgRouteTableId: testDrgRouteTable.Id,
			RouteType:       pulumi.StringRef(drgRouteTableRouteRuleRouteType),
		}, nil)
		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 testDrgRouteTableRouteRules = Oci.Core.GetDrgRouteTableRouteRules.Invoke(new()
    {
        DrgRouteTableId = testDrgRouteTable.Id,
        RouteType = drgRouteTableRouteRuleRouteType,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetDrgRouteTableRouteRulesArgs;
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) {
        final var testDrgRouteTableRouteRules = CoreFunctions.getDrgRouteTableRouteRules(GetDrgRouteTableRouteRulesArgs.builder()
            .drgRouteTableId(testDrgRouteTable.id())
            .routeType(drgRouteTableRouteRuleRouteType)
            .build());
    }
}
variables:
  testDrgRouteTableRouteRules:
    fn::invoke:
      function: oci:Core:getDrgRouteTableRouteRules
      arguments:
        drgRouteTableId: ${testDrgRouteTable.id}
        routeType: ${drgRouteTableRouteRuleRouteType}
Using getDrgRouteTableRouteRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDrgRouteTableRouteRules(args: GetDrgRouteTableRouteRulesArgs, opts?: InvokeOptions): Promise<GetDrgRouteTableRouteRulesResult>
function getDrgRouteTableRouteRulesOutput(args: GetDrgRouteTableRouteRulesOutputArgs, opts?: InvokeOptions): Output<GetDrgRouteTableRouteRulesResult>def get_drg_route_table_route_rules(drg_route_table_id: Optional[str] = None,
                                    filters: Optional[Sequence[GetDrgRouteTableRouteRulesFilter]] = None,
                                    route_type: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDrgRouteTableRouteRulesResult
def get_drg_route_table_route_rules_output(drg_route_table_id: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDrgRouteTableRouteRulesFilterArgs]]]] = None,
                                    route_type: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDrgRouteTableRouteRulesResult]func GetDrgRouteTableRouteRules(ctx *Context, args *GetDrgRouteTableRouteRulesArgs, opts ...InvokeOption) (*GetDrgRouteTableRouteRulesResult, error)
func GetDrgRouteTableRouteRulesOutput(ctx *Context, args *GetDrgRouteTableRouteRulesOutputArgs, opts ...InvokeOption) GetDrgRouteTableRouteRulesResultOutput> Note: This function is named GetDrgRouteTableRouteRules in the Go SDK.
public static class GetDrgRouteTableRouteRules 
{
    public static Task<GetDrgRouteTableRouteRulesResult> InvokeAsync(GetDrgRouteTableRouteRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetDrgRouteTableRouteRulesResult> Invoke(GetDrgRouteTableRouteRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDrgRouteTableRouteRulesResult> getDrgRouteTableRouteRules(GetDrgRouteTableRouteRulesArgs args, InvokeOptions options)
public static Output<GetDrgRouteTableRouteRulesResult> getDrgRouteTableRouteRules(GetDrgRouteTableRouteRulesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getDrgRouteTableRouteRules:getDrgRouteTableRouteRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DrgRoute stringTable Id 
- The OCID of the DRG route table.
- Filters
List<GetDrg Route Table Route Rules Filter> 
- RouteType string
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- DrgRoute stringTable Id 
- The OCID of the DRG route table.
- Filters
[]GetDrg Route Table Route Rules Filter 
- RouteType string
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- drgRoute StringTable Id 
- The OCID of the DRG route table.
- filters
List<GetDrg Route Table Route Rules Filter> 
- routeType String
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- drgRoute stringTable Id 
- The OCID of the DRG route table.
- filters
GetDrg Route Table Route Rules Filter[] 
- routeType string
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- drg_route_ strtable_ id 
- The OCID of the DRG route table.
- filters
Sequence[GetDrg Route Table Route Rules Filter] 
- route_type str
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- drgRoute StringTable Id 
- The OCID of the DRG route table.
- filters List<Property Map>
- routeType String
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
getDrgRouteTableRouteRules Result
The following output properties are available:
- DrgRoute List<GetRules Drg Route Table Route Rules Drg Route Rule> 
- The list of drg_route_rules.
- DrgRoute stringTable Id 
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetDrg Route Table Route Rules Filter> 
- RouteType string
- You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.
- DrgRoute []GetRules Drg Route Table Route Rules Drg Route Rule 
- The list of drg_route_rules.
- DrgRoute stringTable Id 
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetDrg Route Table Route Rules Filter 
- RouteType string
- You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.
- drgRoute List<GetRules Drg Route Table Route Rules Drg Route Rule> 
- The list of drg_route_rules.
- drgRoute StringTable Id 
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetDrg Route Table Route Rules Filter> 
- routeType String
- You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.
- drgRoute GetRules Drg Route Table Route Rules Drg Route Rule[] 
- The list of drg_route_rules.
- drgRoute stringTable Id 
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetDrg Route Table Route Rules Filter[] 
- routeType string
- You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.
- drg_route_ Sequence[Getrules Drg Route Table Route Rules Drg Route Rule] 
- The list of drg_route_rules.
- drg_route_ strtable_ id 
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetDrg Route Table Route Rules Filter] 
- route_type str
- You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.
- drgRoute List<Property Map>Rules 
- The list of drg_route_rules.
- drgRoute StringTable Id 
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- routeType String
- You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.
Supporting Types
GetDrgRouteTableRouteRulesDrgRouteRule        
- Attributes Dictionary<string, string>
- Additional properties for the route, computed by the service.
- Destination string
- Represents the range of IP addresses to match against when routing traffic.
- DestinationType string
- The type of destination for the rule.
- Id string
- The Oracle-assigned ID of the DRG route rule.
- IsBlackhole bool
- Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- IsConflict bool
- Indicates that the route was not imported due to a conflict between route rules.
- NextHop stringDrg Attachment Id 
- The OCID of the next hop DRG attachment responsible for reaching the network destination.
- RouteProvenance string
- The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.
- RouteType string
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- Attributes map[string]string
- Additional properties for the route, computed by the service.
- Destination string
- Represents the range of IP addresses to match against when routing traffic.
- DestinationType string
- The type of destination for the rule.
- Id string
- The Oracle-assigned ID of the DRG route rule.
- IsBlackhole bool
- Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- IsConflict bool
- Indicates that the route was not imported due to a conflict between route rules.
- NextHop stringDrg Attachment Id 
- The OCID of the next hop DRG attachment responsible for reaching the network destination.
- RouteProvenance string
- The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.
- RouteType string
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- attributes Map<String,String>
- Additional properties for the route, computed by the service.
- destination String
- Represents the range of IP addresses to match against when routing traffic.
- destinationType String
- The type of destination for the rule.
- id String
- The Oracle-assigned ID of the DRG route rule.
- isBlackhole Boolean
- Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- isConflict Boolean
- Indicates that the route was not imported due to a conflict between route rules.
- nextHop StringDrg Attachment Id 
- The OCID of the next hop DRG attachment responsible for reaching the network destination.
- routeProvenance String
- The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.
- routeType String
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- attributes {[key: string]: string}
- Additional properties for the route, computed by the service.
- destination string
- Represents the range of IP addresses to match against when routing traffic.
- destinationType string
- The type of destination for the rule.
- id string
- The Oracle-assigned ID of the DRG route rule.
- isBlackhole boolean
- Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- isConflict boolean
- Indicates that the route was not imported due to a conflict between route rules.
- nextHop stringDrg Attachment Id 
- The OCID of the next hop DRG attachment responsible for reaching the network destination.
- routeProvenance string
- The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.
- routeType string
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- attributes Mapping[str, str]
- Additional properties for the route, computed by the service.
- destination str
- Represents the range of IP addresses to match against when routing traffic.
- destination_type str
- The type of destination for the rule.
- id str
- The Oracle-assigned ID of the DRG route rule.
- is_blackhole bool
- Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- is_conflict bool
- Indicates that the route was not imported due to a conflict between route rules.
- next_hop_ strdrg_ attachment_ id 
- The OCID of the next hop DRG attachment responsible for reaching the network destination.
- route_provenance str
- The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.
- route_type str
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
- attributes Map<String>
- Additional properties for the route, computed by the service.
- destination String
- Represents the range of IP addresses to match against when routing traffic.
- destinationType String
- The type of destination for the rule.
- id String
- The Oracle-assigned ID of the DRG route rule.
- isBlackhole Boolean
- Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- isConflict Boolean
- Indicates that the route was not imported due to a conflict between route rules.
- nextHop StringDrg Attachment Id 
- The OCID of the next hop DRG attachment responsible for reaching the network destination.
- routeProvenance String
- The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.
- routeType String
- Static routes are specified through the DRG route table API. Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
GetDrgRouteTableRouteRulesFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.