1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getDrgRouteDistributionStatements
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Core.getDrgRouteDistributionStatements

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 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: testDrgRouteDistribution.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_drg_route_distribution_statements = oci.Core.get_drg_route_distribution_statements(drg_route_distribution_id=test_drg_route_distribution["id"])
Copy
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.GetDrgRouteDistributionStatements(ctx, &core.GetDrgRouteDistributionStatementsArgs{
			DrgRouteDistributionId: testDrgRouteDistribution.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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 = testDrgRouteDistribution.Id,
    });

});
Copy
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(testDrgRouteDistribution.id())
            .build());

    }
}
Copy
variables:
  testDrgRouteDistributionStatements:
    fn::invoke:
      function: oci:Core:getDrgRouteDistributionStatements
      arguments:
        drgRouteDistributionId: ${testDrgRouteDistribution.id}
Copy

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>
Copy
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]
Copy
func GetDrgRouteDistributionStatements(ctx *Context, args *GetDrgRouteDistributionStatementsArgs, opts ...InvokeOption) (*GetDrgRouteDistributionStatementsResult, error)
func GetDrgRouteDistributionStatementsOutput(ctx *Context, args *GetDrgRouteDistributionStatementsOutputArgs, opts ...InvokeOption) GetDrgRouteDistributionStatementsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDrgRouteDistributionStatementsResult> getDrgRouteDistributionStatements(GetDrgRouteDistributionStatementsArgs args, InvokeOptions options)
public static Output<GetDrgRouteDistributionStatementsResult> getDrgRouteDistributionStatements(GetDrgRouteDistributionStatementsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getDrgRouteDistributionStatements:getDrgRouteDistributionStatements
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DrgRouteDistributionId This property is required. string
The OCID of the route distribution.
Filters Changes to this property will trigger replacement. List<GetDrgRouteDistributionStatementsFilter>
DrgRouteDistributionId This property is required. string
The OCID of the route distribution.
Filters Changes to this property will trigger replacement. []GetDrgRouteDistributionStatementsFilter
drgRouteDistributionId This property is required. String
The OCID of the route distribution.
filters Changes to this property will trigger replacement. List<GetDrgRouteDistributionStatementsFilter>
drgRouteDistributionId This property is required. string
The OCID of the route distribution.
filters Changes to this property will trigger replacement. GetDrgRouteDistributionStatementsFilter[]
drg_route_distribution_id This property is required. str
The OCID of the route distribution.
filters Changes to this property will trigger replacement. Sequence[core.GetDrgRouteDistributionStatementsFilter]
drgRouteDistributionId This property is required. String
The OCID of the route distribution.
filters Changes to this property will trigger replacement. 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 This property is required. string
ACCEPT indicates the route should be imported or exported as-is.
Id This property is required. string
The Oracle-assigned ID of the route distribution statement.
MatchCriterias This property is required. 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 This property is required. 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 This property is required. string
ACCEPT indicates the route should be imported or exported as-is.
Id This property is required. string
The Oracle-assigned ID of the route distribution statement.
MatchCriterias This property is required. []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 This property is required. 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 This property is required. String
ACCEPT indicates the route should be imported or exported as-is.
id This property is required. String
The Oracle-assigned ID of the route distribution statement.
matchCriterias This property is required. 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 This property is required. 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 This property is required. string
ACCEPT indicates the route should be imported or exported as-is.
id This property is required. string
The Oracle-assigned ID of the route distribution statement.
matchCriterias This property is required. 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 This property is required. 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 This property is required. str
ACCEPT indicates the route should be imported or exported as-is.
id This property is required. str
The Oracle-assigned ID of the route distribution statement.
match_criterias This property is required. 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 This property is required. 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 This property is required. String
ACCEPT indicates the route should be imported or exported as-is.
id This property is required. String
The Oracle-assigned ID of the route distribution statement.
matchCriterias This property is required. 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 This property is required. 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 This property is required. 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 This property is required. string
The OCID of the DRG attachment.
MatchType This property is required. string
The type of the match criteria for a route distribution statement.
AttachmentType This property is required. 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 This property is required. string
The OCID of the DRG attachment.
MatchType This property is required. string
The type of the match criteria for a route distribution statement.
attachmentType This property is required. 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 This property is required. String
The OCID of the DRG attachment.
matchType This property is required. String
The type of the match criteria for a route distribution statement.
attachmentType This property is required. 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 This property is required. string
The OCID of the DRG attachment.
matchType This property is required. string
The type of the match criteria for a route distribution statement.
attachment_type This property is required. 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 This property is required. str
The OCID of the DRG attachment.
match_type This property is required. str
The type of the match criteria for a route distribution statement.
attachmentType This property is required. 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 This property is required. String
The OCID of the DRG attachment.
matchType This property is required. String
The type of the match criteria for a route distribution statement.

GetDrgRouteDistributionStatementsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. 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.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi