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

oci.LogAnalytics.LogAnalyticsImportCustomContent

This resource provides the Log Analytics Import Custom Content resource in Oracle Cloud Infrastructure Log Analytics service.

Imports the specified custom content from the input in zip format.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testLogAnalyticsImportCustomContent = new Oci.LogAnalytics.LogAnalyticsImportCustomContent("testLogAnalyticsImportCustomContent", new()
    {
        ImportCustomContentFile = @var.Log_analytics_import_custom_content_import_custom_content_file,
        Namespace = @var.Log_analytics_import_custom_content_namespace,
        Expect = @var.Log_analytics_import_custom_content_expect,
        IsOverwrite = @var.Log_analytics_import_custom_content_is_overwrite,
    });

});
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.NewLogAnalyticsImportCustomContent(ctx, "testLogAnalyticsImportCustomContent", &LogAnalytics.LogAnalyticsImportCustomContentArgs{
			ImportCustomContentFile: pulumi.Any(_var.Log_analytics_import_custom_content_import_custom_content_file),
			Namespace:               pulumi.Any(_var.Log_analytics_import_custom_content_namespace),
			Expect:                  pulumi.Any(_var.Log_analytics_import_custom_content_expect),
			IsOverwrite:             pulumi.Any(_var.Log_analytics_import_custom_content_is_overwrite),
		})
		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.LogAnalyticsImportCustomContent;
