1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getDrgRouteDistributionStatements
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.getDrgRouteDistributionStatements

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides the list of Drg Route Distribution Statements in Oracle Cloud Infrastructure Core service.

    Lists the statements for the specified route distribution.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDrgRouteDistributionStatements = oci.Core.getDrgRouteDistributionStatements({
        drgRouteDistributionId: oci_core_drg_route_distribution.test_drg_route_distribution.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_drg_route_distribution_statements = oci.Core.get_drg_route_distribution_statements(drg_route_distribution_id=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.GetDrgRouteDistributionStatements(ctx, &core.GetDrgRouteDistributionStatementsArgs{
    			DrgRouteDistributionId: oci_core_drg_route_distribution.Test_drg_route_distribution.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 testDrgRouteDistributionStatements = Oci.Core.GetDrgRouteDistributionStatements.Invoke(new()
        {
            DrgRouteDistributionId = oci_core_drg_route_distribution.Test_drg_route_distribution.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.GetDrgRouteDistributionStatementsArgs;
    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 testDrgRouteDistributionStatements = CoreFunctions.getDrgRouteDistributionStatements(GetDrgRouteDistributionStatementsArgs.builder()
                .drgRouteDistributionId(oci_core_drg_route_distribution.test_drg_route_distribution().id())
                .build());
    
        }
    }
    
    variables:
      testDrgRouteDistributionStatements:
        fn::invoke:
          Function: oci:Core:getDrgRouteDistributionStatements
          Arguments:
            drgRouteDistributionId: ${oci_core_drg_route_distribution.test_drg_route_distribution.id}
    

    Using getDrgRouteDistributionStatements

    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 getDrgRouteDistributionStatements(args: GetDrgRouteDistributionStatementsArgs, opts?: InvokeOptions): Promise<GetDrgRouteDistributionStatementsResult>
    function getDrgRouteDistributionStatementsOutput(args: GetDrgRouteDistributionStatementsOutputArgs, opts?: InvokeOptions): Output<GetDrgRouteDistributionStatementsResult>
    def get_drg_route_distribution_statements(drg_route_distribution_id: Optional[str] = None,
                                              filters: Optional[Sequence[_core.GetDrgRouteDistributionStatementsFilter]] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetDrgRouteDistributionStatementsResult
    def get_drg_route_distribution_statements_output(drg_route_distribution_id: Optional[pulumi.Input[str]] = None,
                                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetDrgRouteDistributionStatementsFilterArgs]]]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetDrgRouteDistributionStatementsResult]
    func GetDrgRouteDistributionStatements(ctx *Context, args *GetDrgRouteDistributionStatementsArgs, opts ...InvokeOption) (*GetDrgRouteDistributionStatementsResult, error)
    func GetDrgRouteDistributionStatementsOutput(ctx *Context, args *GetDrgRouteDistributionStatementsOutputArgs, opts ...InvokeOption) GetDrgRouteDistributionStatementsResultOutput

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

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

    The following arguments are supported:

    drgRouteDistributionId String
    The OCID of the route distribution.
    filters List<Property Map>

    getDrgRouteDistributionStatements Result

    The following output properties are available:

    DrgRouteDistributionId string
    DrgRouteDistributionStatements List<GetDrgRouteDistributionStatementsDrgRouteDistributionStatement>
    The list of drg_route_distribution_statements.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetDrgRouteDistributionStatementsFilter>
    DrgRouteDistributionId string
    DrgRouteDistributionStatements []GetDrgRouteDistributionStatementsDrgRouteDistributionStatement
    The list of drg_route_distribution_statements.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetDrgRouteDistributionStatementsFilter
    drgRouteDistributionId String
    drgRouteDistributionStatements List<GetDrgRouteDistributionStatementsDrgRouteDistributionStatement>
    The list of drg_route_distribution_statements.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetDrgRouteDistributionStatementsFilter>
    drgRouteDistributionId string
    drgRouteDistributionStatements GetDrgRouteDistributionStatementsDrgRouteDistributionStatement[]
    The list of drg_route_distribution_statements.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetDrgRouteDistributionStatementsFilter[]
    drgRouteDistributionId String
    drgRouteDistributionStatements List<Property Map>
    The list of drg_route_distribution_statements.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetDrgRouteDistributionStatementsDrgRouteDistributionStatement

    Action string
    ACCEPT indicates the route should be imported or exported as-is.
    Id string
    The Oracle-assigned ID of the route distribution statement.
    MatchCriterias List<GetDrgRouteDistributionStatementsDrgRouteDistributionStatementMatchCriteria>
    The action is applied only if all of the match criteria is met. If match type is MATCH_ALL, any input is considered a match.
    Priority int
    This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.
    Action string
    ACCEPT indicates the route should be imported or exported as-is.
    Id string
    The Oracle-assigned ID of the route distribution statement.
    MatchCriterias []GetDrgRouteDistributionStatementsDrgRouteDistributionStatementMatchCriteria
    The action is applied only if all of the match criteria is met. If match type is MATCH_ALL, any input is considered a match.
    Priority int
    This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.
    action String
    ACCEPT indicates the route should be imported or exported as-is.
    id String
    The Oracle-assigned ID of the route distribution statement.
    matchCriterias List<GetDrgRouteDistributionStatementsDrgRouteDistributionStatementMatchCriteria>
    The action is applied only if all of the match criteria is met. If match type is MATCH_ALL, any input is considered a match.
    priority Integer
    This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.
    action string
    ACCEPT indicates the route should be imported or exported as-is.
    id string
    The Oracle-assigned ID of the route distribution statement.
    matchCriterias GetDrgRouteDistributionStatementsDrgRouteDistributionStatementMatchCriteria[]
    The action is applied only if all of the match criteria is met. If match type is MATCH_ALL, any input is considered a match.
    priority number
    This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.
    action str
    ACCEPT indicates the route should be imported or exported as-is.
    id str
    The Oracle-assigned ID of the route distribution statement.
    match_criterias Sequence[core.GetDrgRouteDistributionStatementsDrgRouteDistributionStatementMatchCriteria]
    The action is applied only if all of the match criteria is met. If match type is MATCH_ALL, any input is considered a match.
    priority int
    This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.
    action String
    ACCEPT indicates the route should be imported or exported as-is.
    id String
    The Oracle-assigned ID of the route distribution statement.
    matchCriterias List<Property Map>
    The action is applied only if all of the match criteria is met. If match type is MATCH_ALL, any input is considered a match.
    priority Number
    This field specifies the priority of each statement in a route distribution. Priorities must be unique within a particular route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

    GetDrgRouteDistributionStatementsDrgRouteDistributionStatementMatchCriteria

    AttachmentType string
    The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.
    DrgAttachmentId string
    The OCID of the DRG attachment.
    MatchType string
    The type of the match criteria for a route distribution statement.
    AttachmentType string
    The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.
    DrgAttachmentId string
    The OCID of the DRG attachment.
    MatchType string
    The type of the match criteria for a route distribution statement.
    attachmentType String
    The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.
    drgAttachmentId String
    The OCID of the DRG attachment.
    matchType String
    The type of the match criteria for a route distribution statement.
    attachmentType string
    The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.
    drgAttachmentId string
    The OCID of the DRG attachment.
    matchType string
    The type of the match criteria for a route distribution statement.
    attachment_type str
    The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.
    drg_attachment_id str
    The OCID of the DRG attachment.
    match_type str
    The type of the match criteria for a route distribution statement.
    attachmentType String
    The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.
    drgAttachmentId String
    The OCID of the DRG attachment.
    matchType String
    The type of the match criteria for a route distribution statement.

    GetDrgRouteDistributionStatementsFilter

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi