1. Packages
  2. Ibm Provider
  3. API Docs
  4. getLogsViews
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getLogsViews

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about logs_views. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const logsViewsInstance = ibm.getLogsViews({
        instanceId: ibm_logs_view.logs_view_instance.instance_id,
        region: ibm_logs_view.logs_view_instance.region,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_views_instance = ibm.get_logs_views(instance_id=ibm_logs_view["logs_view_instance"]["instance_id"],
        region=ibm_logs_view["logs_view_instance"]["region"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetLogsViews(ctx, &ibm.GetLogsViewsArgs{
    			InstanceId: ibm_logs_view.Logs_view_instance.Instance_id,
    			Region:     pulumi.StringRef(ibm_logs_view.Logs_view_instance.Region),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var logsViewsInstance = Ibm.GetLogsViews.Invoke(new()
        {
            InstanceId = ibm_logs_view.Logs_view_instance.Instance_id,
            Region = ibm_logs_view.Logs_view_instance.Region,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetLogsViewsArgs;
    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 logsViewsInstance = IbmFunctions.getLogsViews(GetLogsViewsArgs.builder()
                .instanceId(ibm_logs_view.logs_view_instance().instance_id())
                .region(ibm_logs_view.logs_view_instance().region())
                .build());
    
        }
    }
    
    variables:
      logsViewsInstance:
        fn::invoke:
          function: ibm:getLogsViews
          arguments:
            instanceId: ${ibm_logs_view.logs_view_instance.instance_id}
            region: ${ibm_logs_view.logs_view_instance.region}
    

    Using getLogsViews

    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 getLogsViews(args: GetLogsViewsArgs, opts?: InvokeOptions): Promise<GetLogsViewsResult>
    function getLogsViewsOutput(args: GetLogsViewsOutputArgs, opts?: InvokeOptions): Output<GetLogsViewsResult>
    def get_logs_views(endpoint_type: Optional[str] = None,
                       id: Optional[str] = None,
                       instance_id: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLogsViewsResult
    def get_logs_views_output(endpoint_type: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       instance_id: Optional[pulumi.Input[str]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLogsViewsResult]
    func GetLogsViews(ctx *Context, args *GetLogsViewsArgs, opts ...InvokeOption) (*GetLogsViewsResult, error)
    func GetLogsViewsOutput(ctx *Context, args *GetLogsViewsOutputArgs, opts ...InvokeOption) GetLogsViewsResultOutput

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

    public static class GetLogsViews 
    {
        public static Task<GetLogsViewsResult> InvokeAsync(GetLogsViewsArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsViewsResult> Invoke(GetLogsViewsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsViewsResult> getLogsViews(GetLogsViewsArgs args, InvokeOptions options)
    public static Output<GetLogsViewsResult> getLogsViews(GetLogsViewsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getLogsViews:getLogsViews
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Cloud Logs Instance GUID.
    EndpointType string
    Id string
    (Integer) View ID.
    Region string
    Cloud Logs Instance Region.
    InstanceId string
    Cloud Logs Instance GUID.
    EndpointType string
    Id string
    (Integer) View ID.
    Region string
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    endpointType String
    id String
    (Integer) View ID.
    region String
    Cloud Logs Instance Region.
    instanceId string
    Cloud Logs Instance GUID.
    endpointType string
    id string
    (Integer) View ID.
    region string
    Cloud Logs Instance Region.
    instance_id str
    Cloud Logs Instance GUID.
    endpoint_type str
    id str
    (Integer) View ID.
    region str
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    endpointType String
    id String
    (Integer) View ID.
    region String
    Cloud Logs Instance Region.

    getLogsViews Result

    The following output properties are available:

    Id string
    (Integer) View ID.
    InstanceId string
    Region string
    Views List<GetLogsViewsView>
    (List) List of views.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for views:
    EndpointType string
    Id string
    (Integer) View ID.
    InstanceId string
    Region string
    Views []GetLogsViewsView
    (List) List of views.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for views:
    EndpointType string
    id String
    (Integer) View ID.
    instanceId String
    region String
    views List<GetLogsViewsView>
    (List) List of views.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for views:
    endpointType String
    id string
    (Integer) View ID.
    instanceId string
    region string
    views GetLogsViewsView[]
    (List) List of views.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for views:
    endpointType string
    id str
    (Integer) View ID.
    instance_id str
    region str
    views Sequence[GetLogsViewsView]
    (List) List of views.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for views:
    endpoint_type str
    id String
    (Integer) View ID.
    instanceId String
    region String
    views List<Property Map>
    (List) List of views.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for views:
    endpointType String

    Supporting Types

    GetLogsViewsView

    Filters List<GetLogsViewsViewFilter>
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    FolderId string
    (String) View folder ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    Id double
    (Integer) View ID.
    Name string
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    SearchQueries List<GetLogsViewsViewSearchQuery>
    (List) View search query. Nested schema for search_query:
    TimeSelections List<GetLogsViewsViewTimeSelection>
    (List) View time selection. Nested schema for time_selection:
    Filters []GetLogsViewsViewFilter
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    FolderId string
    (String) View folder ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    Id float64
    (Integer) View ID.
    Name string
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    SearchQueries []GetLogsViewsViewSearchQuery
    (List) View search query. Nested schema for search_query:
    TimeSelections []GetLogsViewsViewTimeSelection
    (List) View time selection. Nested schema for time_selection:
    filters List<GetLogsViewsViewFilter>
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    folderId String
    (String) View folder ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    id Double
    (Integer) View ID.
    name String
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    searchQueries List<GetLogsViewsViewSearchQuery>
    (List) View search query. Nested schema for search_query:
    timeSelections List<GetLogsViewsViewTimeSelection>
    (List) View time selection. Nested schema for time_selection:
    filters GetLogsViewsViewFilter[]
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    folderId string
    (String) View folder ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    id number
    (Integer) View ID.
    name string
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    searchQueries GetLogsViewsViewSearchQuery[]
    (List) View search query. Nested schema for search_query:
    timeSelections GetLogsViewsViewTimeSelection[]
    (List) View time selection. Nested schema for time_selection:
    filters Sequence[GetLogsViewsViewFilter]
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    folder_id str
    (String) View folder ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    id float
    (Integer) View ID.
    name str
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    search_queries Sequence[GetLogsViewsViewSearchQuery]
    (List) View search query. Nested schema for search_query:
    time_selections Sequence[GetLogsViewsViewTimeSelection]
    (List) View time selection. Nested schema for time_selection:
    filters List<Property Map>
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    folderId String
    (String) View folder ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    id Number
    (Integer) View ID.
    name String
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    searchQueries List<Property Map>
    (List) View search query. Nested schema for search_query:
    timeSelections List<Property Map>
    (List) View time selection. Nested schema for time_selection:

    GetLogsViewsViewFilter

    Filters List<GetLogsViewsViewFilterFilter>
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    Filters []GetLogsViewsViewFilterFilter
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    filters List<GetLogsViewsViewFilterFilter>
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    filters GetLogsViewsViewFilterFilter[]
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    filters Sequence[GetLogsViewsViewFilterFilter]
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:
    filters List<Property Map>
    (List) Selected filters.

    • Constraints: The maximum length is 4096 items. The minimum length is 1 item. Nested schema for filters:

    GetLogsViewsViewFilterFilter

    Name string
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    SelectedValues Dictionary<string, string>
    (Map) Filter selected values.
    Name string
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    SelectedValues map[string]string
    (Map) Filter selected values.
    name String
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    selectedValues Map<String,String>
    (Map) Filter selected values.
    name string
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    selectedValues {[key: string]: string}
    (Map) Filter selected values.
    name str
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    selected_values Mapping[str, str]
    (Map) Filter selected values.
    name String
    (String) View name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    selectedValues Map<String>
    (Map) Filter selected values.

    GetLogsViewsViewSearchQuery

    Query string
    (String) View search query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Query string
    (String) View search query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    query String
    (String) View search query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    query string
    (String) View search query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    query str
    (String) View search query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    query String
    (String) View search query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.

    GetLogsViewsViewTimeSelection

    CustomSelections List<GetLogsViewsViewTimeSelectionCustomSelection>
    (List) Custom time selection. Nested schema for custom_selection:
    QuickSelections List<GetLogsViewsViewTimeSelectionQuickSelection>
    (List) Quick time selection. Nested schema for quick_selection:
    CustomSelections []GetLogsViewsViewTimeSelectionCustomSelection
    (List) Custom time selection. Nested schema for custom_selection:
    QuickSelections []GetLogsViewsViewTimeSelectionQuickSelection
    (List) Quick time selection. Nested schema for quick_selection:
    customSelections List<GetLogsViewsViewTimeSelectionCustomSelection>
    (List) Custom time selection. Nested schema for custom_selection:
    quickSelections List<GetLogsViewsViewTimeSelectionQuickSelection>
    (List) Quick time selection. Nested schema for quick_selection:
    customSelections GetLogsViewsViewTimeSelectionCustomSelection[]
    (List) Custom time selection. Nested schema for custom_selection:
    quickSelections GetLogsViewsViewTimeSelectionQuickSelection[]
    (List) Quick time selection. Nested schema for quick_selection:
    custom_selections Sequence[GetLogsViewsViewTimeSelectionCustomSelection]
    (List) Custom time selection. Nested schema for custom_selection:
    quick_selections Sequence[GetLogsViewsViewTimeSelectionQuickSelection]
    (List) Quick time selection. Nested schema for quick_selection:
    customSelections List<Property Map>
    (List) Custom time selection. Nested schema for custom_selection:
    quickSelections List<Property Map>
    (List) Quick time selection. Nested schema for quick_selection:

    GetLogsViewsViewTimeSelectionCustomSelection

    FromTime string
    (String) Custom time selection start timestamp.
    ToTime string
    (String) Custom time selection end timestamp.
    FromTime string
    (String) Custom time selection start timestamp.
    ToTime string
    (String) Custom time selection end timestamp.
    fromTime String
    (String) Custom time selection start timestamp.
    toTime String
    (String) Custom time selection end timestamp.
    fromTime string
    (String) Custom time selection start timestamp.
    toTime string
    (String) Custom time selection end timestamp.
    from_time str
    (String) Custom time selection start timestamp.
    to_time str
    (String) Custom time selection end timestamp.
    fromTime String
    (String) Custom time selection start timestamp.
    toTime String
    (String) Custom time selection end timestamp.

    GetLogsViewsViewTimeSelectionQuickSelection

    Caption string
    (String) Quick time selection caption.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Seconds double
    (Integer) Quick time selection amount of seconds.

    • Constraints: The maximum value is 4294967295. The minimum value is 0.
    Caption string
    (String) Quick time selection caption.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Seconds float64
    (Integer) Quick time selection amount of seconds.

    • Constraints: The maximum value is 4294967295. The minimum value is 0.
    caption String
    (String) Quick time selection caption.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    seconds Double
    (Integer) Quick time selection amount of seconds.

    • Constraints: The maximum value is 4294967295. The minimum value is 0.
    caption string
    (String) Quick time selection caption.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    seconds number
    (Integer) Quick time selection amount of seconds.

    • Constraints: The maximum value is 4294967295. The minimum value is 0.
    caption str
    (String) Quick time selection caption.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    seconds float
    (Integer) Quick time selection amount of seconds.

    • Constraints: The maximum value is 4294967295. The minimum value is 0.
    caption String
    (String) Quick time selection caption.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    seconds Number
    (Integer) Quick time selection amount of seconds.

    • Constraints: The maximum value is 4294967295. The minimum value is 0.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud