Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.LogAnalytics.getLogAnalyticsResourceCategoriesList
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 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/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.
- Resource
Categories string - A comma-separated list of category names used for filtering
- Resource
Ids string - A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
- Resource
Types 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.
- Resource
Categories string - A comma-separated list of category names used for filtering
- Resource
Ids string - A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
- Resource
Types 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.
- resource
Categories String - A comma-separated list of category names used for filtering
- resource
Ids String - A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
- resource
Types 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.
- resource
Categories string - A comma-separated list of category names used for filtering
- resource
Ids string - A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
- resource
Types 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.
- resource
Categories String - A comma-separated list of category names used for filtering
- resource
Ids String - A comma-separated list of resource unique identifiers used for filtering. Only resources with matching unique identifiers will be returned.
- resource
Types 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<Get
Log Analytics Resource Categories List Category> - 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<Get
Log Analytics Resource Categories List Item> - A list of resources and their category assignments
- Namespace string
- Resource
Categories string - Resource
Ids string - Resource
Types string
- Categories
[]Get
Log Analytics Resource Categories List Category - 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
[]Get
Log Analytics Resource Categories List Item - A list of resources and their category assignments
- Namespace string
- Resource
Categories string - Resource
Ids string - Resource
Types string
- categories
List<Get
Resource Categories List Category> - 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<Get
Resource Categories List Item> - A list of resources and their category assignments
- namespace String
- resource
Categories String - resource
Ids String - resource
Types String
- categories
Get
Log Analytics Resource Categories List Category[] - 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
Get
Log Analytics Resource Categories List Item[] - A list of resources and their category assignments
- namespace string
- resource
Categories string - resource
Ids string - resource
Types string
- categories
Sequence[loganalytics.
Get Log Analytics Resource Categories List Category] - 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.
Get Log Analytics Resource Categories List Item] - 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
- resource
Categories String - resource
Ids String - resource
Types String
Supporting Types
GetLogAnalyticsResourceCategoriesListCategory
- 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 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.
- Display
Name string - 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 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.
- display
Name String - The category display name.
- is
System 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.
- display
Name string - The category display name.
- is
System 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.
- display
Name String - The category display name.
- is
System 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
- Category
Name string - 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 string - The unique identifier of the resource, usually a name or ocid.
- Resource
Type string - The resource type.
- Category
Name string - 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 string - The unique identifier of the resource, usually a name or ocid.
- Resource
Type string - The resource type.
- category
Name String - The category name to which this resource belongs.
- is
System Boolean - 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 String - The unique identifier of the resource, usually a name or ocid.
- resource
Type String - The resource type.
- category
Name string - The category name to which this resource belongs.
- is
System boolean - 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 string - The unique identifier of the resource, usually a name or ocid.
- resource
Type 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.
- category
Name String - The category name to which this resource belongs.
- is
System Boolean - 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 String - The unique identifier of the resource, usually a name or ocid.
- resource
Type 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi