Oracle Cloud Infrastructure

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

getLogAnalyticsPreference

This data source provides details about a specific Log Analytics Preference resource in Oracle Cloud Infrastructure Log Analytics service.

Lists the preferences of the tenant. Currently, only “DEFAULT_HOMEPAGE” is supported.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLogAnalyticsPreference = Output.Create(Oci.LogAnalytics.GetLogAnalyticsPreference.InvokeAsync(new Oci.LogAnalytics.GetLogAnalyticsPreferenceArgs
        {
            Namespace = @var.Log_analytics_preference_namespace,
        }));
    }

}
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.GetLogAnalyticsPreference(ctx, &loganalytics.GetLogAnalyticsPreferenceArgs{
			Namespace: _var.Log_analytics_preference_namespace,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_log_analytics_preference = oci.LogAnalytics.get_log_analytics_preference(namespace=var["log_analytics_preference_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsPreference = oci.LogAnalytics.getLogAnalyticsPreference({
    namespace: _var.log_analytics_preference_namespace,
});

Coming soon!

Using getLogAnalyticsPreference

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 getLogAnalyticsPreference(args: GetLogAnalyticsPreferenceArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsPreferenceResult>
function getLogAnalyticsPreferenceOutput(args: GetLogAnalyticsPreferenceOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsPreferenceResult>
def get_log_analytics_preference(namespace: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsPreferenceResult
def get_log_analytics_preference_output(namespace: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsPreferenceResult]
func GetLogAnalyticsPreference(ctx *Context, args *GetLogAnalyticsPreferenceArgs, opts ...InvokeOption) (*GetLogAnalyticsPreferenceResult, error)
func GetLogAnalyticsPreferenceOutput(ctx *Context, args *GetLogAnalyticsPreferenceOutputArgs, opts ...InvokeOption) GetLogAnalyticsPreferenceResultOutput

> Note: This function is named GetLogAnalyticsPreference in the Go SDK.

public static class GetLogAnalyticsPreference 
{
    public static Task<GetLogAnalyticsPreferenceResult> InvokeAsync(GetLogAnalyticsPreferenceArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsPreferenceResult> Invoke(GetLogAnalyticsPreferenceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogAnalyticsPreferenceResult> getLogAnalyticsPreference(GetLogAnalyticsPreferenceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:LogAnalytics/getLogAnalyticsPreference:getLogAnalyticsPreference
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Namespace string

The Logging Analytics namespace used for the request.

Namespace string

The Logging Analytics namespace used for the request.

namespace String

The Logging Analytics namespace used for the request.

namespace string

The Logging Analytics namespace used for the request.

namespace str

The Logging Analytics namespace used for the request.

namespace String

The Logging Analytics namespace used for the request.

getLogAnalyticsPreference Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Items List<GetLogAnalyticsPreferenceItem>

An array of tenant preferences.

Namespace string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetLogAnalyticsPreferenceItem

An array of tenant preferences.

Namespace string
id String

The provider-assigned unique ID for this managed resource.

items List<GetPreferenceItem>

An array of tenant preferences.

namespace String
id string

The provider-assigned unique ID for this managed resource.

items GetLogAnalyticsPreferenceItem[]

An array of tenant preferences.

namespace string
id str

The provider-assigned unique ID for this managed resource.

items GetLogAnalyticsPreferenceItem]

An array of tenant preferences.

namespace str
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

An array of tenant preferences.

namespace String

Supporting Types

GetLogAnalyticsPreferenceItem

Name string

The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported.

Value string

The preference value.

Name string

The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported.

Value string

The preference value.

name String

The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported.

value String

The preference value.

name string

The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported.

value string

The preference value.

name str

The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported.

value str

The preference value.

name String

The preference name. Currently, only "DEFAULT_HOMEPAGE" is supported.

value String

The preference value.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.