Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Logging.getLogSavedSearch
Explore with Pulumi AI
This data source provides details about a specific Log Saved Search resource in Oracle Cloud Infrastructure Logging service.
Retrieves a LogSavedSearch.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogSavedSearch = oci.Logging.getLogSavedSearch({
logSavedSearchId: testLogSavedSearchOciLoggingLogSavedSearch.id,
});
import pulumi
import pulumi_oci as oci
test_log_saved_search = oci.Logging.get_log_saved_search(log_saved_search_id=test_log_saved_search_oci_logging_log_saved_search["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testLogSavedSearchOciLoggingLogSavedSearch.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testLogSavedSearch = Oci.Logging.GetLogSavedSearch.Invoke(new()
{
LogSavedSearchId = testLogSavedSearchOciLoggingLogSavedSearch.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Logging.LoggingFunctions;
import com.pulumi.oci.Logging.inputs.GetLogSavedSearchArgs;
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) {
final var testLogSavedSearch = LoggingFunctions.getLogSavedSearch(GetLogSavedSearchArgs.builder()
.logSavedSearchId(testLogSavedSearchOciLoggingLogSavedSearch.id())
.build());
}
}
variables:
testLogSavedSearch:
fn::invoke:
Function: oci:Logging:getLogSavedSearch
Arguments:
logSavedSearchId: ${testLogSavedSearchOciLoggingLogSavedSearch.id}
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:
- Log
Saved stringSearch Id - OCID of the logSavedSearch.
- Log
Saved stringSearch Id - OCID of the logSavedSearch.
- log
Saved StringSearch Id - OCID of the logSavedSearch.
- log
Saved stringSearch Id - OCID of the logSavedSearch.
- log_
saved_ strsearch_ id - OCID of the logSavedSearch.
- log
Saved StringSearch Id - OCID of the logSavedSearch.
getLogSavedSearch Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that the resource belongs to.
- Dictionary<string, string>
- 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.
- Dictionary<string, string>
- 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.
- Log
Saved stringSearch Id - 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
- Time
Created string - Time the resource was created.
- Time
Last stringModified - Time the resource was last modified.
- Compartment
Id string - The OCID of the compartment that the resource belongs to.
- map[string]string
- 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.
- map[string]string
- 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.
- Log
Saved stringSearch Id - 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
- Time
Created string - Time the resource was created.
- Time
Last stringModified - Time the resource was last modified.
- compartment
Id String - The OCID of the compartment that the resource belongs to.
- Map<String,String>
- 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.
- Map<String,String>
- 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.
- log
Saved StringSearch Id - 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
- time
Created String - Time the resource was created.
- time
Last StringModified - Time the resource was last modified.
- compartment
Id string - The OCID of the compartment that the resource belongs to.
- {[key: string]: string}
- 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.
- {[key: string]: string}
- 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.
- log
Saved stringSearch Id - 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
- time
Created string - Time the resource was created.
- time
Last stringModified - Time the resource was last modified.
- compartment_
id str - The OCID of the compartment that the resource belongs to.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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_ strsearch_ id - 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_ strmodified - Time the resource was last modified.
- compartment
Id String - The OCID of the compartment that the resource belongs to.
- Map<String>
- 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.
- Map<String>
- 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.
- log
Saved StringSearch Id - 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
- time
Created String - Time the resource was created.
- time
Last StringModified - Time the resource was last modified.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.