import com.pulumi.oci.LogAnalytics.LogAnalyticsImportCustomContentArgs;
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 testLogAnalyticsImportCustomContent = new LogAnalyticsImportCustomContent("testLogAnalyticsImportCustomContent", LogAnalyticsImportCustomContentArgs.builder()        
            .importCustomContentFile(var_.log_analytics_import_custom_content_import_custom_content_file())
            .namespace(var_.log_analytics_import_custom_content_namespace())
            .expect(var_.log_analytics_import_custom_content_expect())
            .isOverwrite(var_.log_analytics_import_custom_content_is_overwrite())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_log_analytics_import_custom_content = oci.log_analytics.LogAnalyticsImportCustomContent("testLogAnalyticsImportCustomContent",
    import_custom_content_file=var["log_analytics_import_custom_content_import_custom_content_file"],
    namespace=var["log_analytics_import_custom_content_namespace"],
    expect=var["log_analytics_import_custom_content_expect"],
    is_overwrite=var["log_analytics_import_custom_content_is_overwrite"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsImportCustomContent = new oci.loganalytics.LogAnalyticsImportCustomContent("testLogAnalyticsImportCustomContent", {
    importCustomContentFile: _var.log_analytics_import_custom_content_import_custom_content_file,
    namespace: _var.log_analytics_import_custom_content_namespace,
    expect: _var.log_analytics_import_custom_content_expect,
    isOverwrite: _var.log_analytics_import_custom_content_is_overwrite,
});
resources:
  testLogAnalyticsImportCustomContent:
    type: oci:LogAnalytics:LogAnalyticsImportCustomContent
    properties:
      #Required
      importCustomContentFile: ${var.log_analytics_import_custom_content_import_custom_content_file}
      namespace: ${var.log_analytics_import_custom_content_namespace}
      #Optional
      expect: ${var.log_analytics_import_custom_content_expect}
      isOverwrite: ${var.log_analytics_import_custom_content_is_overwrite}

Create LogAnalyticsImportCustomContent Resource

new LogAnalyticsImportCustomContent(name: string, args: LogAnalyticsImportCustomContentArgs, opts?: CustomResourceOptions);
@overload
def LogAnalyticsImportCustomContent(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    expect: Optional[str] = None,
                                    import_custom_content_file: Optional[str] = None,
                                    is_overwrite: Optional[bool] = None,
                                    namespace: Optional[str] = None)
@overload
def LogAnalyticsImportCustomContent(resource_name: str,
                                    args: LogAnalyticsImportCustomContentArgs,
                                    opts: Optional[ResourceOptions] = None)
func NewLogAnalyticsImportCustomContent(ctx *Context, name string, args LogAnalyticsImportCustomContentArgs, opts ...ResourceOption) (*LogAnalyticsImportCustomContent, error)
public LogAnalyticsImportCustomContent(string name, LogAnalyticsImportCustomContentArgs args, CustomResourceOptions? opts = null)
public LogAnalyticsImportCustomContent(String name, LogAnalyticsImportCustomContentArgs args)
public LogAnalyticsImportCustomContent(String name, LogAnalyticsImportCustomContentArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:LogAnalyticsImportCustomContent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LogAnalyticsImportCustomContentArgs
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 LogAnalyticsImportCustomContentArgs
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 LogAnalyticsImportCustomContentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LogAnalyticsImportCustomContentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LogAnalyticsImportCustomContentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LogAnalyticsImportCustomContent 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 LogAnalyticsImportCustomContent resource accepts the following input properties:

ImportCustomContentFile string

Path to the file to upload which contains the custom content.

Namespace string

The Logging Analytics namespace used for the request.

Expect string

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

IsOverwrite bool

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

ImportCustomContentFile string

Path to the file to upload which contains the custom content.

Namespace string

The Logging Analytics namespace used for the request.

Expect string

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

IsOverwrite bool

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

importCustomContentFile String

Path to the file to upload which contains the custom content.

namespace String

The Logging Analytics namespace used for the request.

expect String

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

isOverwrite Boolean

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

importCustomContentFile string

Path to the file to upload which contains the custom content.

namespace string

The Logging Analytics namespace used for the request.

expect string

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

isOverwrite boolean

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

import_custom_content_file str

Path to the file to upload which contains the custom content.

namespace str

The Logging Analytics namespace used for the request.

expect str

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

is_overwrite bool

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

importCustomContentFile String

Path to the file to upload which contains the custom content.

namespace String

The Logging Analytics namespace used for the request.

expect String

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

isOverwrite Boolean

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

Outputs

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

ChangeLists List<LogAnalyticsImportCustomContentChangeList>

LogAnalyticsImportCustomChangeList

ContentName string

The content name.

FieldNames List<string>

The field names.

Id string

The provider-assigned unique ID for this managed resource.

ParserNames List<string>

The parser names.

SourceNames List<string>

The source names.

ChangeLists []LogAnalyticsImportCustomContentChangeList

LogAnalyticsImportCustomChangeList

ContentName string

The content name.

FieldNames []string

The field names.

Id string

The provider-assigned unique ID for this managed resource.

ParserNames []string

The parser names.

SourceNames []string

The source names.

changeLists List<ImportCustomContentChangeList>

LogAnalyticsImportCustomChangeList

contentName String

The content name.

fieldNames List<String>

The field names.

id String

The provider-assigned unique ID for this managed resource.

parserNames List<String>

The parser names.

sourceNames List<String>

The source names.

changeLists LogAnalyticsImportCustomContentChangeList[]

LogAnalyticsImportCustomChangeList

contentName string

The content name.

fieldNames string[]

The field names.

id string

The provider-assigned unique ID for this managed resource.

parserNames string[]

The parser names.

sourceNames string[]

The source names.

change_lists LogAnalyticsImportCustomContentChangeList]

LogAnalyticsImportCustomChangeList

content_name str

The content name.

field_names Sequence[str]

The field names.

id str

The provider-assigned unique ID for this managed resource.

parser_names Sequence[str]

The parser names.

source_names Sequence[str]

The source names.

changeLists List<Property Map>

LogAnalyticsImportCustomChangeList

contentName String

The content name.

fieldNames List<String>

The field names.

id String

The provider-assigned unique ID for this managed resource.

parserNames List<String>

The parser names.

sourceNames List<String>

The source names.

Look up Existing LogAnalyticsImportCustomContent Resource

Get an existing LogAnalyticsImportCustomContent 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?: LogAnalyticsImportCustomContentState, opts?: CustomResourceOptions): LogAnalyticsImportCustomContent
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        change_lists: Optional[Sequence[_loganalytics.LogAnalyticsImportCustomContentChangeListArgs]] = None,
        content_name: Optional[str] = None,
        expect: Optional[str] = None,
        field_names: Optional[Sequence[str]] = None,
        import_custom_content_file: Optional[str] = None,
        is_overwrite: Optional[bool] = None,
        namespace: Optional[str] = None,
        parser_names: Optional[Sequence[str]] = None,
        source_names: Optional[Sequence[str]] = None) -> LogAnalyticsImportCustomContent
func GetLogAnalyticsImportCustomContent(ctx *Context, name string, id IDInput, state *LogAnalyticsImportCustomContentState, opts ...ResourceOption) (*LogAnalyticsImportCustomContent, error)
public static LogAnalyticsImportCustomContent Get(string name, Input<string> id, LogAnalyticsImportCustomContentState? state, CustomResourceOptions? opts = null)
public static LogAnalyticsImportCustomContent get(String name, Output<String> id, LogAnalyticsImportCustomContentState 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:
ChangeLists List<LogAnalyticsImportCustomContentChangeListArgs>

LogAnalyticsImportCustomChangeList

ContentName string

The content name.

Expect string

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

FieldNames List<string>

The field names.

ImportCustomContentFile string

Path to the file to upload which contains the custom content.

IsOverwrite bool

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

Namespace string

The Logging Analytics namespace used for the request.

ParserNames List<string>

The parser names.

SourceNames List<string>

The source names.

ChangeLists []LogAnalyticsImportCustomContentChangeListArgs

LogAnalyticsImportCustomChangeList

ContentName string

The content name.

Expect string

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

FieldNames []string

The field names.

ImportCustomContentFile string

Path to the file to upload which contains the custom content.

IsOverwrite bool

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

Namespace string

The Logging Analytics namespace used for the request.

ParserNames []string

The parser names.

SourceNames []string

The source names.

changeLists List<ImportCustomContentChangeListArgs>

LogAnalyticsImportCustomChangeList

contentName String

The content name.

expect String

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

fieldNames List<String>

The field names.

importCustomContentFile String

Path to the file to upload which contains the custom content.

isOverwrite Boolean

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

namespace String

The Logging Analytics namespace used for the request.

parserNames List<String>

The parser names.

sourceNames List<String>

The source names.

changeLists LogAnalyticsImportCustomContentChangeListArgs[]

LogAnalyticsImportCustomChangeList

contentName string

The content name.

expect string

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

fieldNames string[]

The field names.

importCustomContentFile string

Path to the file to upload which contains the custom content.

isOverwrite boolean

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

namespace string

The Logging Analytics namespace used for the request.

parserNames string[]

The parser names.

sourceNames string[]

The source names.

change_lists LogAnalyticsImportCustomContentChangeListArgs]

LogAnalyticsImportCustomChangeList

content_name str

The content name.

expect str

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

field_names Sequence[str]

The field names.

import_custom_content_file str

Path to the file to upload which contains the custom content.

is_overwrite bool

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

namespace str

The Logging Analytics namespace used for the request.

parser_names Sequence[str]

The parser names.

source_names Sequence[str]

The source names.

changeLists List<Property Map>

LogAnalyticsImportCustomChangeList

contentName String

The content name.

expect String

A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive).

