Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getDrgRouteDistributionStatements
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testDrgRouteDistributionStatements:
    fn::invoke:
      function: oci:Core:getDrgRouteDistributionStatements
      arguments:
        drgRouteDistributionId: ${testDrgRouteDistribution.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[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[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)
public static Output<GetDrgRouteDistributionStatementsResult> getDrgRouteDistributionStatements(GetDrgRouteDistributionStatementsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getDrgRouteDistributionStatements:getDrgRouteDistributionStatements
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DrgRoute stringDistribution Id 
- The OCID of the route distribution.
- Filters
List<GetDrg Route Distribution Statements Filter> 
- DrgRoute stringDistribution Id 
- The OCID of the route distribution.
- Filters
[]GetDrg Route Distribution Statements Filter 
- drgRoute StringDistribution Id 
- The OCID of the route distribution.
- filters
List<GetDrg Route Distribution Statements Filter> 
- drgRoute stringDistribution Id 
- The OCID of the route distribution.
- filters
GetDrg Route Distribution Statements Filter[] 
- drg_route_ strdistribution_ id 
- The OCID of the route distribution.
- filters
Sequence[GetDrg Route Distribution Statements Filter] 
- drgRoute StringDistribution Id 
- The OCID of the route distribution.
- filters List<Property Map>
getDrgRouteDistributionStatements Result
The following output properties are available:
- DrgRoute stringDistribution Id 
- DrgRoute List<GetDistribution Statements Drg Route Distribution Statements Drg Route Distribution Statement> 
- The list of drg_route_distribution_statements.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetDrg Route Distribution Statements Filter> 
- DrgRoute stringDistribution Id 
- DrgRoute []GetDistribution Statements Drg Route Distribution Statements Drg Route Distribution Statement 
- The list of drg_route_distribution_statements.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetDrg Route Distribution Statements Filter 
- drgRoute StringDistribution Id 
- drgRoute List<GetDistribution Statements Drg Route Distribution Statements Drg Route Distribution Statement> 
- The list of drg_route_distribution_statements.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetDrg Route Distribution Statements Filter> 
- drgRoute stringDistribution Id 
- drgRoute GetDistribution Statements Drg Route Distribution Statements Drg Route Distribution Statement[] 
- The list of drg_route_distribution_statements.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetDrg Route Distribution Statements Filter[] 
- drg_route_ strdistribution_ id 
- drg_route_ Sequence[Getdistribution_ statements Drg Route Distribution Statements Drg Route Distribution Statement] 
- The list of drg_route_distribution_statements.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetDrg Route Distribution Statements Filter] 
- drgRoute StringDistribution Id 
- drgRoute List<Property Map>Distribution Statements 
- 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
- ACCEPTindicates the route should be imported or exported as-is.
- Id string
- The Oracle-assigned ID of the route distribution statement.
- MatchCriterias List<GetDrg Route Distribution Statements Drg Route Distribution Statement Match Criteria> 
- 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
- ACCEPTindicates the route should be imported or exported as-is.
- Id string
- The Oracle-assigned ID of the route distribution statement.
- MatchCriterias []GetDrg Route Distribution Statements Drg Route Distribution Statement Match Criteria 
- 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
- ACCEPTindicates the route should be imported or exported as-is.
- id String
- The Oracle-assigned ID of the route distribution statement.
- matchCriterias List<GetDrg Route Distribution Statements Drg Route Distribution Statement Match Criteria> 
- 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
- ACCEPTindicates the route should be imported or exported as-is.
- id string
- The Oracle-assigned ID of the route distribution statement.
- matchCriterias GetDrg Route Distribution Statements Drg Route Distribution Statement Match Criteria[] 
- 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
- ACCEPTindicates the route should be imported or exported as-is.
- id str
- The Oracle-assigned ID of the route distribution statement.
- match_criterias Sequence[GetDrg Route Distribution Statements Drg Route Distribution Statement Match Criteria] 
- 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
- ACCEPTindicates 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.
- DrgAttachment stringId 
- 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.
- DrgAttachment stringId 
- 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.
- drgAttachment StringId 
- 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.
- drgAttachment stringId 
- 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_ strid 
- 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.
- drgAttachment StringId 
- The OCID of the DRG attachment.
- matchType String
- The type of the match criteria for a route distribution statement.
GetDrgRouteDistributionStatementsFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.