Oracle Cloud Infrastructure

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

getLogSavedSearch

This data source provides details about a specific Log Saved Search resource in Oracle Cloud Infrastructure Logging service.

Retrieves a log saved search.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLogSavedSearch = Output.Create(Oci.Logging.GetLogSavedSearch.InvokeAsync(new Oci.Logging.GetLogSavedSearchArgs
        {
            LogSavedSearchId = oci_logging_log_saved_search.Test_log_saved_search.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Logging"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Logging.GetLogSavedSearch(ctx, &logging.GetLogSavedSearchArgs{
			LogSavedSearchId: oci_logging_log_saved_search.Test_log_saved_search.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_log_saved_search = oci.Logging.get_log_saved_search(log_saved_search_id=oci_logging_log_saved_search["test_log_saved_search"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogSavedSearch = oci.Logging.getLogSavedSearch({
    logSavedSearchId: oci_logging_log_saved_search.test_log_saved_search.id,
});

Coming soon!

Using getLogSavedSearch

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 getLogSavedSearch(args: GetLogSavedSearchArgs, opts?: InvokeOptions): Promise<GetLogSavedSearchResult>
function getLogSavedSearchOutput(args: GetLogSavedSearchOutputArgs, opts?: InvokeOptions): Output<GetLogSavedSearchResult>
def get_log_saved_search(log_saved_search_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetLogSavedSearchResult
def get_log_saved_search_output(log_saved_search_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetLogSavedSearchResult]
func GetLogSavedSearch(ctx *Context, args *GetLogSavedSearchArgs, opts ...InvokeOption) (*GetLogSavedSearchResult, error)
func GetLogSavedSearchOutput(ctx *Context, args *GetLogSavedSearchOutputArgs, opts ...InvokeOption) GetLogSavedSearchResultOutput

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

public static class GetLogSavedSearch 
{
    public static Task<GetLogSavedSearchResult> InvokeAsync(GetLogSavedSearchArgs args, InvokeOptions? opts = null)
    public static Output<GetLogSavedSearchResult> Invoke(GetLogSavedSearchInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogSavedSearchResult> getLogSavedSearch(GetLogSavedSearchArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Logging/getLogSavedSearch:getLogSavedSearch
  Arguments:
    # Arguments dictionary

The following arguments are supported:

LogSavedSearchId string

OCID of the logSavedSearch

LogSavedSearchId string

OCID of the logSavedSearch

logSavedSearchId String

OCID of the logSavedSearch

logSavedSearchId string

OCID of the logSavedSearch

log_saved_search_id str

OCID of the logSavedSearch

logSavedSearchId String

OCID of the logSavedSearch

getLogSavedSearch Result

The following output properties are available:

CompartmentId string

The OCID of the compartment that the resource belongs to.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

Description for this resource.

FreeformTags Dictionary<string, object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the resource.

LogSavedSearchId string
Name string

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

Query string

The search query that is saved.

State string

The state of the LogSavedSearch

TimeCreated string

Time the resource was created.

TimeLastModified string

Time the resource was last modified.

CompartmentId string

The OCID of the compartment that the resource belongs to.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

Description string

Description for this resource.

FreeformTags map[string]interface{}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the resource.

LogSavedSearchId string
Name string

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

Query string

The search query that is saved.

State string

The state of the LogSavedSearch

TimeCreated string

Time the resource was created.

TimeLastModified string

Time the resource was last modified.

compartmentId String

The OCID of the compartment that the resource belongs to.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

Description for this resource.

freeformTags Map<String,Object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the resource.

logSavedSearchId String
name String

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

query String

The search query that is saved.

state String

The state of the LogSavedSearch

timeCreated String

Time the resource was created.

timeLastModified String

Time the resource was last modified.

compartmentId string

The OCID of the compartment that the resource belongs to.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description string

Description for this resource.

freeformTags {[key: string]: any}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id string

The OCID of the resource.

logSavedSearchId string
name string

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

query string

The search query that is saved.

state string

The state of the LogSavedSearch

timeCreated string

Time the resource was created.

timeLastModified string

Time the resource was last modified.

compartment_id str

The OCID of the compartment that the resource belongs to.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description str

Description for this resource.

freeform_tags Mapping[str, Any]

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id str

The OCID of the resource.

log_saved_search_id str
name str

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

query str

The search query that is saved.

state str

The state of the LogSavedSearch

time_created str

Time the resource was created.

time_last_modified str

Time the resource was last modified.

compartmentId String

The OCID of the compartment that the resource belongs to.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

description String

Description for this resource.

freeformTags Map<Any>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the resource.

logSavedSearchId String
name String

The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.

query String

The search query that is saved.

state String

The state of the LogSavedSearch

timeCreated String

Time the resource was created.

timeLastModified String

Time the resource was last modified.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.