Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.LogAnalytics.getLogAnalyticsCategoriesList
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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.
- Category
Display stringText - The category display text used for filtering. Only categories matching the specified display name or description will be returned.
- Category
Type 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.
- Category
Display stringText - The category display text used for filtering. Only categories matching the specified display name or description will be returned.
- Category
Type 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.
- category
Display StringText - The category display text used for filtering. Only categories matching the specified display name or description will be returned.
- category
Type 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.
- category
Display stringText - The category display text used for filtering. Only categories matching the specified display name or description will be returned.
- category
Type 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_ strtext - 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.
- category
Display StringText - The category display text used for filtering. Only categories matching the specified display name or description will be returned.
- category
Type 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<Get
Log Analytics Categories List Item> - An array of categories.
- Namespace string
- Category
Display stringText - Category
Type string - Name string
- The unique name that identifies the category.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Log Analytics Categories List Item - An array of categories.
- Namespace string
- Category
Display stringText - Category
Type string - Name string
- The unique name that identifies the category.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Categories List Item> - An array of categories.
- namespace String
- category
Display StringText - category
Type String - name String
- The unique name that identifies the category.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Log Analytics Categories List Item[] - An array of categories.
- namespace string
- category
Display stringText - category
Type string - name string
- The unique name that identifies the category.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[loganalytics.
Get Log Analytics Categories List Item] - An array of categories.
- namespace str
- category_
display_ strtext - 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
- category
Display StringText - category
Type String - name String
- The unique name that identifies the category.
Supporting Types
GetLogAnalyticsCategoriesListItem
- Description string
- The category description.
- Display
Name string - 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 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.
- Display
Name string - 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 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.
- display
Name String - The category display name.
- is
System 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.
- display
Name string - The category display name.
- is
System 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.
- display
Name String - The category display name.
- is
System 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi