Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getConfiguration

This data source provides details about a specific Configuration resource in Oracle Cloud Infrastructure Audit service.

Get the configuration

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testConfiguration = Oci.Audit.GetConfiguration.Invoke(new()
    {
        CompartmentId = @var.Tenancy_ocid,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Audit"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Audit.GetConfiguration(ctx, &audit.GetConfigurationArgs{
			CompartmentId: _var.Tenancy_ocid,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Audit.AuditFunctions;
import com.pulumi.oci.Audit.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 = AuditFunctions.getConfiguration(GetConfigurationArgs.builder()
            .compartmentId(var_.tenancy_ocid())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_configuration = oci.Audit.get_configuration(compartment_id=var["tenancy_ocid"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConfiguration = oci.Audit.getConfiguration({
    compartmentId: _var.tenancy_ocid,
});
variables:
  testConfiguration:
    Fn::Invoke:
      Function: oci:Audit:getConfiguration
      Arguments:
        compartmentId: ${var.tenancy_ocid}

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:Audit/getConfiguration:getConfiguration
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

ID of the root compartment (tenancy)

CompartmentId string

ID of the root compartment (tenancy)

compartmentId String

ID of the root compartment (tenancy)

compartmentId string

ID of the root compartment (tenancy)

compartment_id str

ID of the root compartment (tenancy)

compartmentId String

ID of the root compartment (tenancy)

getConfiguration Result

The following output properties are available:

CompartmentId string
Id string
RetentionPeriodDays int

The retention period setting, specified in days. The minimum is 90, the maximum 365. Example: 90

CompartmentId string
Id string
RetentionPeriodDays int

The retention period setting, specified in days. The minimum is 90, the maximum 365. Example: 90

compartmentId String
id String
retentionPeriodDays Integer

The retention period setting, specified in days. The minimum is 90, the maximum 365. Example: 90

compartmentId string
id string
retentionPeriodDays number

The retention period setting, specified in days. The minimum is 90, the maximum 365. Example: 90

compartment_id str
id str
retention_period_days int

The retention period setting, specified in days. The minimum is 90, the maximum 365. Example: 90

compartmentId String
id String
retentionPeriodDays Number

The retention period setting, specified in days. The minimum is 90, the maximum 365. Example: 90

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.