Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Zpr.getConfiguration
Explore with Pulumi AI
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:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- compartment
Id String - The OCID of the compartment in which to list resources.
- compartment
Id string - The OCID of the compartment in which to list resources.
- compartment_
id str - The OCID of the compartment in which to list resources.
- compartment
Id String - The OCID of the compartment in which to list resources.
getConfiguration Result
The following output properties are available:
- Compartment
Id string - The OCID of the tenancy into which ZPR will be onboarded.
- 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"}
- 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.
- Lifecycle
Details 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.
- 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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time that ZPR was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Zpr
Status string - The enabled or disabled status of ZPR in tenancy.
- Compartment
Id string - The OCID of the tenancy into which ZPR will be onboarded.
- 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"}
- 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.
- Lifecycle
Details 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.
- 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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string - The date and time that ZPR was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Zpr
Status string - The enabled or disabled status of ZPR in tenancy.
- compartment
Id String - The OCID of the tenancy into which ZPR will be onboarded.
- 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"}
- 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.
- lifecycle
Details 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.
- 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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time that ZPR was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- zpr
Status String - The enabled or disabled status of ZPR in tenancy.
- compartment
Id string - The OCID of the tenancy into which ZPR will be onboarded.
- {[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"}
- {[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.
- lifecycle
Details 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.
- {[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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string - The date and time that ZPR was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- zpr
Status string - The enabled or disabled status of ZPR in tenancy.
- compartment_
id str - The OCID of the tenancy into which ZPR will be onboarded.
- 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"}
- 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.
- 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.
- compartment
Id String - The OCID of the tenancy into which ZPR will be onboarded.
- 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"}
- 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.
- lifecycle
Details 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.
- 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 that ZPR was onboarded to the tenancy, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String - The date and time that ZPR was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- zpr
Status 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.