Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getDrgRouteTables
Explore with Pulumi AI
This data source provides the list of Drg Route Tables in Oracle Cloud Infrastructure Core service.
Lists the DRG route tables for the specified DRG.
Use the ListDrgRouteRules
operation to retrieve the route rules in a table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgRouteTables = oci.Core.getDrgRouteTables({
drgId: testDrg.id,
displayName: drgRouteTableDisplayName,
importDrgRouteDistributionId: testDrgRouteDistribution.id,
state: drgRouteTableState,
});
import pulumi
import pulumi_oci as oci
test_drg_route_tables = oci.Core.get_drg_route_tables(drg_id=test_drg["id"],
display_name=drg_route_table_display_name,
import_drg_route_distribution_id=test_drg_route_distribution["id"],
state=drg_route_table_state)
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.GetDrgRouteTables(ctx, &core.GetDrgRouteTablesArgs{
DrgId: testDrg.Id,
DisplayName: pulumi.StringRef(drgRouteTableDisplayName),
ImportDrgRouteDistributionId: pulumi.StringRef(testDrgRouteDistribution.Id),
State: pulumi.StringRef(drgRouteTableState),
}, 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 testDrgRouteTables = Oci.Core.GetDrgRouteTables.Invoke(new()
{
DrgId = testDrg.Id,
DisplayName = drgRouteTableDisplayName,
ImportDrgRouteDistributionId = testDrgRouteDistribution.Id,
State = drgRouteTableState,
});
});
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.GetDrgRouteTablesArgs;
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 testDrgRouteTables = CoreFunctions.getDrgRouteTables(GetDrgRouteTablesArgs.builder()
.drgId(testDrg.id())
.displayName(drgRouteTableDisplayName)
.importDrgRouteDistributionId(testDrgRouteDistribution.id())
.state(drgRouteTableState)
.build());
}
}
variables:
testDrgRouteTables:
fn::invoke:
Function: oci:Core:getDrgRouteTables
Arguments:
drgId: ${testDrg.id}
displayName: ${drgRouteTableDisplayName}
importDrgRouteDistributionId: ${testDrgRouteDistribution.id}
state: ${drgRouteTableState}
Using getDrgRouteTables
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 getDrgRouteTables(args: GetDrgRouteTablesArgs, opts?: InvokeOptions): Promise<GetDrgRouteTablesResult>
function getDrgRouteTablesOutput(args: GetDrgRouteTablesOutputArgs, opts?: InvokeOptions): Output<GetDrgRouteTablesResult>
def get_drg_route_tables(display_name: Optional[str] = None,
drg_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetDrgRouteTablesFilter]] = None,
import_drg_route_distribution_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDrgRouteTablesResult
def get_drg_route_tables_output(display_name: Optional[pulumi.Input[str]] = None,
drg_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetDrgRouteTablesFilterArgs]]]] = None,
import_drg_route_distribution_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDrgRouteTablesResult]
func GetDrgRouteTables(ctx *Context, args *GetDrgRouteTablesArgs, opts ...InvokeOption) (*GetDrgRouteTablesResult, error)
func GetDrgRouteTablesOutput(ctx *Context, args *GetDrgRouteTablesOutputArgs, opts ...InvokeOption) GetDrgRouteTablesResultOutput
> Note: This function is named GetDrgRouteTables
in the Go SDK.
public static class GetDrgRouteTables
{
public static Task<GetDrgRouteTablesResult> InvokeAsync(GetDrgRouteTablesArgs args, InvokeOptions? opts = null)
public static Output<GetDrgRouteTablesResult> Invoke(GetDrgRouteTablesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDrgRouteTablesResult> getDrgRouteTables(GetDrgRouteTablesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getDrgRouteTables:getDrgRouteTables
arguments:
# arguments dictionary
The following arguments are supported:
- Drg
Id string - The OCID of the DRG.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Drg Route Tables Filter> - Import
Drg stringRoute Distribution Id - The OCID of the import route distribution.
- State string
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- Drg
Id string - The OCID of the DRG.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Drg Route Tables Filter - Import
Drg stringRoute Distribution Id - The OCID of the import route distribution.
- State string
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- drg
Id String - The OCID of the DRG.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Drg Route Tables Filter> - import
Drg StringRoute Distribution Id - The OCID of the import route distribution.
- state String
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- drg
Id string - The OCID of the DRG.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Drg Route Tables Filter[] - import
Drg stringRoute Distribution Id - The OCID of the import route distribution.
- state string
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- drg_
id str - The OCID of the DRG.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[core.
Get Drg Route Tables Filter] - import_
drg_ strroute_ distribution_ id - The OCID of the import route distribution.
- state str
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- drg
Id String - The OCID of the DRG.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- import
Drg StringRoute Distribution Id - The OCID of the import route distribution.
- state String
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
getDrgRouteTables Result
The following output properties are available:
- Drg
Id string - The OCID of the DRG the DRG that contains this route table.
- Drg
Route List<GetTables Drg Route Tables Drg Route Table> - The list of drg_route_tables.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Drg Route Tables Filter> - Import
Drg stringRoute Distribution Id - The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
- State string
- The DRG route table's current state.
- Drg
Id string - The OCID of the DRG the DRG that contains this route table.
- Drg
Route []GetTables Drg Route Tables Drg Route Table - The list of drg_route_tables.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Drg Route Tables Filter - Import
Drg stringRoute Distribution Id - The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
- State string
- The DRG route table's current state.
- drg
Id String - The OCID of the DRG the DRG that contains this route table.
- drg
Route List<GetTables Drg Route Tables Drg Route Table> - The list of drg_route_tables.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Drg Route Tables Filter> - import
Drg StringRoute Distribution Id - The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
- state String
- The DRG route table's current state.
- drg
Id string - The OCID of the DRG the DRG that contains this route table.
- drg
Route GetTables Drg Route Tables Drg Route Table[] - The list of drg_route_tables.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Drg Route Tables Filter[] - import
Drg stringRoute Distribution Id - The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
- state string
- The DRG route table's current state.
- drg_
id str - The OCID of the DRG the DRG that contains this route table.
- drg_
route_ Sequence[core.tables Get Drg Route Tables Drg Route Table] - The list of drg_route_tables.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[core.
Get Drg Route Tables Filter] - import_
drg_ strroute_ distribution_ id - The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
- state str
- The DRG route table's current state.
- drg
Id String - The OCID of the DRG the DRG that contains this route table.
- drg
Route List<Property Map>Tables - The list of drg_route_tables.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- import
Drg StringRoute Distribution Id - The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
- state String
- The DRG route table's current state.
Supporting Types
GetDrgRouteTablesDrgRouteTable
- Compartment
Id string - The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Drg
Id string - The OCID of the DRG.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the DRG route table.
- Import
Drg stringRoute Distribution Id - The OCID of the import route distribution.
- Is
Ecmp boolEnabled - If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.
- Remove
Import boolTrigger - State string
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- Time
Created string - The date and time the DRG route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Drg
Id string - The OCID of the DRG.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the DRG route table.
- Import
Drg stringRoute Distribution Id - The OCID of the import route distribution.
- Is
Ecmp boolEnabled - If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.
- Remove
Import boolTrigger - State string
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- Time
Created string - The date and time the DRG route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A filter to return only resources that match the given display name exactly.
- drg
Id String - The OCID of the DRG.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the DRG route table.
- import
Drg StringRoute Distribution Id - The OCID of the import route distribution.
- is
Ecmp BooleanEnabled - If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.
- remove
Import BooleanTrigger - state String
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- time
Created String - The date and time the DRG route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - A filter to return only resources that match the given display name exactly.
- drg
Id string - The OCID of the DRG.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the DRG route table.
- import
Drg stringRoute Distribution Id - The OCID of the import route distribution.
- is
Ecmp booleanEnabled - If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.
- remove
Import booleanTrigger - state string
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- time
Created string - The date and time the DRG route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - A filter to return only resources that match the given display name exactly.
- drg_
id str - The OCID of the DRG.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the DRG route table.
- import_
drg_ strroute_ distribution_ id - The OCID of the import route distribution.
- is_
ecmp_ boolenabled - If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.
- remove_
import_ booltrigger - state str
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- time_
created str - The date and time the DRG route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A filter to return only resources that match the given display name exactly.
- drg
Id String - The OCID of the DRG.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the DRG route table.
- import
Drg StringRoute Distribution Id - The OCID of the import route distribution.
- is
Ecmp BooleanEnabled - If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to your on-premises network, enable ECMP on the DRG route table to which these attachments import routes.
- remove
Import BooleanTrigger - state String
- A filter that only returns matches for the specified lifecycle state. The value is case insensitive.
- time
Created String - The date and time the DRG route table was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
GetDrgRouteTablesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.