Oracle Cloud Infrastructure

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

getLogSavedSearches

This data source provides the list of Log Saved Searches in Oracle Cloud Infrastructure Logging service.

Lists Logging Saved Searches for this compartment.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLogSavedSearches = Output.Create(Oci.Logging.GetLogSavedSearches.InvokeAsync(new Oci.Logging.GetLogSavedSearchesArgs
        {
            CompartmentId = @var.Compartment_id,
            LogSavedSearchId = oci_logging_log_saved_search.Test_log_saved_search.Id,
            Name = @var.Log_saved_search_name,
        }));
    }

}
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.GetLogSavedSearches(ctx, &logging.GetLogSavedSearchesArgs{
			CompartmentId:    _var.Compartment_id,
			LogSavedSearchId: pulumi.StringRef(oci_logging_log_saved_search.Test_log_saved_search.Id),
			Name:             pulumi.StringRef(_var.Log_saved_search_name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_log_saved_searches = oci.Logging.get_log_saved_searches(compartment_id=var["compartment_id"],
    log_saved_search_id=oci_logging_log_saved_search["test_log_saved_search"]["id"],
    name=var["log_saved_search_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogSavedSearches = oci.Logging.getLogSavedSearches({
    compartmentId: _var.compartment_id,
    logSavedSearchId: oci_logging_log_saved_search.test_log_saved_search.id,
    name: _var.log_saved_search_name,
});

Coming soon!

Using getLogSavedSearches

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 getLogSavedSearches(args: GetLogSavedSearchesArgs, opts?: InvokeOptions): Promise<GetLogSavedSearchesResult>
function getLogSavedSearchesOutput(args: GetLogSavedSearchesOutputArgs, opts?: InvokeOptions): Output<GetLogSavedSearchesResult>
def get_log_saved_searches(compartment_id: Optional[str] = None,
                           filters: Optional[Sequence[_logging.GetLogSavedSearchesFilter]] = None,
                           log_saved_search_id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLogSavedSearchesResult
def get_log_saved_searches_output(compartment_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_logging.GetLogSavedSearchesFilterArgs]]]] = None,
                           log_saved_search_id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLogSavedSearchesResult]
func GetLogSavedSearches(ctx *Context, args *GetLogSavedSearchesArgs, opts ...InvokeOption) (*GetLogSavedSearchesResult, error)
func GetLogSavedSearchesOutput(ctx *Context, args *GetLogSavedSearchesOutputArgs, opts ...InvokeOption) GetLogSavedSearchesResultOutput

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

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

The following arguments are supported:

CompartmentId string

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

Filters List<GetLogSavedSearchesFilter>
LogSavedSearchId string

OCID of the LogSavedSearch

Name string

Resource name

CompartmentId string

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

Filters []GetLogSavedSearchesFilter
LogSavedSearchId string

OCID of the LogSavedSearch

Name string

Resource name

compartmentId String

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

filters List<GetLogSavedSearchesFilter>
logSavedSearchId String

OCID of the LogSavedSearch

name String

Resource name

compartmentId string

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

filters GetLogSavedSearchesFilter[]
logSavedSearchId string

OCID of the LogSavedSearch

name string

Resource name

compartment_id str

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

filters GetLogSavedSearchesFilter]
log_saved_search_id str

OCID of the LogSavedSearch

name str

Resource name

compartmentId String

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

filters List<Property Map>
logSavedSearchId String

OCID of the LogSavedSearch

name String

Resource name

getLogSavedSearches Result

The following output properties are available:

CompartmentId string

The OCID of the compartment that the resource belongs to.

Id string

The provider-assigned unique ID for this managed resource.

LogSavedSearchSummaryCollections List<GetLogSavedSearchesLogSavedSearchSummaryCollection>

The list of log_saved_search_summary_collection.

Filters List<GetLogSavedSearchesFilter>
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.

CompartmentId string

The OCID of the compartment that the resource belongs to.

Id string

The provider-assigned unique ID for this managed resource.

LogSavedSearchSummaryCollections []GetLogSavedSearchesLogSavedSearchSummaryCollection

The list of log_saved_search_summary_collection.

Filters []GetLogSavedSearchesFilter
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.

compartmentId String

The OCID of the compartment that the resource belongs to.

id String

The provider-assigned unique ID for this managed resource.

logSavedSearchSummaryCollections List<GetLogSavedSearchesLogSavedSearchSummaryCollection>

The list of log_saved_search_summary_collection.

filters List<GetLogSavedSearchesFilter>
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.

compartmentId string

The OCID of the compartment that the resource belongs to.

id string

The provider-assigned unique ID for this managed resource.

logSavedSearchSummaryCollections GetLogSavedSearchesLogSavedSearchSummaryCollection[]

The list of log_saved_search_summary_collection.

filters GetLogSavedSearchesFilter[]
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.

compartment_id str

The OCID of the compartment that the resource belongs to.

id str

The provider-assigned unique ID for this managed resource.

log_saved_search_summary_collections GetLogSavedSearchesLogSavedSearchSummaryCollection]

The list of log_saved_search_summary_collection.

filters GetLogSavedSearchesFilter]
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.

compartmentId String

The OCID of the compartment that the resource belongs to.

id String

The provider-assigned unique ID for this managed resource.

logSavedSearchSummaryCollections List<Property Map>

The list of log_saved_search_summary_collection.

filters List<Property Map>
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.

Supporting Types

GetLogSavedSearchesFilter

Name string

Resource name

Values List<string>
Regex bool
Name string

Resource name

Values []string
Regex bool
name String

Resource name

values List<String>
regex Boolean
name string

Resource name

values string[]
regex boolean
name str

Resource name

values Sequence[str]
regex bool
name String

Resource name

values List<String>
regex Boolean

GetLogSavedSearchesLogSavedSearchSummaryCollection

GetLogSavedSearchesLogSavedSearchSummaryCollectionItem

CompartmentId string

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

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.

Name string

Resource name

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

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

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.

Name string

Resource name

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

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

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.

name String

Resource name

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

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

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.

name string

Resource name

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

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

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.

name str

Resource name

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

Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.

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.

name String

Resource name

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.