1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getDrgRouteDistribution
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Core.getDrgRouteDistribution

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

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

    Gets the specified route distribution’s information.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testDrgRouteDistribution = Oci.Core.GetDrgRouteDistribution.Invoke(new()
        {
            DrgRouteDistributionId = oci_core_drg_route_distribution.Test_drg_route_distribution.Id,
        });
    
    });
    
    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.GetDrgRouteDistribution(ctx, &core.GetDrgRouteDistributionArgs{
    			DrgRouteDistributionId: oci_core_drg_route_distribution.Test_drg_route_distribution.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetDrgRouteDistributionArgs;
    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 testDrgRouteDistribution = CoreFunctions.getDrgRouteDistribution(GetDrgRouteDistributionArgs.builder()
                .drgRouteDistributionId(oci_core_drg_route_distribution.test_drg_route_distribution().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_drg_route_distribution = oci.Core.get_drg_route_distribution(drg_route_distribution_id=oci_core_drg_route_distribution["test_drg_route_distribution"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDrgRouteDistribution = oci.Core.getDrgRouteDistribution({
        drgRouteDistributionId: oci_core_drg_route_distribution.test_drg_route_distribution.id,
    });
    
    variables:
      testDrgRouteDistribution:
        fn::invoke:
          Function: oci:Core:getDrgRouteDistribution
          Arguments:
            drgRouteDistributionId: ${oci_core_drg_route_distribution.test_drg_route_distribution.id}
    

    Using getDrgRouteDistribution

    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 getDrgRouteDistribution(args: GetDrgRouteDistributionArgs, opts?: InvokeOptions): Promise<GetDrgRouteDistributionResult>
    function getDrgRouteDistributionOutput(args: GetDrgRouteDistributionOutputArgs, opts?: InvokeOptions): Output<GetDrgRouteDistributionResult>
    def get_drg_route_distribution(drg_route_distribution_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDrgRouteDistributionResult
    def get_drg_route_distribution_output(drg_route_distribution_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDrgRouteDistributionResult]
    func GetDrgRouteDistribution(ctx *Context, args *GetDrgRouteDistributionArgs, opts ...InvokeOption) (*GetDrgRouteDistributionResult, error)
    func GetDrgRouteDistributionOutput(ctx *Context, args *GetDrgRouteDistributionOutputArgs, opts ...InvokeOption) GetDrgRouteDistributionResultOutput

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

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

    The following arguments are supported:

    DrgRouteDistributionId string
    The OCID of the route distribution.
    DrgRouteDistributionId string
    The OCID of the route distribution.
    drgRouteDistributionId String
    The OCID of the route distribution.
    drgRouteDistributionId string
    The OCID of the route distribution.
    drg_route_distribution_id str
    The OCID of the route distribution.
    drgRouteDistributionId String
    The OCID of the route distribution.

    getDrgRouteDistribution Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the route distribution.
    DefinedTags Dictionary<string, object>
    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.
    DistributionType string
    Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
    DrgId string
    The OCID of the DRG that contains this route distribution.
    DrgRouteDistributionId string
    FreeformTags Dictionary<string, object>
    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 route distribution's Oracle ID (OCID).
    State string
    The route distribution's current state.
    TimeCreated string
    The date and time the route distribution was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment containing the route distribution.
    DefinedTags map[string]interface{}
    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.
    DistributionType string
    Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
    DrgId string
    The OCID of the DRG that contains this route distribution.
    DrgRouteDistributionId string
    FreeformTags map[string]interface{}
    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 route distribution's Oracle ID (OCID).
    State string
    The route distribution's current state.
    TimeCreated string
    The date and time the route distribution was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment containing the route distribution.
    definedTags Map<String,Object>
    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.
    distributionType String
    Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
    drgId String
    The OCID of the DRG that contains this route distribution.
    drgRouteDistributionId String
    freeformTags Map<String,Object>
    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 route distribution's Oracle ID (OCID).
    state String
    The route distribution's current state.
    timeCreated String
    The date and time the route distribution was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment containing the route distribution.
    definedTags {[key: string]: any}
    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.
    distributionType string
    Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
    drgId string
    The OCID of the DRG that contains this route distribution.
    drgRouteDistributionId string
    freeformTags {[key: string]: any}
    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 route distribution's Oracle ID (OCID).
    state string
    The route distribution's current state.
    timeCreated string
    The date and time the route distribution was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment containing the route distribution.
    defined_tags Mapping[str, Any]
    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.
    distribution_type str
    Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
    drg_id str
    The OCID of the DRG that contains this route distribution.
    drg_route_distribution_id str
    freeform_tags Mapping[str, Any]
    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 route distribution's Oracle ID (OCID).
    state str
    The route distribution's current state.
    time_created str
    The date and time the route distribution was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment containing the route distribution.
    definedTags Map<Any>
    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.
    distributionType String
    Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
    drgId String
    The OCID of the DRG that contains this route distribution.
    drgRouteDistributionId String
    freeformTags Map<Any>
    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 route distribution's Oracle ID (OCID).
    state String
    The route distribution's current state.
    timeCreated String
    The date and time the route distribution 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 v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi