oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.LogAnalytics.LogAnalyticsResourceCategoriesManagement

This resource provides the Log Analytics Resource Categories Management resource in Oracle Cloud Infrastructure Log Analytics service.

Updates the category assignments of DASHBOARD and SAVEDSEARCH resources.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testLogAnalyticsResourceCategoriesManagement = new Oci.LogAnalytics.LogAnalyticsResourceCategoriesManagement("testLogAnalyticsResourceCategoriesManagement", new()
    {
        Namespace = @var.Log_analytics_resource_categories_management_namespace,
        ResourceId = oci_log_analytics_resource_categories_management_resource_id,
        ResourceType = @var.Log_analytics_resource_categories_management_resource_type,
        ResourceCategories = @var.Log_analytics_resource_categories_management_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.NewLogAnalyticsResourceCategoriesManagement(ctx, "testLogAnalyticsResourceCategoriesManagement", &LogAnalytics.LogAnalyticsResourceCategoriesManagementArgs{
			Namespace:          pulumi.Any(_var.Log_analytics_resource_categories_management_namespace),
			ResourceId:         pulumi.Any(oci_log_analytics_resource_categories_management_resource_id),
			ResourceType:       pulumi.Any(_var.Log_analytics_resource_categories_management_resource_type),
			ResourceCategories: pulumi.Any(_var.Log_analytics_resource_categories_management_resource_categories),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsResourceCategoriesManagement;
import com.pulumi.oci.LogAnalytics.LogAnalyticsResourceCategoriesManagementArgs;
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) {
        var testLogAnalyticsResourceCategoriesManagement = new LogAnalyticsResourceCategoriesManagement("testLogAnalyticsResourceCategoriesManagement", LogAnalyticsResourceCategoriesManagementArgs.builder()        
            .namespace(var_.log_analytics_resource_categories_management_namespace())
            .resourceId(oci_log_analytics_resource_categories_management_resource_id)
            .resourceType(var_.log_analytics_resource_categories_management_resource_type())
            .resourceCategories(var_.log_analytics_resource_categories_management_resource_categories())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_log_analytics_resource_categories_management = oci.log_analytics.LogAnalyticsResourceCategoriesManagement("testLogAnalyticsResourceCategoriesManagement",
    namespace=var["log_analytics_resource_categories_management_namespace"],
    resource_id=oci_log_analytics_resource_categories_management_resource_id,
    resource_type=var["log_analytics_resource_categories_management_resource_type"],
    resource_categories=var["log_analytics_resource_categories_management_resource_categories"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsResourceCategoriesManagement = new oci.loganalytics.LogAnalyticsResourceCategoriesManagement("testLogAnalyticsResourceCategoriesManagement", {
    namespace: _var.log_analytics_resource_categories_management_namespace,
    resourceId: oci_log_analytics_resource_categories_management_resource_id,
    resourceType: _var.log_analytics_resource_categories_management_resource_type,
    resourceCategories: _var.log_analytics_resource_categories_management_resource_categories,
});
resources:
  testLogAnalyticsResourceCategoriesManagement:
    type: oci:LogAnalytics:LogAnalyticsResourceCategoriesManagement
    properties:
      #Required
      namespace: ${var.log_analytics_resource_categories_management_namespace}
      resourceId: ${oci_log_analytics_resource_categories_management_resource_id}
      resourceType: ${var.log_analytics_resource_categories_management_resource_type}
      resourceCategories: ${var.log_analytics_resource_categories_management_resource_categories}

Create LogAnalyticsResourceCategoriesManagement Resource

new LogAnalyticsResourceCategoriesManagement(name: string, args: LogAnalyticsResourceCategoriesManagementArgs, opts?: CustomResourceOptions);
@overload
def LogAnalyticsResourceCategoriesManagement(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             namespace: Optional[str] = None,
                                             resource_categories: Optional[Sequence[str]] = None,
                                             resource_id: Optional[str] = None,
                                             resource_type: Optional[str] = None)
@overload
def LogAnalyticsResourceCategoriesManagement(resource_name: str,
                                             args: LogAnalyticsResourceCategoriesManagementArgs,
                                             opts: Optional[ResourceOptions] = None)
func NewLogAnalyticsResourceCategoriesManagement(ctx *Context, name string, args LogAnalyticsResourceCategoriesManagementArgs, opts ...ResourceOption) (*LogAnalyticsResourceCategoriesManagement, error)
public LogAnalyticsResourceCategoriesManagement(string name, LogAnalyticsResourceCategoriesManagementArgs args, CustomResourceOptions? opts = null)
public LogAnalyticsResourceCategoriesManagement(String name, LogAnalyticsResourceCategoriesManagementArgs args)
public LogAnalyticsResourceCategoriesManagement(String name, LogAnalyticsResourceCategoriesManagementArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:LogAnalyticsResourceCategoriesManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LogAnalyticsResourceCategoriesManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LogAnalyticsResourceCategoriesManagementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LogAnalyticsResourceCategoriesManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LogAnalyticsResourceCategoriesManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LogAnalyticsResourceCategoriesManagementArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LogAnalyticsResourceCategoriesManagement Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The LogAnalyticsResourceCategoriesManagement resource accepts the following input properties:

Namespace string

The Logging Analytics namespace used for the request.

ResourceCategories List<string>

The list of categories to be assigned to the resource.

ResourceId string

The resource unique identifier for which catagories are managed.

ResourceType string

The resource type of the resource for which categories are managed.

Namespace string

The Logging Analytics namespace used for the request.

ResourceCategories []string

The list of categories to be assigned to the resource.

ResourceId string

The resource unique identifier for which catagories are managed.

ResourceType string

The resource type of the resource for which categories are managed.

namespace String

The Logging Analytics namespace used for the request.

resourceCategories List<String>

The list of categories to be assigned to the resource.

resourceId String

The resource unique identifier for which catagories are managed.

resourceType String

The resource type of the resource for which categories are managed.

namespace string

The Logging Analytics namespace used for the request.

resourceCategories string[]

The list of categories to be assigned to the resource.

resourceId string

The resource unique identifier for which catagories are managed.

resourceType string

The resource type of the resource for which categories are managed.

namespace str

The Logging Analytics namespace used for the request.

resource_categories Sequence[str]

The list of categories to be assigned to the resource.

resource_id str

The resource unique identifier for which catagories are managed.

resource_type str

The resource type of the resource for which categories are managed.

namespace String

The Logging Analytics namespace used for the request.

resourceCategories List<String>

The list of categories to be assigned to the resource.

resourceId String

The resource unique identifier for which catagories are managed.

resourceType String

The resource type of the resource for which categories are managed.

Outputs

All input properties are implicitly available as output properties. Additionally, the LogAnalyticsResourceCategoriesManagement resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing LogAnalyticsResourceCategoriesManagement Resource

Get an existing LogAnalyticsResourceCategoriesManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LogAnalyticsResourceCategoriesManagementState, opts?: CustomResourceOptions): LogAnalyticsResourceCategoriesManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        namespace: Optional[str] = None,
        resource_categories: Optional[Sequence[str]] = None,
        resource_id: Optional[str] = None,
        resource_type: Optional[str] = None) -> LogAnalyticsResourceCategoriesManagement
func GetLogAnalyticsResourceCategoriesManagement(ctx *Context, name string, id IDInput, state *LogAnalyticsResourceCategoriesManagementState, opts ...ResourceOption) (*LogAnalyticsResourceCategoriesManagement, error)
public static LogAnalyticsResourceCategoriesManagement Get(string name, Input<string> id, LogAnalyticsResourceCategoriesManagementState? state, CustomResourceOptions? opts = null)
public static LogAnalyticsResourceCategoriesManagement get(String name, Output<String> id, LogAnalyticsResourceCategoriesManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Namespace string

The Logging Analytics namespace used for the request.

ResourceCategories List<string>

The list of categories to be assigned to the resource.

ResourceId string

The resource unique identifier for which catagories are managed.

ResourceType string

The resource type of the resource for which categories are managed.

Namespace string

The Logging Analytics namespace used for the request.

ResourceCategories []string

The list of categories to be assigned to the resource.

ResourceId string

The resource unique identifier for which catagories are managed.

ResourceType string

The resource type of the resource for which categories are managed.

namespace String

The Logging Analytics namespace used for the request.

resourceCategories List<String>

The list of categories to be assigned to the resource.

resourceId String

The resource unique identifier for which catagories are managed.

resourceType String

The resource type of the resource for which categories are managed.

namespace string

The Logging Analytics namespace used for the request.

resourceCategories string[]

The list of categories to be assigned to the resource.

resourceId string

The resource unique identifier for which catagories are managed.

resourceType string

The resource type of the resource for which categories are managed.

namespace str

The Logging Analytics namespace used for the request.

resource_categories Sequence[str]

The list of categories to be assigned to the resource.

resource_id str

The resource unique identifier for which catagories are managed.

resource_type str

The resource type of the resource for which categories are managed.

namespace String

The Logging Analytics namespace used for the request.

resourceCategories List<String>

The list of categories to be assigned to the resource.

resourceId String

The resource unique identifier for which catagories are managed.

resourceType String

The resource type of the resource for which categories are managed.

Import

LogAnalyticsResourceCategoriesManagement cannot be imported.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.