ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsViews
Explore with Pulumi AI
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:
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (Integer) View ID.
- Region string
- Cloud Logs Instance Region.
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (Integer) View ID.
- Region string
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- endpoint
Type String - id String
- (Integer) View ID.
- region String
- Cloud Logs Instance Region.
- instance
Id string - Cloud Logs Instance GUID.
- endpoint
Type 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.
- instance
Id String - Cloud Logs Instance GUID.
- endpoint
Type 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.
- Instance
Id string - Region string
- Views
List<Get
Logs Views View> - (List) List of views.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for views:
- Constraints: The maximum length is
- Endpoint
Type string
- Id string
- (Integer) View ID.
- Instance
Id string - Region string
- Views
[]Get
Logs Views View - (List) List of views.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for views:
- Constraints: The maximum length is
- Endpoint
Type string
- id String
- (Integer) View ID.
- instance
Id String - region String
- views
List<Get
Logs Views View> - (List) List of views.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for views:
- Constraints: The maximum length is
- endpoint
Type String
- id string
- (Integer) View ID.
- instance
Id string - region string
- views
Get
Logs Views View[] - (List) List of views.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for views:
- Constraints: The maximum length is
- endpoint
Type string
- id str
- (Integer) View ID.
- instance_
id str - region str
- views
Sequence[Get
Logs Views View] - (List) List of views.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for views:
- Constraints: The maximum length is
- endpoint_
type str
- id String
- (Integer) View ID.
- instance
Id String - region String
- views List<Property Map>
- (List) List of views.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for views:
- Constraints: The maximum length is
- endpoint
Type String
Supporting Types
GetLogsViewsView
- Filters
List<Get
Logs Views View Filter> - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- Folder
Id string - (String) View folder ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Id double
- (Integer) View ID.
- Name string
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Search
Queries List<GetLogs Views View Search Query> - (List) View search query. Nested schema for search_query:
- Time
Selections List<GetLogs Views View Time Selection> - (List) View time selection. Nested schema for time_selection:
- Filters
[]Get
Logs Views View Filter - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- Folder
Id string - (String) View folder ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Id float64
- (Integer) View ID.
- Name string
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Search
Queries []GetLogs Views View Search Query - (List) View search query. Nested schema for search_query:
- Time
Selections []GetLogs Views View Time Selection - (List) View time selection. Nested schema for time_selection:
- filters
List<Get
Logs Views View Filter> - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- folder
Id String - (String) View folder ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- id Double
- (Integer) View ID.
- name String
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- search
Queries List<GetLogs Views View Search Query> - (List) View search query. Nested schema for search_query:
- time
Selections List<GetLogs Views View Time Selection> - (List) View time selection. Nested schema for time_selection:
- filters
Get
Logs Views View Filter[] - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- folder
Id string - (String) View folder ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- id number
- (Integer) View ID.
- name string
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- search
Queries GetLogs Views View Search Query[] - (List) View search query. Nested schema for search_query:
- time
Selections GetLogs Views View Time Selection[] - (List) View time selection. Nested schema for time_selection:
- filters
Sequence[Get
Logs Views View Filter] - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- folder_
id str - (String) View folder ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- id float
- (Integer) View ID.
- name str
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- search_
queries Sequence[GetLogs Views View Search Query] - (List) View search query. Nested schema for search_query:
- time_
selections Sequence[GetLogs Views View Time Selection] - (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 is1
item. Nested schema for filters:
- Constraints: The maximum length is
- folder
Id String - (String) View folder ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- id Number
- (Integer) View ID.
- name String
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- search
Queries List<Property Map> - (List) View search query. Nested schema for search_query:
- time
Selections List<Property Map> - (List) View time selection. Nested schema for time_selection:
GetLogsViewsViewFilter
- Filters
List<Get
Logs Views View Filter Filter> - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- Filters
[]Get
Logs Views View Filter Filter - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- filters
List<Get
Logs Views View Filter Filter> - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- filters
Get
Logs Views View Filter Filter[] - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- filters
Sequence[Get
Logs Views View Filter Filter] - (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
- filters List<Property Map>
- (List) Selected filters.
- Constraints: The maximum length is
4096
items. The minimum length is1
item. Nested schema for filters:
- Constraints: The maximum length is
GetLogsViewsViewFilterFilter
- Name string
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Selected
Values Dictionary<string, string> - (Map) Filter selected values.
- Name string
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Selected
Values map[string]string - (Map) Filter selected values.
- name String
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- selected
Values Map<String,String> - (Map) Filter selected values.
- name string
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- selected
Values {[key: string]: string} - (Map) Filter selected values.
- name str
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- selected_
values Mapping[str, str] - (Map) Filter selected values.
- name String
- (String) View name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- selected
Values Map<String> - (Map) Filter selected values.
GetLogsViewsViewSearchQuery
- Query string
- (String) View search query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Query string
- (String) View search query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- query String
- (String) View search query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- query string
- (String) View search query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- query str
- (String) View search query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- query String
- (String) View search query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
GetLogsViewsViewTimeSelection
- Custom
Selections List<GetLogs Views View Time Selection Custom Selection> - (List) Custom time selection. Nested schema for custom_selection:
- Quick
Selections List<GetLogs Views View Time Selection Quick Selection> - (List) Quick time selection. Nested schema for quick_selection:
- Custom
Selections []GetLogs Views View Time Selection Custom Selection - (List) Custom time selection. Nested schema for custom_selection:
- Quick
Selections []GetLogs Views View Time Selection Quick Selection - (List) Quick time selection. Nested schema for quick_selection:
- custom
Selections List<GetLogs Views View Time Selection Custom Selection> - (List) Custom time selection. Nested schema for custom_selection:
- quick
Selections List<GetLogs Views View Time Selection Quick Selection> - (List) Quick time selection. Nested schema for quick_selection:
- custom
Selections GetLogs Views View Time Selection Custom Selection[] - (List) Custom time selection. Nested schema for custom_selection:
- quick
Selections GetLogs Views View Time Selection Quick Selection[] - (List) Quick time selection. Nested schema for quick_selection:
- custom_
selections Sequence[GetLogs Views View Time Selection Custom Selection] - (List) Custom time selection. Nested schema for custom_selection:
- quick_
selections Sequence[GetLogs Views View Time Selection Quick Selection] - (List) Quick time selection. Nested schema for quick_selection:
- custom
Selections List<Property Map> - (List) Custom time selection. Nested schema for custom_selection:
- quick
Selections List<Property Map> - (List) Quick time selection. Nested schema for quick_selection:
GetLogsViewsViewTimeSelectionCustomSelection
GetLogsViewsViewTimeSelectionQuickSelection
- Caption string
- (String) Quick time selection caption.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Seconds double
- (Integer) Quick time selection amount of seconds.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Caption string
- (String) Quick time selection caption.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Seconds float64
- (Integer) Quick time selection amount of seconds.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- caption String
- (String) Quick time selection caption.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- seconds Double
- (Integer) Quick time selection amount of seconds.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- caption string
- (String) Quick time selection caption.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- seconds number
- (Integer) Quick time selection amount of seconds.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- caption str
- (String) Quick time selection caption.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- seconds float
- (Integer) Quick time selection amount of seconds.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- caption String
- (String) Quick time selection caption.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- seconds Number
- (Integer) Quick time selection amount of seconds.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.