1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Zpr
  5. getZprPolicy
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Zpr.getZprPolicy

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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/v2/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 GetZprPolicy(ctx *Context, args *GetZprPolicyArgs, opts ...InvokeOption) (*GetZprPolicyResult, error)
    func GetZprPolicyOutput(ctx *Context, args *GetZprPolicyOutputArgs, opts ...InvokeOption) GetZprPolicyResultOutput

    > Note: This function is named GetZprPolicy 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Zpr/getZprPolicy:getZprPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZprPolicyId string
    The OCID of the ZprPolicy.
    ZprPolicyId string
    The OCID of the ZprPolicy.
    zprPolicyId String
    The OCID of the ZprPolicy.
    zprPolicyId string
    The OCID of the ZprPolicy.
    zpr_policy_id str
    The OCID of the ZprPolicy.
    zprPolicyId String
    The OCID of the ZprPolicy.

    getZprPolicy Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    DefinedTags 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.
    FreeformTags 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
    LifecycleDetails 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.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    ZprPolicyId string
    CompartmentId string
    The OCID of the compartment.
    DefinedTags 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.
    FreeformTags 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
    LifecycleDetails 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.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    ZprPolicyId string
    compartmentId String
    The OCID of the compartment.
    definedTags 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.
    freeformTags 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
    lifecycleDetails 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.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zprPolicyId String
    compartmentId string
    The OCID of the compartment.
    definedTags {[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.
    freeformTags {[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
    lifecycleDetails 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.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zprPolicyId string
    compartment_id str
    The OCID of the compartment.
    defined_tags 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.
    freeform_tags 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.
    system_tags 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_id str
    compartmentId String
    The OCID of the compartment.
    definedTags 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.
    freeformTags 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
    lifecycleDetails 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.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zprPolicyId String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi