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

oci.Core.getDrgRouteTableRouteRules

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    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: oci_core_drg_route_table.test_drg_route_table.id,
        routeType: _var.drg_route_table_route_rule_route_type,
    });
    
    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=oci_core_drg_route_table["test_drg_route_table"]["id"],
        route_type=var["drg_route_table_route_rule_route_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.GetDrgRouteTableRouteRules(ctx, &core.GetDrgRouteTableRouteRulesArgs{
    			DrgRouteTableId: oci_core_drg_route_table.Test_drg_route_table.Id,
    			RouteType:       pulumi.StringRef(_var.Drg_route_table_route_rule_route_type),
    		}, 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 = oci_core_drg_route_table.Test_drg_route_table.Id,
            RouteType = @var.Drg_route_table_route_rule_route_type,
        });
    
    });
    
    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(oci_core_drg_route_table.test_drg_route_table().id())
                .routeType(var_.drg_route_table_route_rule_route_type())
                .build());
    
        }
    }
    
    variables:
      testDrgRouteTableRouteRules:
        fn::invoke:
          Function: oci:Core:getDrgRouteTableRouteRules
          Arguments:
            drgRouteTableId: ${oci_core_drg_route_table.test_drg_route_table.id}
            routeType: ${var.drg_route_table_route_rule_route_type}
    

    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[_core.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[_core.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getDrgRouteTableRouteRules:getDrgRouteTableRouteRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DrgRouteTableId string
    The OCID of the DRG route table.
    Filters List<GetDrgRouteTableRouteRulesFilter>
    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.
    DrgRouteTableId string
    The OCID of the DRG route table.
    Filters []GetDrgRouteTableRouteRulesFilter
    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.
    drgRouteTableId String
    The OCID of the DRG route table.
    filters List<GetDrgRouteTableRouteRulesFilter>
    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.
    drgRouteTableId string
    The OCID of the DRG route table.
    filters GetDrgRouteTableRouteRulesFilter[]
    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_table_id str
    The OCID of the DRG route table.
    filters Sequence[core.GetDrgRouteTableRouteRulesFilter]
    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.
    drgRouteTableId String
    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:

    DrgRouteRules List<GetDrgRouteTableRouteRulesDrgRouteRule>
    The list of drg_route_rules.
    DrgRouteTableId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetDrgRouteTableRouteRulesFilter>
    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.
    DrgRouteRules []GetDrgRouteTableRouteRulesDrgRouteRule
    The list of drg_route_rules.
    DrgRouteTableId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetDrgRouteTableRouteRulesFilter
    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.
    drgRouteRules List<GetDrgRouteTableRouteRulesDrgRouteRule>
    The list of drg_route_rules.
    drgRouteTableId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetDrgRouteTableRouteRulesFilter>
    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.
    drgRouteRules GetDrgRouteTableRouteRulesDrgRouteRule[]
    The list of drg_route_rules.
    drgRouteTableId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetDrgRouteTableRouteRulesFilter[]
    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_rules Sequence[core.GetDrgRouteTableRouteRulesDrgRouteRule]
    The list of drg_route_rules.
    drg_route_table_id str
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[core.GetDrgRouteTableRouteRulesFilter]
    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.
    drgRouteRules List<Property Map>
    The list of drg_route_rules.
    drgRouteTableId String
    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, object>
    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.
    NextHopDrgAttachmentId string
    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]interface{}
    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.
    NextHopDrgAttachmentId string
    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,Object>
    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.
    nextHopDrgAttachmentId String
    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]: any}
    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.
    nextHopDrgAttachmentId string
    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, Any]
    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_drg_attachment_id str
    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<Any>
    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.
    nextHopDrgAttachmentId String
    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

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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