1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsCategoriesList
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.LogAnalytics.getLogAnalyticsCategoriesList

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Returns a list of categories, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as category name or description.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLogAnalyticsCategoriesList = oci.LogAnalytics.getLogAnalyticsCategoriesList({
        namespace: logAnalyticsCategoriesListNamespace,
        categoryDisplayText: logAnalyticsCategoriesListCategoryDisplayText,
        categoryType: logAnalyticsCategoriesListCategoryType,
        name: logAnalyticsCategoriesListName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_log_analytics_categories_list = oci.LogAnalytics.get_log_analytics_categories_list(namespace=log_analytics_categories_list_namespace,
        category_display_text=log_analytics_categories_list_category_display_text,
        category_type=log_analytics_categories_list_category_type,
        name=log_analytics_categories_list_name)
    
    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.GetLogAnalyticsCategoriesList(ctx, &loganalytics.GetLogAnalyticsCategoriesListArgs{
    			Namespace:           logAnalyticsCategoriesListNamespace,
    			CategoryDisplayText: pulumi.StringRef(logAnalyticsCategoriesListCategoryDisplayText),
    			CategoryType:        pulumi.StringRef(logAnalyticsCategoriesListCategoryType),
    			Name:                pulumi.StringRef(logAnalyticsCategoriesListName),
    		}, 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 testLogAnalyticsCategoriesList = Oci.LogAnalytics.GetLogAnalyticsCategoriesList.Invoke(new()
        {
            Namespace = logAnalyticsCategoriesListNamespace,
            CategoryDisplayText = logAnalyticsCategoriesListCategoryDisplayText,
            CategoryType = logAnalyticsCategoriesListCategoryType,
            Name = logAnalyticsCategoriesListName,
        });
    
    });
    
    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.GetLogAnalyticsCategoriesListArgs;
    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 testLogAnalyticsCategoriesList = LogAnalyticsFunctions.getLogAnalyticsCategoriesList(GetLogAnalyticsCategoriesListArgs.builder()
                .namespace(logAnalyticsCategoriesListNamespace)
                .categoryDisplayText(logAnalyticsCategoriesListCategoryDisplayText)
                .categoryType(logAnalyticsCategoriesListCategoryType)
                .name(logAnalyticsCategoriesListName)
                .build());
    
        }
    }
    
    variables:
      testLogAnalyticsCategoriesList:
        fn::invoke:
          Function: oci:LogAnalytics:getLogAnalyticsCategoriesList
          Arguments:
            namespace: ${logAnalyticsCategoriesListNamespace}
            categoryDisplayText: ${logAnalyticsCategoriesListCategoryDisplayText}
            categoryType: ${logAnalyticsCategoriesListCategoryType}
            name: ${logAnalyticsCategoriesListName}
    

    Using getLogAnalyticsCategoriesList

    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 getLogAnalyticsCategoriesList(args: GetLogAnalyticsCategoriesListArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsCategoriesListResult>
    function getLogAnalyticsCategoriesListOutput(args: GetLogAnalyticsCategoriesListOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsCategoriesListResult>
    def get_log_analytics_categories_list(category_display_text: Optional[str] = None,
                                          category_type: Optional[str] = None,
                                          name: Optional[str] = None,
                                          namespace: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsCategoriesListResult
    def get_log_analytics_categories_list_output(category_display_text: Optional[pulumi.Input[str]] = None,
                                          category_type: Optional[pulumi.Input[str]] = None,
                                          name: Optional[pulumi.Input[str]] = None,
                                          namespace: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsCategoriesListResult]
    func GetLogAnalyticsCategoriesList(ctx *Context, args *GetLogAnalyticsCategoriesListArgs, opts ...InvokeOption) (*GetLogAnalyticsCategoriesListResult, error)
    func GetLogAnalyticsCategoriesListOutput(ctx *Context, args *GetLogAnalyticsCategoriesListOutputArgs, opts ...InvokeOption) GetLogAnalyticsCategoriesListResultOutput

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

    public static class GetLogAnalyticsCategoriesList 
    {
        public static Task<GetLogAnalyticsCategoriesListResult> InvokeAsync(GetLogAnalyticsCategoriesListArgs args, InvokeOptions? opts = null)
        public static Output<GetLogAnalyticsCategoriesListResult> Invoke(GetLogAnalyticsCategoriesListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogAnalyticsCategoriesListResult> getLogAnalyticsCategoriesList(GetLogAnalyticsCategoriesListArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsCategoriesList:getLogAnalyticsCategoriesList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    The Logging Analytics namespace used for the request.
    CategoryDisplayText string
    The category display text used for filtering. Only categories matching the specified display name or description will be returned.
    CategoryType string
    A comma-separated list of category types used for filtering. Only categories of the specified types will be returned.
    Name string
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    Namespace string
    The Logging Analytics namespace used for the request.
    CategoryDisplayText string
    The category display text used for filtering. Only categories matching the specified display name or description will be returned.
    CategoryType string
    A comma-separated list of category types used for filtering. Only categories of the specified types will be returned.
    Name string
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    namespace String
    The Logging Analytics namespace used for the request.
    categoryDisplayText String
    The category display text used for filtering. Only categories matching the specified display name or description will be returned.
    categoryType String
    A comma-separated list of category types used for filtering. Only categories of the specified types will be returned.
    name String
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    namespace string
    The Logging Analytics namespace used for the request.
    categoryDisplayText string
    The category display text used for filtering. Only categories matching the specified display name or description will be returned.
    categoryType string
    A comma-separated list of category types used for filtering. Only categories of the specified types will be returned.
    name string
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    namespace str
    The Logging Analytics namespace used for the request.
    category_display_text str
    The category display text used for filtering. Only categories matching the specified display name or description will be returned.
    category_type str
    A comma-separated list of category types used for filtering. Only categories of the specified types will be returned.
    name str
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    namespace String
    The Logging Analytics namespace used for the request.
    categoryDisplayText String
    The category display text used for filtering. Only categories matching the specified display name or description will be returned.
    categoryType String
    A comma-separated list of category types used for filtering. Only categories of the specified types will be returned.
    name String
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.

    getLogAnalyticsCategoriesList Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetLogAnalyticsCategoriesListItem>
    An array of categories.
    Namespace string
    CategoryDisplayText string
    CategoryType string
    Name string
    The unique name that identifies the category.
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetLogAnalyticsCategoriesListItem
    An array of categories.
    Namespace string
    CategoryDisplayText string
    CategoryType string
    Name string
    The unique name that identifies the category.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetCategoriesListItem>
    An array of categories.
    namespace String
    categoryDisplayText String
    categoryType String
    name String
    The unique name that identifies the category.
    id string
    The provider-assigned unique ID for this managed resource.
    items GetLogAnalyticsCategoriesListItem[]
    An array of categories.
    namespace string
    categoryDisplayText string
    categoryType string
    name string
    The unique name that identifies the category.
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[loganalytics.GetLogAnalyticsCategoriesListItem]
    An array of categories.
    namespace str
    category_display_text str
    category_type str
    name str
    The unique name that identifies the category.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    An array of categories.
    namespace String
    categoryDisplayText String
    categoryType String
    name String
    The unique name that identifies the category.

    Supporting Types

    GetLogAnalyticsCategoriesListItem

    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. A value of true denotes an Oracle-defined category.
    Name string
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    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. A value of true denotes an Oracle-defined category.
    Name string
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    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. A value of true denotes an Oracle-defined category.
    name String
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    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. A value of true denotes an Oracle-defined category.
    name string
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    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. A value of true denotes an Oracle-defined category.
    name str
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    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. A value of true denotes an Oracle-defined category.
    name String
    A filter to return only log analytics category whose name matches the entire name given. The match is case-insensitive.
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi