1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsResourceCategoriesList
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.LogAnalytics.getLogAnalyticsResourceCategoriesList

Explore with Pulumi AI

This data source provides details about Resource Categories in Oracle Cloud Infrastructure Log Analytics service.

Returns a list of resources and their category assignments.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsResourceCategoriesList = oci.LogAnalytics.getLogAnalyticsResourceCategoriesList({
    namespace: logAnalyticsResourceCategoriesListNamespace,
    resourceIds: logAnalyticsResourceCategoriesListResourceIds,
    resourceTypes: logAnalyticsResourceCategoriesListResourceTypes,
    resourceCategories: logAnalyticsResourceCategoriesListResourceCategories,
});
Copy
import pulumi
import pulumi_oci as oci

test_log_analytics_resource_categories_list = oci.LogAnalytics.get_log_analytics_resource_categories_list(namespace=log_analytics_resource_categories_list_namespace,
    resource_ids=log_analytics_resource_categories_list_resource_ids,
    resource_types=log_analytics_resource_categories_list_resource_types,
    resource_categories=log_analytics_resource_categories_list_resource_categories)
Copy
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.GetLogAnalyticsResourceCategoriesList(ctx, &loganalytics.GetLogAnalyticsResourceCategoriesListArgs{
			Namespace:          logAnalyticsResourceCategoriesListNamespace,
			ResourceIds:        pulumi.StringRef(logAnalyticsResourceCategoriesListResourceIds),
			ResourceTypes:      pulumi.StringRef(logAnalyticsResourceCategoriesListResourceTypes),
			ResourceCategories: pulumi.StringRef(logAnalyticsResourceCategoriesListResourceCategories),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testLogAnalyticsResourceCategoriesList = Oci.LogAnalytics.GetLogAnalyticsResourceCategoriesList.Invoke(new()
    {
        Namespace = logAnalyticsResourceCategoriesListNamespace,
        ResourceIds = logAnalyticsResourceCategoriesListResourceIds,
        ResourceTypes = logAnalyticsResourceCategoriesListResourceTypes,
        ResourceCategories = logAnalyticsResourceCategoriesListResourceCategories,
    });

});
Copy
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.GetLogAnalyticsResourceCategoriesListArgs;
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 testLogAnalyticsResourceCategoriesList = LogAnalyticsFunctions.getLogAnalyticsResourceCategoriesList(GetLogAnalyticsResourceCategoriesListArgs.builder()
            .namespace(logAnalyticsResourceCategoriesListNamespace)
            .resourceIds(logAnalyticsResourceCategoriesListResourceIds)
            .resourceTypes(logAnalyticsResourceCategoriesListResourceTypes)
            .resourceCategories(logAnalyticsResourceCategoriesListResourceCategories)
            .build());

    }
}
Copy
variables:
  testLogAnalyticsResourceCategoriesList:
    fn::invoke:
      function: oci:LogAnalytics:getLogAnalyticsResourceCategoriesList
      arguments:
        namespace: ${logAnalyticsResourceCategoriesListNamespace}
        resourceIds: ${logAnalyticsResourceCategoriesListResourceIds}
        resourceTypes: ${logAnalyticsResourceCategoriesListResourceTypes}
        resourceCategories: ${logAnalyticsResourceCategoriesListResourceCategories}
Copy

Using getLogAnalyticsResourceCategoriesList

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 getLogAnalyticsResourceCategoriesList(args: GetLogAnalyticsResourceCategoriesListArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsResourceCategoriesListResult>
function getLogAnalyticsResourceCategoriesListOutput(args: GetLogAnalyticsResourceCategoriesListOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsResourceCategoriesListResult>
Copy
def get_log_analytics_resource_categories_list(namespace: Optional[str] = None,
                                               resource_categories: Optional[str] = None,
                                               resource_ids: Optional[str] = None,
                                               resource_types: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsResourceCategoriesListResult
def get_log_analytics_resource_categories_list_output(namespace: Optional[pulumi.Input[str]] = None,
                                               resource_categories: Optional[pulumi.Input[str]] = None,
                                               resource_ids: Optional[pulumi.Input[str]] = None,
                                               resource_types: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsResourceCategoriesListResult]
Copy
func GetLogAnalyticsResourceCategoriesList(ctx *Context, args *GetLogAnalyticsResourceCategoriesListArgs, opts ...InvokeOption) (*GetLogAnalyticsResourceCategoriesListResult, error)
func GetLogAnalyticsResourceCategoriesListOutput(ctx *Context, args *GetLogAnalyticsResourceCategoriesListOutputArgs, opts ...InvokeOption) GetLogAnalyticsResourceCategoriesListResultOutput
Copy

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

public static class GetLogAnalyticsResourceCategoriesList 
{
    public static Task<GetLogAnalyticsResourceCategoriesListResult> InvokeAsync(GetLogAnalyticsResourceCategoriesListArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsResourceCategoriesListResult> Invoke(GetLogAnalyticsResourceCategoriesListInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLogAnalyticsResourceCategoriesListResult> getLogAnalyticsResourceCategoriesList(GetLogAnalyticsResourceCategoriesListArgs args, InvokeOptions options)
public static Output<GetLogAnalyticsResourceCategoriesListResult> getLogAnalyticsResourceCategoriesList(GetLogAnalyticsResourceCategoriesListArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:LogAnalytics/getLogAnalyticsResourceCategoriesList:getLogAnalyticsResourceCategoriesList
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Namespace This property is required. string
The Logging Analytics namespace used for the request.
ResourceCategories string
A comma-separated list of category names used for filtering
ResourceIds string
A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
ResourceTypes string
A comma-separated list of resource types used for filtering. Only resources of the types specified will be returned. Examples include SOURCE, PARSER, LOOKUP, etc.
Namespace This property is required. string
The Logging Analytics namespace used for the request.
ResourceCategories string
A comma-separated list of category names used for filtering
ResourceIds string
A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
ResourceTypes string
A comma-separated list of resource types used for filtering. Only resources of the types specified will be returned. Examples include SOURCE, PARSER, LOOKUP, etc.
namespace This property is required. String
The Logging Analytics namespace used for the request.
resourceCategories String
A comma-separated list of category names used for filtering
resourceIds String
A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
resourceTypes String
A comma-separated list of resource types used for filtering. Only resources of the types specified will be returned. Examples include SOURCE, PARSER, LOOKUP, etc.
namespace This property is required. string
The Logging Analytics namespace used for the request.
resourceCategories string
A comma-separated list of category names used for filtering
resourceIds string
A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
resourceTypes string
A comma-separated list of resource types used for filtering. Only resources of the types specified will be returned. Examples include SOURCE, PARSER, LOOKUP, etc.
namespace This property is required. str
The Logging Analytics namespace used for the request.
resource_categories str
A comma-separated list of category names used for filtering
resource_ids str
A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
resource_types str
A comma-separated list of resource types used for filtering. Only resources of the types specified will be returned. Examples include SOURCE, PARSER, LOOKUP, etc.
namespace This property is required. String
The Logging Analytics namespace used for the request.
resourceCategories String
A comma-separated list of category names used for filtering
resourceIds String
A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
resourceTypes String
A comma-separated list of resource types used for filtering. Only resources of the types specified will be returned. Examples include SOURCE, PARSER, LOOKUP, etc.

getLogAnalyticsResourceCategoriesList Result

The following output properties are available:

Categories List<GetLogAnalyticsResourceCategoriesListCategory>
An array of categories. The array contents include detailed information about the distinct set of categories assigned to all the listed resources under items.
Id string
The provider-assigned unique ID for this managed resource.
Items List<GetLogAnalyticsResourceCategoriesListItem>
A list of resources and their category assignments
Namespace string
ResourceCategories string
ResourceIds string
ResourceTypes string
Categories []GetLogAnalyticsResourceCategoriesListCategory
An array of categories. The array contents include detailed information about the distinct set of categories assigned to all the listed resources under items.
Id string
The provider-assigned unique ID for this managed resource.
Items []GetLogAnalyticsResourceCategoriesListItem
A list of resources and their category assignments
Namespace string
ResourceCategories string
ResourceIds string
ResourceTypes string
categories List<GetResourceCategoriesListCategory>
An array of categories. The array contents include detailed information about the distinct set of categories assigned to all the listed resources under items.
id String
The provider-assigned unique ID for this managed resource.
items List<GetResourceCategoriesListItem>
A list of resources and their category assignments
namespace String
resourceCategories String
resourceIds String
resourceTypes String
categories GetLogAnalyticsResourceCategoriesListCategory[]
An array of categories. The array contents include detailed information about the distinct set of categories assigned to all the listed resources under items.
id string
The provider-assigned unique ID for this managed resource.
items GetLogAnalyticsResourceCategoriesListItem[]
A list of resources and their category assignments
namespace string
resourceCategories string
resourceIds string
resourceTypes string
categories Sequence[loganalytics.GetLogAnalyticsResourceCategoriesListCategory]
An array of categories. The array contents include detailed information about the distinct set of categories assigned to all the listed resources under items.
id str
The provider-assigned unique ID for this managed resource.
items Sequence[loganalytics.GetLogAnalyticsResourceCategoriesListItem]
A list of resources and their category assignments
namespace str
resource_categories str
resource_ids str
resource_types str
categories List<Property Map>
An array of categories. The array contents include detailed information about the distinct set of categories assigned to all the listed resources under items.
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
A list of resources and their category assignments
namespace String
resourceCategories String
resourceIds String
resourceTypes String

Supporting Types

GetLogAnalyticsResourceCategoriesListCategory

Description This property is required. string
The category description.
DisplayName This property is required. string
The category display name.
IsSystem This property is required. bool
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
Name This property is required. string
The unique name that identifies the category.
Type This property is required. string
The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
Description This property is required. string
The category description.
DisplayName This property is required. string
The category display name.
IsSystem This property is required. bool
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
Name This property is required. string
The unique name that identifies the category.
Type This property is required. string
The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
description This property is required. String
The category description.
displayName This property is required. String
The category display name.
isSystem This property is required. Boolean
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
name This property is required. String
The unique name that identifies the category.
type This property is required. String
The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
description This property is required. string
The category description.
displayName This property is required. string
The category display name.
isSystem This property is required. boolean
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
name This property is required. string
The unique name that identifies the category.
type This property is required. string
The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
description This property is required. str
The category description.
display_name This property is required. str
The category display name.
is_system This property is required. bool
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
name This property is required. str
The unique name that identifies the category.
type This property is required. str
The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
description This property is required. String
The category description.
displayName This property is required. String
The category display name.
isSystem This property is required. Boolean
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
name This property is required. String
The unique name that identifies the category.
type This property is required. String
The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

GetLogAnalyticsResourceCategoriesListItem

CategoryName This property is required. string
The category name to which this resource belongs.
IsSystem This property is required. bool
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
ResourceId This property is required. string
The unique identifier of the resource, usually a name or ocid.
ResourceType This property is required. string
The resource type.
CategoryName This property is required. string
The category name to which this resource belongs.
IsSystem This property is required. bool
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
ResourceId This property is required. string
The unique identifier of the resource, usually a name or ocid.
ResourceType This property is required. string
The resource type.
categoryName This property is required. String
The category name to which this resource belongs.
isSystem This property is required. Boolean
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
resourceId This property is required. String
The unique identifier of the resource, usually a name or ocid.
resourceType This property is required. String
The resource type.
categoryName This property is required. string
The category name to which this resource belongs.
isSystem This property is required. boolean
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
resourceId This property is required. string
The unique identifier of the resource, usually a name or ocid.
resourceType This property is required. string
The resource type.
category_name This property is required. str
The category name to which this resource belongs.
is_system This property is required. bool
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
resource_id This property is required. str
The unique identifier of the resource, usually a name or ocid.
resource_type This property is required. str
The resource type.
categoryName This property is required. String
The category name to which this resource belongs.
isSystem This property is required. Boolean
The system flag. A value of false denotes a user-created category assignment. A value of true denotes an Oracle-defined category assignment.
resourceId This property is required. String
The unique identifier of the resource, usually a name or ocid.
resourceType This property is required. String
The resource type.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.