Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_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:
- Drg
Route stringTable Id - The OCID of the DRG route table.
- Filters
List<Get
Drg Route Table Route Rules Filter> - Route
Type 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 stringTable Id - The OCID of the DRG route table.
- Filters
[]Get
Drg Route Table Route Rules Filter - Route
Type 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 StringTable Id - The OCID of the DRG route table.
- filters
List<Get
Drg Route Table Route Rules Filter> - route
Type 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 stringTable Id - The OCID of the DRG route table.
- filters
Get
Drg Route Table Route Rules Filter[] - route
Type 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[core.
Get Drg 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.
- drg
Route StringTable Id - The OCID of the DRG route table.
- filters List<Property Map>
- route
Type 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:
- Drg
Route List<GetRules Drg Route Table Route Rules Drg Route Rule> - The list of drg_route_rules.
- Drg
Route stringTable Id - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Drg Route Table Route Rules Filter> - Route
Type 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 []GetRules Drg Route Table Route Rules Drg Route Rule - The list of drg_route_rules.
- Drg
Route stringTable Id - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Drg Route Table Route Rules Filter - Route
Type 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 List<GetRules Drg Route Table Route Rules Drg Route Rule> - The list of drg_route_rules.
- drg
Route StringTable Id - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Drg Route Table Route Rules Filter> - route
Type 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 GetRules Drg Route Table Route Rules Drg Route Rule[] - The list of drg_route_rules.
- drg
Route stringTable Id - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Drg Route Table Route Rules Filter[] - route
Type 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[core.rules Get 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[core.
Get Drg 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.
- drg
Route List<Property Map>Rules - The list of drg_route_rules.
- drg
Route StringTable Id - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- route
Type 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.
- Destination
Type string - The type of destination for the rule.
- Id string
- 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 stringDrg Attachment Id - The OCID of the next hop DRG attachment responsible for reaching the network destination.
- Route
Provenance 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. - Route
Type 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.
- Destination
Type string - The type of destination for the rule.
- Id string
- 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 stringDrg Attachment Id - The OCID of the next hop DRG attachment responsible for reaching the network destination.
- Route
Provenance 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. - Route
Type 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.
- destination
Type String - The type of destination for the rule.
- id String
- The Oracle-assigned ID of the DRG route rule.
- is
Blackhole Boolean - Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- is
Conflict Boolean - Indicates that the route was not imported due to a conflict between route rules.
- next
Hop StringDrg Attachment Id - The OCID of the next hop DRG attachment responsible for reaching the network destination.
- route
Provenance 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. - route
Type 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.
- destination
Type string - The type of destination for the rule.
- id string
- The Oracle-assigned ID of the DRG route rule.
- is
Blackhole boolean - Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- is
Conflict boolean - Indicates that the route was not imported due to a conflict between route rules.
- next
Hop stringDrg Attachment Id - The OCID of the next hop DRG attachment responsible for reaching the network destination.
- route
Provenance 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. - route
Type 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.
- destination
Type String - The type of destination for the rule.
- id String
- The Oracle-assigned ID of the DRG route rule.
- is
Blackhole Boolean - Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
- is
Conflict Boolean - Indicates that the route was not imported due to a conflict between route rules.
- next
Hop StringDrg Attachment Id - The OCID of the next hop DRG attachment responsible for reaching the network destination.
- route
Provenance 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. - route
Type 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
oci
Terraform Provider.