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

oci.LogAnalytics.getNamespaceRulesSummary

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 Namespace Rules Summary resource in Oracle Cloud Infrastructure Log Analytics service.

    Returns the count of detection rules in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceRulesSummary = oci.LogAnalytics.getNamespaceRulesSummary({
        compartmentId: compartmentId,
        namespace: namespaceRulesSummaryNamespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_rules_summary = oci.LogAnalytics.get_namespace_rules_summary(compartment_id=compartment_id,
        namespace=namespace_rules_summary_namespace)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LogAnalytics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := LogAnalytics.GetNamespaceRulesSummary(ctx, &loganalytics.GetNamespaceRulesSummaryArgs{
    			CompartmentId: compartmentId,
    			Namespace:     namespaceRulesSummaryNamespace,
    		}, 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 testNamespaceRulesSummary = Oci.LogAnalytics.GetNamespaceRulesSummary.Invoke(new()
        {
            CompartmentId = compartmentId,
            Namespace = namespaceRulesSummaryNamespace,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
    import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceRulesSummaryArgs;
    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 testNamespaceRulesSummary = LogAnalyticsFunctions.getNamespaceRulesSummary(GetNamespaceRulesSummaryArgs.builder()
                .compartmentId(compartmentId)
                .namespace(namespaceRulesSummaryNamespace)
                .build());
    
        }
    }
    
    variables:
      testNamespaceRulesSummary:
        fn::invoke:
          Function: oci:LogAnalytics:getNamespaceRulesSummary
          Arguments:
            compartmentId: ${compartmentId}
            namespace: ${namespaceRulesSummaryNamespace}
    

    Using getNamespaceRulesSummary

    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 getNamespaceRulesSummary(args: GetNamespaceRulesSummaryArgs, opts?: InvokeOptions): Promise<GetNamespaceRulesSummaryResult>
    function getNamespaceRulesSummaryOutput(args: GetNamespaceRulesSummaryOutputArgs, opts?: InvokeOptions): Output<GetNamespaceRulesSummaryResult>
    def get_namespace_rules_summary(compartment_id: Optional[str] = None,
                                    namespace: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetNamespaceRulesSummaryResult
    def get_namespace_rules_summary_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                    namespace: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceRulesSummaryResult]
    func GetNamespaceRulesSummary(ctx *Context, args *GetNamespaceRulesSummaryArgs, opts ...InvokeOption) (*GetNamespaceRulesSummaryResult, error)
    func GetNamespaceRulesSummaryOutput(ctx *Context, args *GetNamespaceRulesSummaryOutputArgs, opts ...InvokeOption) GetNamespaceRulesSummaryResultOutput

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

    public static class GetNamespaceRulesSummary 
    {
        public static Task<GetNamespaceRulesSummaryResult> InvokeAsync(GetNamespaceRulesSummaryArgs args, InvokeOptions? opts = null)
        public static Output<GetNamespaceRulesSummaryResult> Invoke(GetNamespaceRulesSummaryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespaceRulesSummaryResult> getNamespaceRulesSummary(GetNamespaceRulesSummaryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getNamespaceRulesSummary:getNamespaceRulesSummary
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    Namespace string
    The Logging Analytics namespace used for the request.
    CompartmentId string
    The ID of the compartment in which to list resources.
    Namespace string
    The Logging Analytics namespace used for the request.
    compartmentId String
    The ID of the compartment in which to list resources.
    namespace String
    The Logging Analytics namespace used for the request.
    compartmentId string
    The ID of the compartment in which to list resources.
    namespace string
    The Logging Analytics namespace used for the request.
    compartment_id str
    The ID of the compartment in which to list resources.
    namespace str
    The Logging Analytics namespace used for the request.
    compartmentId String
    The ID of the compartment in which to list resources.
    namespace String
    The Logging Analytics namespace used for the request.

    getNamespaceRulesSummary Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IngestTimeRulesCount int
    The count of ingest time rules.
    Namespace string
    SavedSearchRulesCount int
    The count of saved search rules.
    TotalCount int
    The total count of detection rules.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IngestTimeRulesCount int
    The count of ingest time rules.
    Namespace string
    SavedSearchRulesCount int
    The count of saved search rules.
    TotalCount int
    The total count of detection rules.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    ingestTimeRulesCount Integer
    The count of ingest time rules.
    namespace String
    savedSearchRulesCount Integer
    The count of saved search rules.
    totalCount Integer
    The total count of detection rules.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    ingestTimeRulesCount number
    The count of ingest time rules.
    namespace string
    savedSearchRulesCount number
    The count of saved search rules.
    totalCount number
    The total count of detection rules.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    ingest_time_rules_count int
    The count of ingest time rules.
    namespace str
    saved_search_rules_count int
    The count of saved search rules.
    total_count int
    The total count of detection rules.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    ingestTimeRulesCount Number
    The count of ingest time rules.
    namespace String
    savedSearchRulesCount Number
    The count of saved search rules.
    totalCount Number
    The total count of detection rules.

    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