Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.LogAnalytics.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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsCategory = oci.LogAnalytics.getLogAnalyticsCategory({
    name: logAnalyticsCategoryName,
    namespace: logAnalyticsCategoryNamespace,
});
import pulumi
import pulumi_oci as oci
test_log_analytics_category = oci.LogAnalytics.get_log_analytics_category(name=log_analytics_category_name,
    namespace=log_analytics_category_namespace)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v3/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:      logAnalyticsCategoryName,
			Namespace: logAnalyticsCategoryNamespace,
		}, 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 testLogAnalyticsCategory = Oci.LogAnalytics.GetLogAnalyticsCategory.Invoke(new()
    {
        Name = logAnalyticsCategoryName,
        Namespace = logAnalyticsCategoryNamespace,
    });
});
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(logAnalyticsCategoryName)
            .namespace(logAnalyticsCategoryNamespace)
            .build());
    }
}
variables:
  testLogAnalyticsCategory:
    fn::invoke:
      function: oci:LogAnalytics:getLogAnalyticsCategory
      arguments:
        name: ${logAnalyticsCategoryName}
        namespace: ${logAnalyticsCategoryNamespace}
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)
public static Output<GetLogAnalyticsCategoryResult> getLogAnalyticsCategory(GetLogAnalyticsCategoryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LogAnalytics/getLogAnalyticsCategory:getLogAnalyticsCategory
  arguments:
    # arguments dictionaryThe following arguments are supported:
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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