fieldNames List<String>

The field names.

importCustomContentFile String

Path to the file to upload which contains the custom content.

isOverwrite Boolean

A flag indicating whether or not to overwrite existing content if a conflict is found during import content operation.

namespace String

The Logging Analytics namespace used for the request.

parserNames List<String>

The parser names.

sourceNames List<String>

The source names.

Supporting Types

LogAnalyticsImportCustomContentChangeList

ConflictFieldDisplayNames List<string>

A list of field display names with conflicts.

ConflictParserNames List<string>

A list of parser names with conflicts.

ConflictSourceNames List<string>

A list of source names with conflicts.

CreatedFieldDisplayNames List<string>

An array of created field display names.

CreatedParserNames List<string>

An array of created parser names.

CreatedSourceNames List<string>

An array of created source names.

UpdatedFieldDisplayNames List<string>

An array of updated field display names.

UpdatedParserNames List<string>

An array of updated parser names.

UpdatedSourceNames List<string>

An array of updated source names.

ConflictFieldDisplayNames []string

A list of field display names with conflicts.

ConflictParserNames []string

A list of parser names with conflicts.

ConflictSourceNames []string

A list of source names with conflicts.

CreatedFieldDisplayNames []string

An array of created field display names.

CreatedParserNames []string

An array of created parser names.

CreatedSourceNames []string

An array of created source names.

UpdatedFieldDisplayNames []string

An array of updated field display names.

UpdatedParserNames []string

An array of updated parser names.

UpdatedSourceNames []string

An array of updated source names.

conflictFieldDisplayNames List<String>

A list of field display names with conflicts.

conflictParserNames List<String>

A list of parser names with conflicts.

conflictSourceNames List<String>

A list of source names with conflicts.

createdFieldDisplayNames List<String>

An array of created field display names.

createdParserNames List<String>

An array of created parser names.

createdSourceNames List<String>

An array of created source names.

updatedFieldDisplayNames List<String>

An array of updated field display names.

updatedParserNames List<String>

An array of updated parser names.

updatedSourceNames List<String>

An array of updated source names.

conflictFieldDisplayNames string[]

A list of field display names with conflicts.

conflictParserNames string[]

A list of parser names with conflicts.

conflictSourceNames string[]

A list of source names with conflicts.

createdFieldDisplayNames string[]

An array of created field display names.

createdParserNames string[]

An array of created parser names.

createdSourceNames string[]

An array of created source names.

updatedFieldDisplayNames string[]

An array of updated field display names.

updatedParserNames string[]

An array of updated parser names.

updatedSourceNames string[]

An array of updated source names.

conflict_field_display_names Sequence[str]

A list of field display names with conflicts.

conflict_parser_names Sequence[str]

A list of parser names with conflicts.

conflict_source_names Sequence[str]

A list of source names with conflicts.

created_field_display_names Sequence[str]

An array of created field display names.

created_parser_names Sequence[str]

An array of created parser names.

created_source_names Sequence[str]

An array of created source names.

updated_field_display_names Sequence[str]

An array of updated field display names.

updated_parser_names Sequence[str]

An array of updated parser names.

updated_source_names Sequence[str]

An array of updated source names.

conflictFieldDisplayNames List<String>

A list of field display names with conflicts.

conflictParserNames List<String>

A list of parser names with conflicts.

conflictSourceNames List<String>

A list of source names with conflicts.

createdFieldDisplayNames List<String>

An array of created field display names.

createdParserNames List<String>

An array of created parser names.

createdSourceNames List<String>

An array of created source names.

updatedFieldDisplayNames List<String>

An array of updated field display names.

updatedParserNames List<String>

An array of updated parser names.

updatedSourceNames List<String>

An array of updated source names.

Import

Import is not supported for LogAnalyticsImportCustomContent

Package Details

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

This Pulumi package is based on the oci Terraform Provider.