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

oci.Zpr.getConfiguration

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 Configuration resource in Oracle Cloud Infrastructure Zpr service.

    Retrieves the ZPR configuration details for the root compartment (the root compartment is the tenancy). Returns ZPR configuration for root compartment (the root compartment is the tenancy).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testConfiguration = oci.Zpr.getConfiguration({
        compartmentId: tenancyOcid,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_configuration = oci.Zpr.get_configuration(compartment_id=tenancy_ocid)
    
    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.GetConfiguration(ctx, &zpr.GetConfigurationArgs{
    			CompartmentId: tenancyOcid,
    		}, 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 testConfiguration = Oci.Zpr.GetConfiguration.Invoke(new()
        {
            CompartmentId = tenancyOcid,
        });
    
    });
    
    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.GetConfigurationArgs;
    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 testConfiguration = ZprFunctions.getConfiguration(GetConfigurationArgs.builder()
                .compartmentId(tenancyOcid)
                .build());
    
        }
    }
    
    variables:
      testConfiguration:
        fn::invoke:
          Function: oci:Zpr:getConfiguration
          Arguments:
            compartmentId: ${tenancyOcid}
    

    Using getConfiguration

    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 getConfiguration(args: GetConfigurationArgs, opts?: InvokeOptions): Promise<GetConfigurationResult>
    function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetConfigurationResult>
    def get_configuration(compartment_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetConfigurationResult
    def get_configuration_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationResult]
    func GetConfiguration(ctx *Context, args *GetConfigurationArgs, opts ...InvokeOption) (*GetConfigurationResult, error)
    func GetConfigurationOutput(ctx *Context, args *GetConfigurationOutputArgs, opts ...InvokeOption) GetConfigurationResultOutput

    > Note: This function is named GetConfiguration in the Go SDK.

    public static class GetConfiguration 
    {
        public static Task<GetConfigurationResult> InvokeAsync(GetConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetConfigurationResult> Invoke(GetConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Zpr/getConfiguration:getConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    compartmentId String
    The OCID of the compartment in which to list resources.
    compartmentId string
    The OCID of the compartment in which to list resources.
    compartment_id str
    The OCID of the compartment in which to list resources.
    compartmentId String
    The OCID of the compartment in which to list resources.

    getConfiguration Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenancy into which ZPR will be onboarded.
    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"}
    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
    The OCID of the ZprConfiguration.
    LifecycleDetails string
    A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    State string
    The current state of ZPR in the tenancy.
    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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time that ZPR was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    ZprStatus string
    The enabled or disabled status of ZPR in tenancy.
    CompartmentId string
    The OCID of the tenancy into which ZPR will be onboarded.
    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"}
    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
    The OCID of the ZprConfiguration.
    LifecycleDetails string
    A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    State string
    The current state of ZPR in the tenancy.
    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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time that ZPR was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    ZprStatus string
    The enabled or disabled status of ZPR in tenancy.
    compartmentId String
    The OCID of the tenancy into which ZPR will be onboarded.
    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"}
    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
    The OCID of the ZprConfiguration.
    lifecycleDetails String
    A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state String
    The current state of ZPR in the tenancy.
    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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time that ZPR was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zprStatus String
    The enabled or disabled status of ZPR in tenancy.
    compartmentId string
    The OCID of the tenancy into which ZPR will be onboarded.
    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"}
    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
    The OCID of the ZprConfiguration.
    lifecycleDetails string
    A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state string
    The current state of ZPR in the tenancy.
    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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time that ZPR was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zprStatus string
    The enabled or disabled status of ZPR in tenancy.
    compartment_id str
    The OCID of the tenancy into which ZPR will be onboarded.
    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"}
    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
    The OCID of the ZprConfiguration.
    lifecycle_details str
    A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state str
    The current state of ZPR in the tenancy.
    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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time that ZPR was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zpr_status str
    The enabled or disabled status of ZPR in tenancy.
    compartmentId String
    The OCID of the tenancy into which ZPR will be onboarded.
    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"}
    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
    The OCID of the ZprConfiguration.
    lifecycleDetails String
    A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state String
    The current state of ZPR in the tenancy.
    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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time that ZPR was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    zprStatus String
    The enabled or disabled status of ZPR in tenancy.

    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