1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getDrgRouteRule
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getDrgRouteRule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Drg Route Table resource in Oracle Cloud Infrastructure Core service.

    Gets the specified DRG route table’s information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDrgRouteTable = oci.Core.getDrgRouteRule({
        drgRouteTableId: testDrgRouteTableOciCoreDrgRouteTable.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_drg_route_table = oci.Core.get_drg_route_rule(drg_route_table_id=test_drg_route_table_oci_core_drg_route_table["id"])
    
    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.GetDrgRouteRule(ctx, &core.GetDrgRouteRuleArgs{
    			DrgRouteTableId: testDrgRouteTableOciCoreDrgRouteTable.Id,
    		}, 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 testDrgRouteTable = Oci.Core.GetDrgRouteRule.Invoke(new()
        {
            DrgRouteTableId = testDrgRouteTableOciCoreDrgRouteTable.Id,
        });
    
    });
    
    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.GetDrgRouteRuleArgs;
    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 testDrgRouteTable = CoreFunctions.getDrgRouteRule(GetDrgRouteRuleArgs.builder()
                .drgRouteTableId(testDrgRouteTableOciCoreDrgRouteTable.id())
                .build());
    
        }
    }
    
    variables:
      testDrgRouteTable:
        fn::invoke:
          Function: oci:Core:getDrgRouteRule
          Arguments:
            drgRouteTableId: ${testDrgRouteTableOciCoreDrgRouteTable.id}
    

    Using getDrgRouteRule

    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 getDrgRouteRule(args: GetDrgRouteRuleArgs, opts?: InvokeOptions): Promise<GetDrgRouteRuleResult>
    function getDrgRouteRuleOutput(args: GetDrgRouteRuleOutputArgs, opts?: InvokeOptions): Output<GetDrgRouteRuleResult>
    def get_drg_route_rule(drg_route_table_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDrgRouteRuleResult
    def get_drg_route_rule_output(drg_route_table_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDrgRouteRuleResult]
    func GetDrgRouteRule(ctx *Context, args *GetDrgRouteRuleArgs, opts ...InvokeOption) (*GetDrgRouteRuleResult, error)
    func GetDrgRouteRuleOutput(ctx *Context, args *GetDrgRouteRuleOutputArgs, opts ...InvokeOption) GetDrgRouteRuleResultOutput

    > Note: This function is named GetDrgRouteRule in the Go SDK.

    public static class GetDrgRouteRule 
    {
        public static Task<GetDrgRouteRuleResult> InvokeAsync(GetDrgRouteRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetDrgRouteRuleResult> Invoke(GetDrgRouteRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDrgRouteRuleResult> getDrgRouteRule(GetDrgRouteRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getDrgRouteRule:getDrgRouteRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DrgRouteTableId string
    The OCID of the DRG route table.
    DrgRouteTableId string
    The OCID of the DRG route table.
    drgRouteTableId String
    The OCID of the DRG route table.
    drgRouteTableId string
    The OCID of the DRG route table.
    drg_route_table_id str
    The OCID of the DRG route table.
    drgRouteTableId String
    The OCID of the DRG route table.

    getDrgRouteRule Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
    DefinedTags 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"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DrgId string
    The OCID of the DRG the DRG that contains this route table.
    DrgRouteTableId string
    FreeformTags 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.
    ImportDrgRouteDistributionId string
    The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
    IsEcmpEnabled bool
    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.
    RemoveImportTrigger bool
    State string
    The DRG route table's current state.
    TimeCreated string
    The date and time the DRG route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
    DefinedTags 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"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    DrgId string
    The OCID of the DRG the DRG that contains this route table.
    DrgRouteTableId string
    FreeformTags 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.
    ImportDrgRouteDistributionId string
    The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
    IsEcmpEnabled bool
    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.
    RemoveImportTrigger bool
    State string
    The DRG route table's current state.
    TimeCreated string
    The date and time the DRG route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
    definedTags 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"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    drgId String
    The OCID of the DRG the DRG that contains this route table.
    drgRouteTableId String
    freeformTags 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.
    importDrgRouteDistributionId String
    The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
    isEcmpEnabled Boolean
    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.
    removeImportTrigger Boolean
    state String
    The DRG route table's current state.
    timeCreated String
    The date and time the DRG route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
    definedTags {[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"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    drgId string
    The OCID of the DRG the DRG that contains this route table.
    drgRouteTableId string
    freeformTags {[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.
    importDrgRouteDistributionId string
    The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
    isEcmpEnabled boolean
    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.
    removeImportTrigger boolean
    state string
    The DRG route table's current state.
    timeCreated 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.
    defined_tags 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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    drg_id str
    The OCID of the DRG the DRG that contains this route table.
    drg_route_table_id str
    freeform_tags 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_route_distribution_id str
    The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
    is_ecmp_enabled bool
    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_trigger bool
    state str
    The DRG route table's current state.
    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
    compartmentId String
    The OCID of the compartment the DRG is in. The DRG route table is always in the same compartment as the DRG.
    definedTags 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"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    drgId String
    The OCID of the DRG the DRG that contains this route table.
    drgRouteTableId String
    freeformTags 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.
    importDrgRouteDistributionId String
    The OCID of the import route distribution used to specify how incoming route advertisements from referenced attachments are inserted into the DRG route table.
    isEcmpEnabled Boolean
    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.
    removeImportTrigger Boolean
    state String
    The DRG route table's current state.
    timeCreated String
    The date and time the DRG route table was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi