1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsResourceCategoriesList
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.LogAnalytics.getLogAnalyticsResourceCategoriesList

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testLogAnalyticsResourceCategoriesList:
        fn::invoke:
          Function: oci:LogAnalytics:getLogAnalyticsResourceCategoriesList
          Arguments:
            namespace: ${logAnalyticsResourceCategoriesListNamespace}
            resourceIds: ${logAnalyticsResourceCategoriesListResourceIds}
            resourceTypes: ${logAnalyticsResourceCategoriesListResourceTypes}
            resourceCategories: ${logAnalyticsResourceCategoriesListResourceCategories}
    

    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>
    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]
    func GetLogAnalyticsResourceCategoriesList(ctx *Context, args *GetLogAnalyticsResourceCategoriesListArgs, opts ...InvokeOption) (*GetLogAnalyticsResourceCategoriesListResult, error)
    func GetLogAnalyticsResourceCategoriesListOutput(ctx *Context, args *GetLogAnalyticsResourceCategoriesListOutputArgs, opts ...InvokeOption) GetLogAnalyticsResourceCategoriesListResultOutput

    > 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)
    }
    public static CompletableFuture<GetLogAnalyticsResourceCategoriesListResult> getLogAnalyticsResourceCategoriesList(GetLogAnalyticsResourceCategoriesListArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsResourceCategoriesList:getLogAnalyticsResourceCategoriesList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace 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 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 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 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 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 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 string
    The category description.
    DisplayName string
    The category display name.
    IsSystem 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 string
    The unique name that identifies the category.
    Type string
    The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
    Description string
    The category description.
    DisplayName string
    The category display name.
    IsSystem 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 string
    The unique name that identifies the category.
    Type string
    The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
    description String
    The category description.
    displayName String
    The category display name.
    isSystem 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 String
    The unique name that identifies the category.
    type String
    The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
    description string
    The category description.
    displayName string
    The category display name.
    isSystem 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 string
    The unique name that identifies the category.
    type string
    The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
    description str
    The category description.
    display_name str
    The category display name.
    is_system 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 str
    The unique name that identifies the category.
    type str
    The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".
    description String
    The category description.
    displayName String
    The category display name.
    isSystem 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 String
    The unique name that identifies the category.
    type String
    The category type. Values include "PRODUCT", "TIER", "VENDOR" and "GENERIC".

    GetLogAnalyticsResourceCategoriesListItem

    CategoryName string
    The category name to which this resource belongs.
    IsSystem 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 string
    The unique identifier of the resource, usually a name or ocid.
    ResourceType string
    The resource type.
    CategoryName string
    The category name to which this resource belongs.
    IsSystem 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 string
    The unique identifier of the resource, usually a name or ocid.
    ResourceType string
    The resource type.
    categoryName String
    The category name to which this resource belongs.
    isSystem 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 String
    The unique identifier of the resource, usually a name or ocid.
    resourceType String
    The resource type.
    categoryName string
    The category name to which this resource belongs.
    isSystem 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 string
    The unique identifier of the resource, usually a name or ocid.
    resourceType string
    The resource type.
    category_name str
    The category name to which this resource belongs.
    is_system 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 str
    The unique identifier of the resource, usually a name or ocid.
    resource_type str
    The resource type.
    categoryName String
    The category name to which this resource belongs.
    isSystem 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 String
    The unique identifier of the resource, usually a name or ocid.
    resourceType 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi