Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Zpr.getZprPolicy
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
This data source provides details about a specific Zpr Policy resource in Oracle Cloud Infrastructure Zpr service.
Gets information about a ZprPolicy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testZprPolicy = oci.Zpr.getZprPolicy({
zprPolicyId: testZprPolicyOciZprZprPolicy.id,
});
import pulumi
import pulumi_oci as oci
test_zpr_policy = oci.Zpr.get_zpr_policy(zpr_policy_id=test_zpr_policy_oci_zpr_zpr_policy["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/zpr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zpr.GetZprPolicy(ctx, &zpr.GetZprPolicyArgs{
ZprPolicyId: testZprPolicyOciZprZprPolicy.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 testZprPolicy = Oci.Zpr.GetZprPolicy.Invoke(new()
{
ZprPolicyId = testZprPolicyOciZprZprPolicy.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Zpr.ZprFunctions;
import com.pulumi.oci.Zpr.inputs.GetZprPolicyArgs;
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 testZprPolicy = ZprFunctions.getZprPolicy(GetZprPolicyArgs.builder()
.zprPolicyId(testZprPolicyOciZprZprPolicy.id())
.build());
}
}
variables:
testZprPolicy:
fn::invoke:
function: oci:Zpr:getZprPolicy
arguments:
zprPolicyId: ${testZprPolicyOciZprZprPolicy.id}
Using getZprPolicy
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 getZprPolicy(args: GetZprPolicyArgs, opts?: InvokeOptions): Promise<GetZprPolicyResult>
function getZprPolicyOutput(args: GetZprPolicyOutputArgs, opts?: InvokeOptions): Output<GetZprPolicyResult>def get_zpr_policy(zpr_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZprPolicyResult
def get_zpr_policy_output(zpr_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZprPolicyResult]func LookupZprPolicy(ctx *Context, args *LookupZprPolicyArgs, opts ...InvokeOption) (*LookupZprPolicyResult, error)
func LookupZprPolicyOutput(ctx *Context, args *LookupZprPolicyOutputArgs, opts ...InvokeOption) LookupZprPolicyResultOutput> Note: This function is named LookupZprPolicy in the Go SDK.
public static class GetZprPolicy
{
public static Task<GetZprPolicyResult> InvokeAsync(GetZprPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetZprPolicyResult> Invoke(GetZprPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZprPolicyResult> getZprPolicy(GetZprPolicyArgs args, InvokeOptions options)
public static Output<GetZprPolicyResult> getZprPolicy(GetZprPolicyArgs args, InvokeOptions options)
fn::invoke:
function: oci:Zpr/getZprPolicy:getZprPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Zpr
Policy stringId - The OCID of the ZprPolicy.
- Zpr
Policy stringId - The OCID of the ZprPolicy.
- zpr
Policy StringId - The OCID of the ZprPolicy.
- zpr
Policy stringId - The OCID of the ZprPolicy.
- zpr_
policy_ strid - The OCID of the ZprPolicy.
- zpr
Policy StringId - The OCID of the ZprPolicy.
getZprPolicy Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- 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"} - Description string
- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
- 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
- Lifecycle
Details string - A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Name string
- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
- State string
- The current state of the ZprPolicy.
- Statements List<string>
- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Zpr
Policy stringId
- Compartment
Id string - The OCID of the compartment.
- 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"} - Description string
- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
- 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
- Lifecycle
Details string - A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Name string
- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
- State string
- The current state of the ZprPolicy.
- Statements []string
- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Zpr
Policy stringId
- compartment
Id String - The OCID of the compartment.
- 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"} - description String
- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
- 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
- lifecycle
Details String - A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- name String
- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
- state String
- The current state of the ZprPolicy.
- statements List<String>
- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - zpr
Policy StringId
- compartment
Id string - The OCID of the compartment.
- {[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"} - description string
- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
- {[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
- lifecycle
Details string - A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- name string
- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
- state string
- The current state of the ZprPolicy.
- statements string[]
- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - zpr
Policy stringId
- compartment_
id str - The OCID of the compartment.
- 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"} - description str
- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
- 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
- lifecycle_
details str - A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- name str
- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
- state str
- The current state of the ZprPolicy.
- statements Sequence[str]
- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - zpr_
policy_ strid
- compartment
Id String - The OCID of the compartment.
- 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"} - description String
- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
- 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
- lifecycle
Details String - A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- name String
- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
- state String
- The current state of the ZprPolicy.
- statements List<String>
- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - zpr
Policy StringId
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
