Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Logging.getLogSavedSearches
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Log Saved Searches in Oracle Cloud Infrastructure Logging service.
Lists LogSavedSearches for this compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogSavedSearches = oci.Logging.getLogSavedSearches({
compartmentId: compartmentId,
logSavedSearchId: testLogSavedSearch.id,
name: logSavedSearchName,
});
import pulumi
import pulumi_oci as oci
test_log_saved_searches = oci.Logging.get_log_saved_searches(compartment_id=compartment_id,
log_saved_search_id=test_log_saved_search["id"],
name=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: compartmentId,
LogSavedSearchId: pulumi.StringRef(testLogSavedSearch.Id),
Name: pulumi.StringRef(logSavedSearchName),
}, 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 testLogSavedSearches = Oci.Logging.GetLogSavedSearches.Invoke(new()
{
CompartmentId = compartmentId,
LogSavedSearchId = testLogSavedSearch.Id,
Name = logSavedSearchName,
});
});
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.GetLogSavedSearchesArgs;
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 testLogSavedSearches = LoggingFunctions.getLogSavedSearches(GetLogSavedSearchesArgs.builder()
.compartmentId(compartmentId)
.logSavedSearchId(testLogSavedSearch.id())
.name(logSavedSearchName)
.build());
}
}
variables:
testLogSavedSearches:
fn::invoke:
Function: oci:Logging:getLogSavedSearches
Arguments:
compartmentId: ${compartmentId}
logSavedSearchId: ${testLogSavedSearch.id}
name: ${logSavedSearchName}
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:
- Compartment
Id string - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- Filters
List<Get
Log Saved Searches Filter> - Log
Saved stringSearch Id - OCID of the LogSavedSearch.
- Name string
- Resource name.
- Compartment
Id string - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- Filters
[]Get
Log Saved Searches Filter - Log
Saved stringSearch Id - OCID of the LogSavedSearch.
- Name string
- Resource name.
- compartment
Id String - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- filters
List<Get
Log Saved Searches Filter> - log
Saved StringSearch Id - OCID of the LogSavedSearch.
- name String
- Resource name.
- compartment
Id string - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- filters
Get
Log Saved Searches Filter[] - log
Saved stringSearch Id - OCID of the LogSavedSearch.
- name string
- Resource name.
- compartment_
id str - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- filters
Sequence[logging.
Get Log Saved Searches Filter] - log_
saved_ strsearch_ id - OCID of the LogSavedSearch.
- name str
- Resource name.
- compartment
Id String - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- filters List<Property Map>
- log
Saved StringSearch Id - OCID of the LogSavedSearch.
- name String
- Resource name.
getLogSavedSearches Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that the resource belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Saved List<GetSearch Summary Collections Log Saved Searches Log Saved Search Summary Collection> - The list of log_saved_search_summary_collection.
- Filters
List<Get
Log Saved Searches Filter> - 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.
- Compartment
Id string - The OCID of the compartment that the resource belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Saved []GetSearch Summary Collections Log Saved Searches Log Saved Search Summary Collection - The list of log_saved_search_summary_collection.
- Filters
[]Get
Log Saved Searches Filter - 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.
- compartment
Id String - The OCID of the compartment that the resource belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Saved List<GetSearch Summary Collections Log Saved Searches Log Saved Search Summary Collection> - The list of log_saved_search_summary_collection.
- filters
List<Get
Log Saved Searches Filter> - 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.
- compartment
Id string - The OCID of the compartment that the resource belongs to.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Saved GetSearch Summary Collections Log Saved Searches Log Saved Search Summary Collection[] - The list of log_saved_search_summary_collection.
- filters
Get
Log Saved Searches Filter[] - 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.
- 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_ Sequence[logging.search_ summary_ collections Get Log Saved Searches Log Saved Search Summary Collection] - The list of log_saved_search_summary_collection.
- filters
Sequence[logging.
Get Log Saved Searches Filter] - 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.
- compartment
Id String - The OCID of the compartment that the resource belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Saved List<Property Map>Search Summary Collections - The list of log_saved_search_summary_collection.
- filters List<Property Map>
- 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.
Supporting Types
GetLogSavedSearchesFilter
GetLogSavedSearchesLogSavedSearchSummaryCollection
GetLogSavedSearchesLogSavedSearchSummaryCollectionItem
- Compartment
Id string - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- 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.
- 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
- Time
Created string - Time the resource was created.
- Time
Last stringModified - Time the resource was last modified.
- Compartment
Id string - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- 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.
- 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
- Time
Created string - Time the resource was created.
- Time
Last stringModified - Time the resource was last modified.
- compartment
Id String - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- 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.
- 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
- time
Created String - Time the resource was created.
- time
Last StringModified - Time the resource was last modified.
- compartment
Id string - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- {[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.
- {[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
- time
Created string - Time the resource was created.
- time
Last stringModified - Time the resource was last modified.
- compartment_
id str - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- 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.
- 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_ strmodified - Time the resource was last modified.
- compartment
Id String - Compartment OCID to list resources in. See compartmentIdInSubtree for nested compartments traversal.
- 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.
- 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
- 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi