Viewing docs for Oracle Cloud Infrastructure v5.3.0
published on Friday, Oct 9, 2026 by Pulumi
published on Friday, Oct 9, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v5.3.0
published on Friday, Oct 9, 2026 by Pulumi
published on Friday, Oct 9, 2026 by Pulumi
This data source provides the list of DrgNatRules that are associated with a DrgNatPolicy in Oracle Cloud Infrastructure Core service.
Lists the rules for the specified DrgNatPolicy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgNatPolicyDrgNatRules = oci.core.getDrgNatPolicyDrgNatRules({
drgNatPolicyId: testDrgNatPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_drg_nat_policy_drg_nat_rules = oci.core.get_drg_nat_policy_drg_nat_rules(drg_nat_policy_id=test_drg_nat_policy["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.GetDrgNatPolicyDrgNatRules(ctx, &core.GetDrgNatPolicyDrgNatRulesArgs{
DrgNatPolicyId: testDrgNatPolicy.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 testDrgNatPolicyDrgNatRules = Oci.Core.GetDrgNatPolicyDrgNatRules.Invoke(new()
{
DrgNatPolicyId = testDrgNatPolicy.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.GetDrgNatPolicyDrgNatRulesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 testDrgNatPolicyDrgNatRules = CoreFunctions.getDrgNatPolicyDrgNatRules(GetDrgNatPolicyDrgNatRulesArgs.builder()
.drgNatPolicyId(testDrgNatPolicy.id())
.build());
}
}
variables:
testDrgNatPolicyDrgNatRules:
fn::invoke:
function: oci:Core:getDrgNatPolicyDrgNatRules
arguments:
drgNatPolicyId: ${testDrgNatPolicy.id}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_core_getdrgnatpolicydrgnatrules" "testDrgNatPolicyDrgNatRules" {
drg_nat_policy_id = testDrgNatPolicy.id
}
Using getDrgNatPolicyDrgNatRules
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 getDrgNatPolicyDrgNatRules(args: GetDrgNatPolicyDrgNatRulesArgs, opts?: InvokeOptions): Promise<GetDrgNatPolicyDrgNatRulesResult>
function getDrgNatPolicyDrgNatRulesOutput(args: GetDrgNatPolicyDrgNatRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetDrgNatPolicyDrgNatRulesResult>def get_drg_nat_policy_drg_nat_rules(drg_nat_policy_id: Optional[str] = None,
filters: Optional[Sequence[GetDrgNatPolicyDrgNatRulesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetDrgNatPolicyDrgNatRulesResult
def get_drg_nat_policy_drg_nat_rules_output(drg_nat_policy_id: pulumi.Input[Optional[str]] = None,
filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDrgNatPolicyDrgNatRulesFilterArgs]]]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetDrgNatPolicyDrgNatRulesResult]func GetDrgNatPolicyDrgNatRules(ctx *Context, args *GetDrgNatPolicyDrgNatRulesArgs, opts ...InvokeOption) (*GetDrgNatPolicyDrgNatRulesResult, error)
func GetDrgNatPolicyDrgNatRulesOutput(ctx *Context, args *GetDrgNatPolicyDrgNatRulesOutputArgs, opts ...InvokeOption) GetDrgNatPolicyDrgNatRulesResultOutput> Note: This function is named GetDrgNatPolicyDrgNatRules in the Go SDK.
public static class GetDrgNatPolicyDrgNatRules
{
public static Task<GetDrgNatPolicyDrgNatRulesResult> InvokeAsync(GetDrgNatPolicyDrgNatRulesArgs args, InvokeOptions? opts = null)
public static Output<GetDrgNatPolicyDrgNatRulesResult> Invoke(GetDrgNatPolicyDrgNatRulesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetDrgNatPolicyDrgNatRulesResult> Invoke(GetDrgNatPolicyDrgNatRulesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetDrgNatPolicyDrgNatRulesResult> getDrgNatPolicyDrgNatRules(GetDrgNatPolicyDrgNatRulesArgs args, InvokeOptions options)
public static Output<GetDrgNatPolicyDrgNatRulesResult> getDrgNatPolicyDrgNatRules(GetDrgNatPolicyDrgNatRulesArgs args, InvokeOptions options)
public static Output<GetDrgNatPolicyDrgNatRulesResult> getDrgNatPolicyDrgNatRules(GetDrgNatPolicyDrgNatRulesArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:Core/getDrgNatPolicyDrgNatRules:getDrgNatPolicyDrgNatRules
arguments:
# arguments dictionarydata "oci_core_get_drg_nat_policy_drg_nat_rules" "name" {
# arguments
}The following arguments are supported:
- Drg
Nat stringPolicy Id - The OCID of the DrgNatPolicy.
- Filters
List<Get
Drg Nat Policy Drg Nat Rules Filter>
- Drg
Nat stringPolicy Id - The OCID of the DrgNatPolicy.
- Filters
[]Get
Drg Nat Policy Drg Nat Rules Filter
- drg_
nat_ stringpolicy_ id - The OCID of the DrgNatPolicy.
- filters list(object)
- drg
Nat StringPolicy Id - The OCID of the DrgNatPolicy.
- filters
List<Get
Drg Nat Policy Drg Nat Rules Filter>
- drg
Nat stringPolicy Id - The OCID of the DrgNatPolicy.
- filters
Get
Drg Nat Policy Drg Nat Rules Filter[]
- drg_
nat_ strpolicy_ id - The OCID of the DrgNatPolicy.
- filters
Sequence[Get
Drg Nat Policy Drg Nat Rules Filter]
- drg
Nat StringPolicy Id - The OCID of the DrgNatPolicy.
- filters List<Property Map>
getDrgNatPolicyDrgNatRules Result
The following output properties are available:
- Drg
Nat stringPolicy Id - The DrgNatPolicy's Oracle ID (OCID).
- Drg
Nat List<GetRules Drg Nat Policy Drg Nat Rules Drg Nat Rule> - The list of drg_nat_rules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Drg Nat Policy Drg Nat Rules Filter>
- Drg
Nat stringPolicy Id - The DrgNatPolicy's Oracle ID (OCID).
- Drg
Nat []GetRules Drg Nat Policy Drg Nat Rules Drg Nat Rule - The list of drg_nat_rules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Drg Nat Policy Drg Nat Rules Filter
- drg_
nat_ stringpolicy_ id - The DrgNatPolicy's Oracle ID (OCID).
- drg_
nat_ list(object)rules - The list of drg_nat_rules.
- id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- drg
Nat StringPolicy Id - The DrgNatPolicy's Oracle ID (OCID).
- drg
Nat List<GetRules Drg Nat Policy Drg Nat Rules Drg Nat Rule> - The list of drg_nat_rules.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Drg Nat Policy Drg Nat Rules Filter>
- drg
Nat stringPolicy Id - The DrgNatPolicy's Oracle ID (OCID).
- drg
Nat GetRules Drg Nat Policy Drg Nat Rules Drg Nat Rule[] - The list of drg_nat_rules.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Drg Nat Policy Drg Nat Rules Filter[]
- drg_
nat_ strpolicy_ id - The DrgNatPolicy's Oracle ID (OCID).
- drg_
nat_ Sequence[Getrules Drg Nat Policy Drg Nat Rules Drg Nat Rule] - The list of drg_nat_rules.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Drg Nat Policy Drg Nat Rules Filter]
- drg
Nat StringPolicy Id - The DrgNatPolicy's Oracle ID (OCID).
- drg
Nat List<Property Map>Rules - The list of drg_nat_rules.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetDrgNatPolicyDrgNatRulesDrgNatRule
- Drg
Nat stringPolicy Id - The OCID of the DrgNatPolicy.
- Drg
Nat stringRule Priority - The priority associated with each DrgNatRule.
- Id string
- The Oracle-assigned ID of the DrgNatRule.
- Original
Destination string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- Original
Source string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- Translated
Destination string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- Translated
Source string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- Drg
Nat stringPolicy Id - The OCID of the DrgNatPolicy.
- Drg
Nat stringRule Priority - The priority associated with each DrgNatRule.
- Id string
- The Oracle-assigned ID of the DrgNatRule.
- Original
Destination string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- Original
Source string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- Translated
Destination string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- Translated
Source string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- drg_
nat_ stringpolicy_ id - The OCID of the DrgNatPolicy.
- drg_
nat_ stringrule_ priority - The priority associated with each DrgNatRule.
- id string
- The Oracle-assigned ID of the DrgNatRule.
- original_
destination string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- original_
source string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- translated_
destination string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- translated_
source string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- drg
Nat StringPolicy Id - The OCID of the DrgNatPolicy.
- drg
Nat StringRule Priority - The priority associated with each DrgNatRule.
- id String
- The Oracle-assigned ID of the DrgNatRule.
- original
Destination String - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- original
Source String - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- translated
Destination String - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- translated
Source String - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- drg
Nat stringPolicy Id - The OCID of the DrgNatPolicy.
- drg
Nat stringRule Priority - The priority associated with each DrgNatRule.
- id string
- The Oracle-assigned ID of the DrgNatRule.
- original
Destination string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- original
Source string - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- translated
Destination string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- translated
Source string - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- drg_
nat_ strpolicy_ id - The OCID of the DrgNatPolicy.
- drg_
nat_ strrule_ priority - The priority associated with each DrgNatRule.
- id str
- The Oracle-assigned ID of the DrgNatRule.
- original_
destination str - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- original_
source str - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- translated_
destination str - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- translated_
source str - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- drg
Nat StringPolicy Id - The OCID of the DrgNatPolicy.
- drg
Nat StringRule Priority - The priority associated with each DrgNatRule.
- id String
- The Oracle-assigned ID of the DrgNatRule.
- original
Destination String - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- original
Source String - Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- translated
Destination String - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- translated
Source String - Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
GetDrgNatPolicyDrgNatRulesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v5.3.0
published on Friday, Oct 9, 2026 by Pulumi
published on Friday, Oct 9, 2026 by Pulumi