Oracle Cloud Infrastructure

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

getCloudGuardConfiguration

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

GET Cloud Guard Configuration Details for a Tenancy.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testCloudGuardConfiguration = Oci.CloudGuard.GetCloudGuardConfiguration.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := CloudGuard.GetCloudGuardConfiguration(ctx, &cloudguard.GetCloudGuardConfigurationArgs{
			CompartmentId: _var.Compartment_id,
		}, 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.CloudGuard.CloudGuardFunctions;
import com.pulumi.oci.CloudGuard.inputs.GetCloudGuardConfigurationArgs;
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 testCloudGuardConfiguration = CloudGuardFunctions.getCloudGuardConfiguration(GetCloudGuardConfigurationArgs.builder()
            .compartmentId(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_cloud_guard_configuration = oci.CloudGuard.get_cloud_guard_configuration(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCloudGuardConfiguration = oci.CloudGuard.getCloudGuardConfiguration({
    compartmentId: _var.compartment_id,
});
variables:
  testCloudGuardConfiguration:
    Fn::Invoke:
      Function: oci:CloudGuard:getCloudGuardConfiguration
      Arguments:
        compartmentId: ${var.compartment_id}

Using getCloudGuardConfiguration

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 getCloudGuardConfiguration(args: GetCloudGuardConfigurationArgs, opts?: InvokeOptions): Promise<GetCloudGuardConfigurationResult>
function getCloudGuardConfigurationOutput(args: GetCloudGuardConfigurationOutputArgs, opts?: InvokeOptions): Output<GetCloudGuardConfigurationResult>
def get_cloud_guard_configuration(compartment_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCloudGuardConfigurationResult
def get_cloud_guard_configuration_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCloudGuardConfigurationResult]
func GetCloudGuardConfiguration(ctx *Context, args *GetCloudGuardConfigurationArgs, opts ...InvokeOption) (*GetCloudGuardConfigurationResult, error)
func GetCloudGuardConfigurationOutput(ctx *Context, args *GetCloudGuardConfigurationOutputArgs, opts ...InvokeOption) GetCloudGuardConfigurationResultOutput

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

public static class GetCloudGuardConfiguration 
{
    public static Task<GetCloudGuardConfigurationResult> InvokeAsync(GetCloudGuardConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetCloudGuardConfigurationResult> Invoke(GetCloudGuardConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudGuardConfigurationResult> getCloudGuardConfiguration(GetCloudGuardConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:CloudGuard/getCloudGuardConfiguration:getCloudGuardConfiguration
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

CompartmentId string

The ID of the compartment in which to list resources.

compartmentId String

The ID of the compartment in which to list resources.

compartmentId string

The ID of the compartment in which to list resources.

compartment_id str

The ID of the compartment in which to list resources.

compartmentId String

The ID of the compartment in which to list resources.

getCloudGuardConfiguration Result

The following output properties are available:

CompartmentId string
Id string
ReportingRegion string

The reporting region value

SelfManageResources bool

Identifies if Oracle managed resources were created by customers

Status string

Status of Cloud Guard Tenant

CompartmentId string
Id string
ReportingRegion string

The reporting region value

SelfManageResources bool

Identifies if Oracle managed resources were created by customers

Status string

Status of Cloud Guard Tenant

compartmentId String
id String
reportingRegion String

The reporting region value

selfManageResources Boolean

Identifies if Oracle managed resources were created by customers

status String

Status of Cloud Guard Tenant

compartmentId string
id string
reportingRegion string

The reporting region value

selfManageResources boolean

Identifies if Oracle managed resources were created by customers

status string

Status of Cloud Guard Tenant

compartment_id str
id str
reporting_region str

The reporting region value

self_manage_resources bool

Identifies if Oracle managed resources were created by customers

status str

Status of Cloud Guard Tenant

compartmentId String
id String
reportingRegion String

The reporting region value

selfManageResources Boolean

Identifies if Oracle managed resources were created by customers

status String

Status of Cloud Guard Tenant

Package Details

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

This Pulumi package is based on the oci Terraform Provider.