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

oci.CloudGuard.getCloudGuardConfiguration

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 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:

    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.

    getCloudGuardConfiguration Result

    The following output properties are available:

    CompartmentId string
    Id string
    ReportingRegion string
    The reporting region
    SelfManageResources bool
    Were Oracle-managed resources created by customer?
    Status string
    Status of the Cloud Guard tenant
    CompartmentId string
    Id string
    ReportingRegion string
    The reporting region
    SelfManageResources bool
    Were Oracle-managed resources created by customer?
    Status string
    Status of the Cloud Guard tenant
    compartmentId String
    id String
    reportingRegion String
    The reporting region
    selfManageResources Boolean
    Were Oracle-managed resources created by customer?
    status String
    Status of the Cloud Guard tenant
    compartmentId string
    id string
    reportingRegion string
    The reporting region
    selfManageResources boolean
    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_resources bool
    Were Oracle-managed resources created by customer?
    status str
    Status of the Cloud Guard tenant
    compartmentId String
    id String
    reportingRegion String
    The reporting region
    selfManageResources Boolean
    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi