Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getLogAnalyticsLogGroupsSummary

This data source provides details about a specific Log Analytics Log Groups Summary resource in Oracle Cloud Infrastructure Log Analytics service.

Returns the count of log groups in a compartment.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLogAnalyticsLogGroupsSummary = Output.Create(Oci.LogAnalytics.GetLogAnalyticsLogGroupsSummary.InvokeAsync(new Oci.LogAnalytics.GetLogAnalyticsLogGroupsSummaryArgs
        {
            CompartmentId = @var.Compartment_id,
            Namespace = @var.Log_analytics_log_groups_summary_namespace,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LogAnalytics.GetLogAnalyticsLogGroupsSummary(ctx, &loganalytics.GetLogAnalyticsLogGroupsSummaryArgs{
			CompartmentId: _var.Compartment_id,
			Namespace:     _var.Log_analytics_log_groups_summary_namespace,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_log_analytics_log_groups_summary = oci.LogAnalytics.get_log_analytics_log_groups_summary(compartment_id=var["compartment_id"],
    namespace=var["log_analytics_log_groups_summary_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsLogGroupsSummary = oci.LogAnalytics.getLogAnalyticsLogGroupsSummary({
    compartmentId: _var.compartment_id,
    namespace: _var.log_analytics_log_groups_summary_namespace,
});

Coming soon!

Using getLogAnalyticsLogGroupsSummary

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 getLogAnalyticsLogGroupsSummary(args: GetLogAnalyticsLogGroupsSummaryArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsLogGroupsSummaryResult>
function getLogAnalyticsLogGroupsSummaryOutput(args: GetLogAnalyticsLogGroupsSummaryOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsLogGroupsSummaryResult>
def get_log_analytics_log_groups_summary(compartment_id: Optional[str] = None,
                                         namespace: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsLogGroupsSummaryResult
def get_log_analytics_log_groups_summary_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                         namespace: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsLogGroupsSummaryResult]
func GetLogAnalyticsLogGroupsSummary(ctx *Context, args *GetLogAnalyticsLogGroupsSummaryArgs, opts ...InvokeOption) (*GetLogAnalyticsLogGroupsSummaryResult, error)
func GetLogAnalyticsLogGroupsSummaryOutput(ctx *Context, args *GetLogAnalyticsLogGroupsSummaryOutputArgs, opts ...InvokeOption) GetLogAnalyticsLogGroupsSummaryResultOutput

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

public static class GetLogAnalyticsLogGroupsSummary 
{
    public static Task<GetLogAnalyticsLogGroupsSummaryResult> InvokeAsync(GetLogAnalyticsLogGroupsSummaryArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsLogGroupsSummaryResult> Invoke(GetLogAnalyticsLogGroupsSummaryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogAnalyticsLogGroupsSummaryResult> getLogAnalyticsLogGroupsSummary(GetLogAnalyticsLogGroupsSummaryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:LogAnalytics/getLogAnalyticsLogGroupsSummary:getLogAnalyticsLogGroupsSummary
  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.

getLogAnalyticsLogGroupsSummary Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

LogGroupCount int
Namespace string
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

LogGroupCount int
Namespace string
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

logGroupCount Integer
namespace String
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

logGroupCount number
namespace string
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

log_group_count int
namespace str
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

logGroupCount Number
namespace String

Package Details

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

This Pulumi package is based on the oci Terraform Provider.