Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CloudGuard.getCloudGuardConfiguration
Explore with Pulumi AI
This data source provides details about a specific Cloud Guard Configuration resource in Oracle Cloud Infrastructure Cloud Guard service.
Returns the configuration details for a Cloud Guard tenancy, identified by root compartment OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCloudGuardConfiguration = oci.CloudGuard.getCloudGuardConfiguration({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_cloud_guard_configuration = oci.CloudGuard.get_cloud_guard_configuration(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: compartmentId,
}, 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 testCloudGuardConfiguration = Oci.CloudGuard.GetCloudGuardConfiguration.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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(compartmentId)
.build());
}
}
variables:
testCloudGuardConfiguration:
fn::invoke:
Function: oci:CloudGuard:getCloudGuardConfiguration
Arguments:
compartmentId: ${compartmentId}
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:
- 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.
getCloudGuardConfiguration Result
The following output properties are available:
- Compartment
Id string - Id string
- Reporting
Region string - The reporting region
- Self
Manage boolResources - Were Oracle-managed resources created by customer?
- Status string
- Status of the Cloud Guard tenant
- Compartment
Id string - Id string
- Reporting
Region string - The reporting region
- Self
Manage boolResources - Were Oracle-managed resources created by customer?
- Status string
- Status of the Cloud Guard tenant
- compartment
Id String - id String
- reporting
Region String - The reporting region
- self
Manage BooleanResources - Were Oracle-managed resources created by customer?
- status String
- Status of the Cloud Guard tenant
- compartment
Id string - id string
- reporting
Region string - The reporting region
- self
Manage booleanResources - Were Oracle-managed resources created by customer?
- status string
- Status of the Cloud Guard tenant
- compartment_
id str - id str
- reporting_
region str - The reporting region
- self_
manage_ boolresources - Were Oracle-managed resources created by customer?
- status str
- Status of the Cloud Guard tenant
- compartment
Id String - id String
- reporting
Region String - The reporting region
- self
Manage BooleanResources - Were Oracle-managed resources created by customer?
- status String
- Status of the Cloud Guard tenant
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.