Oracle Cloud Infrastructure

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

getLogAnalyticsCategory

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

Gets detailed information about the category with the specified name.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testLogAnalyticsCategory = Oci.LogAnalytics.GetLogAnalyticsCategory.Invoke(new()
    {
        Name = @var.Log_analytics_category_name,
        Namespace = @var.Log_analytics_category_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.GetLogAnalyticsCategory(ctx, &loganalytics.GetLogAnalyticsCategoryArgs{
			Name:      _var.Log_analytics_category_name,
			Namespace: _var.Log_analytics_category_namespace,
		}, 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.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetLogAnalyticsCategoryArgs;
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 testLogAnalyticsCategory = LogAnalyticsFunctions.getLogAnalyticsCategory(GetLogAnalyticsCategoryArgs.builder()
            .name(var_.log_analytics_category_name())
            .namespace(var_.log_analytics_category_namespace())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_log_analytics_category = oci.LogAnalytics.get_log_analytics_category(name=var["log_analytics_category_name"],
    namespace=var["log_analytics_category_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsCategory = oci.LogAnalytics.getLogAnalyticsCategory({
    name: _var.log_analytics_category_name,
    namespace: _var.log_analytics_category_namespace,
});
variables:
  testLogAnalyticsCategory:
    Fn::Invoke:
      Function: oci:LogAnalytics:getLogAnalyticsCategory
      Arguments:
        name: ${var.log_analytics_category_name}
        namespace: ${var.log_analytics_category_namespace}

Using getLogAnalyticsCategory

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 getLogAnalyticsCategory(args: GetLogAnalyticsCategoryArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsCategoryResult>
function getLogAnalyticsCategoryOutput(args: GetLogAnalyticsCategoryOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsCategoryResult>
def get_log_analytics_category(name: Optional[str] = None,
                               namespace: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsCategoryResult
def get_log_analytics_category_output(name: Optional[pulumi.Input[str]] = None,
                               namespace: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsCategoryResult]
func GetLogAnalyticsCategory(ctx *Context, args *GetLogAnalyticsCategoryArgs, opts ...InvokeOption) (*GetLogAnalyticsCategoryResult, error)
func GetLogAnalyticsCategoryOutput(ctx *Context, args *GetLogAnalyticsCategoryOutputArgs, opts ...InvokeOption) GetLogAnalyticsCategoryResultOutput

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

public static class GetLogAnalyticsCategory 
{
    public static Task<GetLogAnalyticsCategoryResult> InvokeAsync(GetLogAnalyticsCategoryArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsCategoryResult> Invoke(GetLogAnalyticsCategoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogAnalyticsCategoryResult> getLogAnalyticsCategory(GetLogAnalyticsCategoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:LogAnalytics/getLogAnalyticsCategory:getLogAnalyticsCategory
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The category name.

Namespace string

The Logging Analytics namespace used for the request.

Name string

The category name.

Namespace string

The Logging Analytics namespace used for the request.

name String

The category name.

namespace String

The Logging Analytics namespace used for the request.

name string

The category name.

namespace string

The Logging Analytics namespace used for the request.

name str

The category name.

namespace str

The Logging Analytics namespace used for the request.

name String

The category name.

namespace String

The Logging Analytics namespace used for the request.

getLogAnalyticsCategory Result

The following output properties are available:

Description string

The category description.

DisplayName string

The category display name.

Id string

The provider-assigned unique ID for this managed resource.

IsSystem bool

The system flag. A value of false denotes a user-created category. A value of true denotes an Oracle-defined category.

Name string

The unique name that identifies the category.

Namespace string
Type string

The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

Description string

The category description.

DisplayName string

The category display name.

Id string

The provider-assigned unique ID for this managed resource.

IsSystem bool

The system flag. A value of false denotes a user-created category. A value of true denotes an Oracle-defined category.

Name string

The unique name that identifies the category.

Namespace string
Type string

The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

description String

The category description.

displayName String

The category display name.

id String

The provider-assigned unique ID for this managed resource.

isSystem Boolean

The system flag. A value of false denotes a user-created category. A value of true denotes an Oracle-defined category.

name String

The unique name that identifies the category.

namespace String
type String

The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

description string

The category description.

displayName string

The category display name.

id string

The provider-assigned unique ID for this managed resource.

isSystem boolean

The system flag. A value of false denotes a user-created category. A value of true denotes an Oracle-defined category.

name string

The unique name that identifies the category.

namespace string
type string

The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

description str

The category description.

display_name str

The category display name.

id str

The provider-assigned unique ID for this managed resource.

is_system bool

The system flag. A value of false denotes a user-created category. A value of true denotes an Oracle-defined category.

name str

The unique name that identifies the category.

namespace str
type str

The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

description String

The category description.

displayName String

The category display name.

id String

The provider-assigned unique ID for this managed resource.

isSystem Boolean

The system flag. A value of false denotes a user-created category. A value of true denotes an Oracle-defined category.

name String

The unique name that identifies the category.

namespace String
type String

The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

Package Details

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

This Pulumi package is based on the oci Terraform Provider.