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 details about a specific Drg Nat Policy resource in Oracle Cloud Infrastructure Core service.
Gets the specified DRG NAT policy’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgNatPolicy = oci.core.getDrgNatPolicy({
drgNatPolicyId: testDrgNatPolicyOciCoreDrgNatPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_drg_nat_policy = oci.core.get_drg_nat_policy(drg_nat_policy_id=test_drg_nat_policy_oci_core_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.GetDrgNatPolicy(ctx, &core.GetDrgNatPolicyArgs{
DrgNatPolicyId: testDrgNatPolicyOciCoreDrgNatPolicy.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 testDrgNatPolicy = Oci.Core.GetDrgNatPolicy.Invoke(new()
{
DrgNatPolicyId = testDrgNatPolicyOciCoreDrgNatPolicy.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.GetDrgNatPolicyArgs;
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 testDrgNatPolicy = CoreFunctions.getDrgNatPolicy(GetDrgNatPolicyArgs.builder()
.drgNatPolicyId(testDrgNatPolicyOciCoreDrgNatPolicy.id())
.build());
}
}
variables:
testDrgNatPolicy:
fn::invoke:
function: oci:Core:getDrgNatPolicy
arguments:
drgNatPolicyId: ${testDrgNatPolicyOciCoreDrgNatPolicy.id}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_core_getdrgnatpolicy" "testDrgNatPolicy" {
drg_nat_policy_id = testDrgNatPolicyOciCoreDrgNatPolicy.id
}
Using getDrgNatPolicy
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 getDrgNatPolicy(args: GetDrgNatPolicyArgs, opts?: InvokeOptions): Promise<GetDrgNatPolicyResult>
function getDrgNatPolicyOutput(args: GetDrgNatPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetDrgNatPolicyResult>def get_drg_nat_policy(drg_nat_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDrgNatPolicyResult
def get_drg_nat_policy_output(drg_nat_policy_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetDrgNatPolicyResult]func LookupDrgNatPolicy(ctx *Context, args *LookupDrgNatPolicyArgs, opts ...InvokeOption) (*LookupDrgNatPolicyResult, error)
func LookupDrgNatPolicyOutput(ctx *Context, args *LookupDrgNatPolicyOutputArgs, opts ...InvokeOption) LookupDrgNatPolicyResultOutput> Note: This function is named LookupDrgNatPolicy in the Go SDK.
public static class GetDrgNatPolicy
{
public static Task<GetDrgNatPolicyResult> InvokeAsync(GetDrgNatPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetDrgNatPolicyResult> Invoke(GetDrgNatPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetDrgNatPolicyResult> Invoke(GetDrgNatPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetDrgNatPolicyResult> getDrgNatPolicy(GetDrgNatPolicyArgs args, InvokeOptions options)
public static Output<GetDrgNatPolicyResult> getDrgNatPolicy(GetDrgNatPolicyArgs args, InvokeOptions options)
public static Output<GetDrgNatPolicyResult> getDrgNatPolicy(GetDrgNatPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:Core/getDrgNatPolicy:getDrgNatPolicy
arguments:
# arguments dictionarydata "oci_core_get_drg_nat_policy" "name" {
# arguments
}The following arguments are supported:
- Drg
Nat stringPolicy Id - The OCID of the DRG NAT policy.
- Drg
Nat stringPolicy Id - The OCID of the DRG NAT policy.
- drg_
nat_ stringpolicy_ id - The OCID of the DRG NAT policy.
- drg
Nat StringPolicy Id - The OCID of the DRG NAT policy.
- drg
Nat stringPolicy Id - The OCID of the DRG NAT policy.
- drg_
nat_ strpolicy_ id - The OCID of the DRG NAT policy.
- drg
Nat StringPolicy Id - The OCID of the DRG NAT policy.
getDrgNatPolicy Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the DRG NAT policy.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Nat stringPolicy Id - Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The DRG NAT policy's Oracle ID (OCID).
- State string
- The DRG NAT policy's current state.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment containing the DRG NAT policy.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Nat stringPolicy Id - map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The DRG NAT policy's Oracle ID (OCID).
- State string
- The DRG NAT policy's current state.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id string - The OCID of the compartment containing the DRG NAT policy.
- map(string)
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display_
name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_
nat_ stringpolicy_ id - map(string)
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The DRG NAT policy's Oracle ID (OCID).
- state string
- The DRG NAT policy's current state.
- map(string)
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created string - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment containing the DRG NAT policy.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Nat StringPolicy Id - Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The DRG NAT policy's Oracle ID (OCID).
- state String
- The DRG NAT policy's current state.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment containing the DRG NAT policy.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Nat stringPolicy Id - {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The DRG NAT policy's Oracle ID (OCID).
- state string
- The DRG NAT policy's current state.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment containing the DRG NAT policy.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_
nat_ strpolicy_ id - Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The DRG NAT policy's Oracle ID (OCID).
- state str
- The DRG NAT policy's current state.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment containing the DRG NAT policy.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Nat StringPolicy Id - Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The DRG NAT policy's Oracle ID (OCID).
- state String
- The DRG NAT policy's current state.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the DRG NAT policy was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
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