Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getLogAnalyticsResourceCategoriesList

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLogAnalyticsResourceCategoriesList = Output.Create(Oci.LogAnalytics.GetLogAnalyticsResourceCategoriesList.InvokeAsync(new Oci.LogAnalytics.GetLogAnalyticsResourceCategoriesListArgs
        {
            Namespace = @var.Log_analytics_resource_categories_list_namespace,
            ResourceIds = @var.Log_analytics_resource_categories_list_resource_ids,
            ResourceTypes = @var.Log_analytics_resource_categories_list_resource_types,
            ResourceCategories = @var.Log_analytics_resource_categories_list_resource_categories,
        }));
    }

}
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.GetLogAnalyticsResourceCategoriesList(ctx, &loganalytics.GetLogAnalyticsResourceCategoriesListArgs{
			Namespace:          _var.Log_analytics_resource_categories_list_namespace,
			ResourceIds:        pulumi.StringRef(_var.Log_analytics_resource_categories_list_resource_ids),
			ResourceTypes:      pulumi.StringRef(_var.Log_analytics_resource_categories_list_resource_types),
			ResourceCategories: pulumi.StringRef(_var.Log_analytics_resource_categories_list_resource_categories),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_log_analytics_resource_categories_list = oci.LogAnalytics.get_log_analytics_resource_categories_list(namespace=var["log_analytics_resource_categories_list_namespace"],
    resource_ids=var["log_analytics_resource_categories_list_resource_ids"],
    resource_types=var["log_analytics_resource_categories_list_resource_types"],
    resource_categories=var["log_analytics_resource_categories_list_resource_categories"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsResourceCategoriesList = oci.LogAnalytics.getLogAnalyticsResourceCategoriesList({
    namespace: _var.log_analytics_resource_categories_list_namespace,
    resourceIds: _var.log_analytics_resource_categories_list_resource_ids,
    resourceTypes: _var.log_analytics_resource_categories_list_resource_types,
    resourceCategories: _var.log_analytics_resource_categories_list_resource_categories,
});

Coming soon!

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 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 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.