Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Drg
Route stringDistribution Id - The OCID of the route distribution.
- Filters
List<Get
Drg Route Distribution Statements Filter>
- Drg
Route stringDistribution Id - The OCID of the route distribution.
- Filters
[]Get
Drg Route Distribution Statements Filter
- drg
Route StringDistribution Id - The OCID of the route distribution.
- filters
List<Get
Drg Route Distribution Statements Filter>
- drg
Route stringDistribution Id - The OCID of the route distribution.
- filters
Get
Drg Route Distribution Statements Filter[]
- drg_
route_ strdistribution_ id - The OCID of the route distribution.
- filters
Sequence[core.
Get Drg Route Distribution Statements Filter]
- drg
Route StringDistribution Id - The OCID of the route distribution.
- filters List<Property Map>
getDrgRouteDistributionStatements Result
The following output properties are available:
- Drg
Route stringDistribution Id - Drg
Route 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<Get
Drg Route Distribution Statements Filter>
- Drg
Route stringDistribution Id - Drg
Route []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
[]Get
Drg Route Distribution Statements Filter
- drg
Route StringDistribution Id - drg
Route 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<Get
Drg Route Distribution Statements Filter>
- drg
Route stringDistribution Id - drg
Route 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
Get
Drg Route Distribution Statements Filter[]
- drg_
route_ strdistribution_ id - drg_
route_ Sequence[core.distribution_ statements Get 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[core.
Get Drg Route Distribution Statements Filter]
- drg
Route StringDistribution Id - drg
Route 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
ACCEPT
indicates the route should be imported or exported as-is.- Id string
- The Oracle-assigned ID of the route distribution statement.
- Match
Criterias 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
ACCEPT
indicates the route should be imported or exported as-is.- Id string
- The Oracle-assigned ID of the route distribution statement.
- Match
Criterias []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
ACCEPT
indicates the route should be imported or exported as-is.- id String
- The Oracle-assigned ID of the route distribution statement.
- match
Criterias 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
ACCEPT
indicates the route should be imported or exported as-is.- id string
- The Oracle-assigned ID of the route distribution statement.
- match
Criterias 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
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.Get Drg 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
ACCEPT
indicates the route should be imported or exported as-is.- id String
- The Oracle-assigned ID of the route distribution statement.
- match
Criterias 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
- Attachment
Type 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.
- Drg
Attachment stringId - The OCID of the DRG attachment.
- Match
Type string - The type of the match criteria for a route distribution statement.
- Attachment
Type 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.
- Drg
Attachment stringId - The OCID of the DRG attachment.
- Match
Type string - The type of the match criteria for a route distribution statement.
- attachment
Type 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.
- drg
Attachment StringId - The OCID of the DRG attachment.
- match
Type String - The type of the match criteria for a route distribution statement.
- attachment
Type 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.
- drg
Attachment stringId - The OCID of the DRG attachment.
- match
Type 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.
- attachment
Type 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.
- drg
Attachment StringId - The OCID of the DRG attachment.
- match
Type 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
oci
Terraform Provider.