ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsView
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a logs_view. 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 logsViewInstance = ibm.getLogsView({
instanceId: ibm_logs_view.logs_view_instance.instance_id,
region: ibm_logs_view.logs_view_instance.region,
logsViewId: ibm_logs_view.logs_view_instance.view_id,
});
import pulumi
import pulumi_ibm as ibm
logs_view_instance = ibm.get_logs_view(instance_id=ibm_logs_view["logs_view_instance"]["instance_id"],
region=ibm_logs_view["logs_view_instance"]["region"],
logs_view_id=ibm_logs_view["logs_view_instance"]["view_id"])
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.LookupLogsView(ctx, &ibm.LookupLogsViewArgs{
InstanceId: ibm_logs_view.Logs_view_instance.Instance_id,
Region: pulumi.StringRef(ibm_logs_view.Logs_view_instance.Region),
LogsViewId: ibm_logs_view.Logs_view_instance.View_id,
}, 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 logsViewInstance = Ibm.GetLogsView.Invoke(new()
{
InstanceId = ibm_logs_view.Logs_view_instance.Instance_id,
Region = ibm_logs_view.Logs_view_instance.Region,
LogsViewId = ibm_logs_view.Logs_view_instance.View_id,
});
});
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.GetLogsViewArgs;
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 logsViewInstance = IbmFunctions.getLogsView(GetLogsViewArgs.builder()
.instanceId(ibm_logs_view.logs_view_instance().instance_id())
.region(ibm_logs_view.logs_view_instance().region())
.logsViewId(ibm_logs_view.logs_view_instance().view_id())
.build());
}
}
variables:
logsViewInstance:
fn::invoke:
function: ibm:getLogsView
arguments:
instanceId: ${ibm_logs_view.logs_view_instance.instance_id}
region: ${ibm_logs_view.logs_view_instance.region}
logsViewId: ${ibm_logs_view.logs_view_instance.view_id}
Using getLogsView
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 getLogsView(args: GetLogsViewArgs, opts?: InvokeOptions): Promise<GetLogsViewResult>
function getLogsViewOutput(args: GetLogsViewOutputArgs, opts?: InvokeOptions): Output<GetLogsViewResult>
def get_logs_view(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
logs_view_id: Optional[float] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsViewResult
def get_logs_view_output(endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
logs_view_id: Optional[pulumi.Input[float]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsViewResult]
func LookupLogsView(ctx *Context, args *LookupLogsViewArgs, opts ...InvokeOption) (*LookupLogsViewResult, error)
func LookupLogsViewOutput(ctx *Context, args *LookupLogsViewOutputArgs, opts ...InvokeOption) LookupLogsViewResultOutput
> Note: This function is named LookupLogsView
in the Go SDK.
public static class GetLogsView
{
public static Task<GetLogsViewResult> InvokeAsync(GetLogsViewArgs args, InvokeOptions? opts = null)
public static Output<GetLogsViewResult> Invoke(GetLogsViewInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsViewResult> getLogsView(GetLogsViewArgs args, InvokeOptions options)
public static Output<GetLogsViewResult> getLogsView(GetLogsViewArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getLogsView:getLogsView
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Cloud Logs Instance GUID.
- Logs
View doubleId - View id.
- Endpoint
Type string - Id string
- The unique identifier of the logs_view.
- Region string
- Cloud Logs Instance Region.
- Instance
Id string - Cloud Logs Instance GUID.
- Logs
View float64Id - View id.
- Endpoint
Type string - Id string
- The unique identifier of the logs_view.
- Region string
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- logs
View DoubleId - View id.
- endpoint
Type String - id String
- The unique identifier of the logs_view.
- region String
- Cloud Logs Instance Region.
- instance
Id string - Cloud Logs Instance GUID.
- logs
View numberId - View id.
- endpoint
Type string - id string
- The unique identifier of the logs_view.
- region string
- Cloud Logs Instance Region.
- instance_
id str - Cloud Logs Instance GUID.
- logs_
view_ floatid - View id.
- endpoint_
type str - id str
- The unique identifier of the logs_view.
- region str
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- logs
View NumberId - View id.
- endpoint
Type String - id String
- The unique identifier of the logs_view.
- region String
- Cloud Logs Instance Region.
getLogsView Result
The following output properties are available:
- Filters
List<Get
Logs 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 string
- The unique identifier of the logs_view.
- Instance
Id string - Logs
View doubleId - 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
- Region string
- Search
Queries List<GetLogs View Search Query> - (List) View search query. Nested schema for search_query:
- Time
Selections List<GetLogs View Time Selection> - (List) View time selection. Nested schema for time_selection:
- Endpoint
Type string
- Filters
[]Get
Logs 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 string
- The unique identifier of the logs_view.
- Instance
Id string - Logs
View float64Id - 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
- Region string
- Search
Queries []GetLogs View Search Query - (List) View search query. Nested schema for search_query:
- Time
Selections []GetLogs View Time Selection - (List) View time selection. Nested schema for time_selection:
- Endpoint
Type string
- filters
List<Get
Logs 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 String
- The unique identifier of the logs_view.
- instance
Id String - logs
View DoubleId - 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
- region String
- search
Queries List<GetLogs View Search Query> - (List) View search query. Nested schema for search_query:
- time
Selections List<GetLogs View Time Selection> - (List) View time selection. Nested schema for time_selection:
- endpoint
Type String
- filters
Get
Logs 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 string
- The unique identifier of the logs_view.
- instance
Id string - logs
View numberId - 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
- region string
- search
Queries GetLogs View Search Query[] - (List) View search query. Nested schema for search_query:
- time
Selections GetLogs View Time Selection[] - (List) View time selection. Nested schema for time_selection:
- endpoint
Type string
- filters
Sequence[Get
Logs 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 str
- The unique identifier of the logs_view.
- instance_
id str - logs_
view_ floatid - 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
- region str
- search_
queries Sequence[GetLogs View Search Query] - (List) View search query. Nested schema for search_query:
- time_
selections Sequence[GetLogs View Time Selection] - (List) View time selection. Nested schema for time_selection:
- endpoint_
type str
- 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 String
- The unique identifier of the logs_view.
- instance
Id String - logs
View NumberId - 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
- region String
- 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:
- endpoint
Type String
Supporting Types
GetLogsViewFilter
- Filters
List<Get
Logs 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 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 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 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 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
GetLogsViewFilterFilter
- 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.
GetLogsViewSearchQuery
- 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
GetLogsViewTimeSelection
- Custom
Selections List<GetLogs View Time Selection Custom Selection> - (List) Custom time selection. Nested schema for custom_selection:
- Quick
Selections List<GetLogs View Time Selection Quick Selection> - (List) Quick time selection. Nested schema for quick_selection:
- Custom
Selections []GetLogs View Time Selection Custom Selection - (List) Custom time selection. Nested schema for custom_selection:
- Quick
Selections []GetLogs View Time Selection Quick Selection - (List) Quick time selection. Nested schema for quick_selection:
- custom
Selections List<GetLogs View Time Selection Custom Selection> - (List) Custom time selection. Nested schema for custom_selection:
- quick
Selections List<GetLogs View Time Selection Quick Selection> - (List) Quick time selection. Nested schema for quick_selection:
- custom
Selections GetLogs View Time Selection Custom Selection[] - (List) Custom time selection. Nested schema for custom_selection:
- quick
Selections GetLogs View Time Selection Quick Selection[] - (List) Quick time selection. Nested schema for quick_selection:
- custom_
selections Sequence[GetLogs View Time Selection Custom Selection] - (List) Custom time selection. Nested schema for custom_selection:
- quick_
selections Sequence[GetLogs 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:
GetLogsViewTimeSelectionCustomSelection
GetLogsViewTimeSelectionQuickSelection
- 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.