1. Packages
  2. Ibm Provider
  3. API Docs
  4. LogsView
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.LogsView

Explore with Pulumi AI

Create, update, and delete logs_views with this resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const logsViewInstance = new ibm.LogsView("logsViewInstance", {
    instanceId: ibm_resource_instance.logs_instance.guid,
    region: ibm_resource_instance.logs_instance.location,
    filters: {
        filters: [
            {
                name: "applicationName",
                selectedValues: {
                    demo: true,
                },
            },
            {
                name: "subsystemName",
                selectedValues: {
                    demo: true,
                },
            },
            {
                name: "operationName",
                selectedValues: {
                    demo: true,
                },
            },
            {
                name: "serviceName",
                selectedValues: {
                    demo: true,
                },
            },
            {
                name: "severity",
                selectedValues: {
                    demo: true,
                },
            },
        ],
    },
    searchQuery: {
        query: "logs",
    },
    timeSelection: {
        customSelection: {
            fromTime: "2024-01-25T11:31:43.152Z",
            toTime: "2024-01-25T11:37:13.238Z",
        },
    },
});
Copy
import pulumi
import pulumi_ibm as ibm

logs_view_instance = ibm.LogsView("logsViewInstance",
    instance_id=ibm_resource_instance["logs_instance"]["guid"],
    region=ibm_resource_instance["logs_instance"]["location"],
    filters={
        "filters": [
            {
                "name": "applicationName",
                "selected_values": {
                    "demo": True,
                },
            },
            {
                "name": "subsystemName",
                "selected_values": {
                    "demo": True,
                },
            },
            {
                "name": "operationName",
                "selected_values": {
                    "demo": True,
                },
            },
            {
                "name": "serviceName",
                "selected_values": {
                    "demo": True,
                },
            },
            {
                "name": "severity",
                "selected_values": {
                    "demo": True,
                },
            },
        ],
    },
    search_query={
        "query": "logs",
    },
    time_selection={
        "custom_selection": {
            "from_time": "2024-01-25T11:31:43.152Z",
            "to_time": "2024-01-25T11:37:13.238Z",
        },
    })
Copy
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.NewLogsView(ctx, "logsViewInstance", &ibm.LogsViewArgs{
			InstanceId: pulumi.Any(ibm_resource_instance.Logs_instance.Guid),
			Region:     pulumi.Any(ibm_resource_instance.Logs_instance.Location),
			Filters: &ibm.LogsViewFiltersArgs{
				Filters: ibm.LogsViewFiltersFilterArray{
					&ibm.LogsViewFiltersFilterArgs{
						Name: pulumi.String("applicationName"),
						SelectedValues: pulumi.BoolMap{
							"demo": pulumi.Bool(true),
						},
					},
					&ibm.LogsViewFiltersFilterArgs{
						Name: pulumi.String("subsystemName"),
						SelectedValues: pulumi.BoolMap{
							"demo": pulumi.Bool(true),
						},
					},
					&ibm.LogsViewFiltersFilterArgs{
						Name: pulumi.String("operationName"),
						SelectedValues: pulumi.BoolMap{
							"demo": pulumi.Bool(true),
						},
					},
					&ibm.LogsViewFiltersFilterArgs{
						Name: pulumi.String("serviceName"),
						SelectedValues: pulumi.BoolMap{
							"demo": pulumi.Bool(true),
						},
					},
					&ibm.LogsViewFiltersFilterArgs{
						Name: pulumi.String("severity"),
						SelectedValues: pulumi.BoolMap{
							"demo": pulumi.Bool(true),
						},
					},
				},
			},
			SearchQuery: &ibm.LogsViewSearchQueryArgs{
				Query: pulumi.String("logs"),
			},
			TimeSelection: &ibm.LogsViewTimeSelectionArgs{
				CustomSelection: &ibm.LogsViewTimeSelectionCustomSelectionArgs{
					FromTime: pulumi.String("2024-01-25T11:31:43.152Z"),
					ToTime:   pulumi.String("2024-01-25T11:37:13.238Z"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var logsViewInstance = new Ibm.LogsView("logsViewInstance", new()
    {
        InstanceId = ibm_resource_instance.Logs_instance.Guid,
        Region = ibm_resource_instance.Logs_instance.Location,
        Filters = new Ibm.Inputs.LogsViewFiltersArgs
        {
            Filters = new[]
            {
                new Ibm.Inputs.LogsViewFiltersFilterArgs
                {
                    Name = "applicationName",
                    SelectedValues = 
                    {
                        { "demo", true },
                    },
                },
                new Ibm.Inputs.LogsViewFiltersFilterArgs
                {
                    Name = "subsystemName",
                    SelectedValues = 
                    {
                        { "demo", true },
                    },
                },
                new Ibm.Inputs.LogsViewFiltersFilterArgs
                {
                    Name = "operationName",
                    SelectedValues = 
                    {
                        { "demo", true },
                    },
                },
                new Ibm.Inputs.LogsViewFiltersFilterArgs
                {
                    Name = "serviceName",
                    SelectedValues = 
                    {
                        { "demo", true },
                    },
                },
                new Ibm.Inputs.LogsViewFiltersFilterArgs
                {
                    Name = "severity",
                    SelectedValues = 
                    {
                        { "demo", true },
                    },
                },
            },
        },
        SearchQuery = new Ibm.Inputs.LogsViewSearchQueryArgs
        {
            Query = "logs",
        },
        TimeSelection = new Ibm.Inputs.LogsViewTimeSelectionArgs
        {
            CustomSelection = new Ibm.Inputs.LogsViewTimeSelectionCustomSelectionArgs
            {
                FromTime = "2024-01-25T11:31:43.152Z",
                ToTime = "2024-01-25T11:37:13.238Z",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.LogsView;
import com.pulumi.ibm.LogsViewArgs;
import com.pulumi.ibm.inputs.LogsViewFiltersArgs;
import com.pulumi.ibm.inputs.LogsViewSearchQueryArgs;
import com.pulumi.ibm.inputs.LogsViewTimeSelectionArgs;
import com.pulumi.ibm.inputs.LogsViewTimeSelectionCustomSelectionArgs;
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) {
        var logsViewInstance = new LogsView("logsViewInstance", LogsViewArgs.builder()
            .instanceId(ibm_resource_instance.logs_instance().guid())
            .region(ibm_resource_instance.logs_instance().location())
            .filters(LogsViewFiltersArgs.builder()
                .filters(                
                    LogsViewFiltersFilterArgs.builder()
                        .name("applicationName")
                        .selectedValues(Map.of("demo", true))
                        .build(),
                    LogsViewFiltersFilterArgs.builder()
                        .name("subsystemName")
                        .selectedValues(Map.of("demo", true))
                        .build(),
                    LogsViewFiltersFilterArgs.builder()
                        .name("operationName")
                        .selectedValues(Map.of("demo", true))
                        .build(),
                    LogsViewFiltersFilterArgs.builder()
                        .name("serviceName")
                        .selectedValues(Map.of("demo", true))
                        .build(),
                    LogsViewFiltersFilterArgs.builder()
                        .name("severity")
                        .selectedValues(Map.of("demo", true))
                        .build())
                .build())
            .searchQuery(LogsViewSearchQueryArgs.builder()
                .query("logs")
                .build())
            .timeSelection(LogsViewTimeSelectionArgs.builder()
                .customSelection(LogsViewTimeSelectionCustomSelectionArgs.builder()
                    .fromTime("2024-01-25T11:31:43.152Z")
                    .toTime("2024-01-25T11:37:13.238Z")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  logsViewInstance:
    type: ibm:LogsView
    properties:
      instanceId: ${ibm_resource_instance.logs_instance.guid}
      region: ${ibm_resource_instance.logs_instance.location}
      filters:
        filters:
          - name: applicationName
            selectedValues:
              demo: true
          - name: subsystemName
            selectedValues:
              demo: true
          - name: operationName
            selectedValues:
              demo: true
          - name: serviceName
            selectedValues:
              demo: true
          - name: severity
            selectedValues:
              demo: true
      searchQuery:
        query: logs
      timeSelection:
        customSelection:
          fromTime: 2024-01-25T11:31:43.152Z
          toTime: 2024-01-25T11:37:13.238Z
Copy

Create LogsView Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new LogsView(name: string, args: LogsViewArgs, opts?: CustomResourceOptions);
@overload
def LogsView(resource_name: str,
             args: LogsViewArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def LogsView(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             instance_id: Optional[str] = None,
             time_selection: Optional[LogsViewTimeSelectionArgs] = None,
             endpoint_type: Optional[str] = None,
             filters: Optional[LogsViewFiltersArgs] = None,
             folder_id: Optional[str] = None,
             logs_view_id: Optional[str] = None,
             name: Optional[str] = None,
             region: Optional[str] = None,
             search_query: Optional[LogsViewSearchQueryArgs] = None)
func NewLogsView(ctx *Context, name string, args LogsViewArgs, opts ...ResourceOption) (*LogsView, error)
public LogsView(string name, LogsViewArgs args, CustomResourceOptions? opts = null)
public LogsView(String name, LogsViewArgs args)
public LogsView(String name, LogsViewArgs args, CustomResourceOptions options)
type: ibm:LogsView
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LogsViewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LogsViewArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LogsViewArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LogsViewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LogsViewArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var logsViewResource = new Ibm.LogsView("logsViewResource", new()
{
    InstanceId = "string",
    TimeSelection = new Ibm.Inputs.LogsViewTimeSelectionArgs
    {
        CustomSelection = new Ibm.Inputs.LogsViewTimeSelectionCustomSelectionArgs
        {
            FromTime = "string",
            ToTime = "string",
        },
        QuickSelection = new Ibm.Inputs.LogsViewTimeSelectionQuickSelectionArgs
        {
            Caption = "string",
            Seconds = 0,
        },
    },
    EndpointType = "string",
    Filters = new Ibm.Inputs.LogsViewFiltersArgs
    {
        Filters = new[]
        {
            new Ibm.Inputs.LogsViewFiltersFilterArgs
            {
                Name = "string",
                SelectedValues = 
                {
                    { "string", false },
                },
            },
        },
    },
    FolderId = "string",
    LogsViewId = "string",
    Name = "string",
    Region = "string",
    SearchQuery = new Ibm.Inputs.LogsViewSearchQueryArgs
    {
        Query = "string",
    },
});
Copy
example, err := ibm.NewLogsView(ctx, "logsViewResource", &ibm.LogsViewArgs{
	InstanceId: pulumi.String("string"),
	TimeSelection: &ibm.LogsViewTimeSelectionArgs{
		CustomSelection: &ibm.LogsViewTimeSelectionCustomSelectionArgs{
			FromTime: pulumi.String("string"),
			ToTime:   pulumi.String("string"),
		},
		QuickSelection: &ibm.LogsViewTimeSelectionQuickSelectionArgs{
			Caption: pulumi.String("string"),
			Seconds: pulumi.Float64(0),
		},
	},
	EndpointType: pulumi.String("string"),
	Filters: &ibm.LogsViewFiltersArgs{
		Filters: ibm.LogsViewFiltersFilterArray{
			&ibm.LogsViewFiltersFilterArgs{
				Name: pulumi.String("string"),
				SelectedValues: pulumi.BoolMap{
					"string": pulumi.Bool(false),
				},
			},
		},
	},
	FolderId:   pulumi.String("string"),
	LogsViewId: pulumi.String("string"),
	Name:       pulumi.String("string"),
	Region:     pulumi.String("string"),
	SearchQuery: &ibm.LogsViewSearchQueryArgs{
		Query: pulumi.String("string"),
	},
})
Copy
var logsViewResource = new LogsView("logsViewResource", LogsViewArgs.builder()
    .instanceId("string")
    .timeSelection(LogsViewTimeSelectionArgs.builder()
        .customSelection(LogsViewTimeSelectionCustomSelectionArgs.builder()
            .fromTime("string")
            .toTime("string")
            .build())
        .quickSelection(LogsViewTimeSelectionQuickSelectionArgs.builder()
            .caption("string")
            .seconds(0)
            .build())
        .build())
    .endpointType("string")
    .filters(LogsViewFiltersArgs.builder()
        .filters(LogsViewFiltersFilterArgs.builder()
            .name("string")
            .selectedValues(Map.of("string", false))
            .build())
        .build())
    .folderId("string")
    .logsViewId("string")
    .name("string")
    .region("string")
    .searchQuery(LogsViewSearchQueryArgs.builder()
        .query("string")
        .build())
    .build());
Copy
logs_view_resource = ibm.LogsView("logsViewResource",
    instance_id="string",
    time_selection={
        "custom_selection": {
            "from_time": "string",
            "to_time": "string",
        },
        "quick_selection": {
            "caption": "string",
            "seconds": 0,
        },
    },
    endpoint_type="string",
    filters={
        "filters": [{
            "name": "string",
            "selected_values": {
                "string": False,
            },
        }],
    },
    folder_id="string",
    logs_view_id="string",
    name="string",
    region="string",
    search_query={
        "query": "string",
    })
Copy
const logsViewResource = new ibm.LogsView("logsViewResource", {
    instanceId: "string",
    timeSelection: {
        customSelection: {
            fromTime: "string",
            toTime: "string",
        },
        quickSelection: {
            caption: "string",
            seconds: 0,
        },
    },
    endpointType: "string",
    filters: {
        filters: [{
            name: "string",
            selectedValues: {
                string: false,
            },
        }],
    },
    folderId: "string",
    logsViewId: "string",
    name: "string",
    region: "string",
    searchQuery: {
        query: "string",
    },
});
Copy
type: ibm:LogsView
properties:
    endpointType: string
    filters:
        filters:
            - name: string
              selectedValues:
                string: false
    folderId: string
    instanceId: string
    logsViewId: string
    name: string
    region: string
    searchQuery:
        query: string
    timeSelection:
        customSelection:
            fromTime: string
            toTime: string
        quickSelection:
            caption: string
            seconds: 0
Copy

LogsView Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LogsView resource accepts the following input properties:

InstanceId This property is required. string
Cloud Logs Instance GUID.
TimeSelection This property is required. LogsViewTimeSelection
View time selection. Nested schema for time_selection:
EndpointType string
Cloud Logs Instance Endpoint type. Allowed values public and private.
Filters LogsViewFilters
View selected filters. Nested schema for filters:
FolderId 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}$/.
LogsViewId string
The unique identifier of the logs_view resource.
Name 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}]+$.
Region string
Cloud Logs Instance Region.
SearchQuery LogsViewSearchQuery
View search query. Nested schema for search_query:
InstanceId This property is required. string
Cloud Logs Instance GUID.
TimeSelection This property is required. LogsViewTimeSelectionArgs
View time selection. Nested schema for time_selection:
EndpointType string
Cloud Logs Instance Endpoint type. Allowed values public and private.
Filters LogsViewFiltersArgs
View selected filters. Nested schema for filters:
FolderId 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}$/.
LogsViewId string
The unique identifier of the logs_view resource.
Name 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}]+$.
Region string
Cloud Logs Instance Region.
SearchQuery LogsViewSearchQueryArgs
View search query. Nested schema for search_query:
instanceId This property is required. String
Cloud Logs Instance GUID.
timeSelection This property is required. LogsViewTimeSelection
View time selection. Nested schema for time_selection:
endpointType String
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters LogsViewFilters
View selected filters. Nested schema for filters:
folderId 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}$/.
logsViewId String
The unique identifier of the logs_view resource.
name 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}]+$.
region String
Cloud Logs Instance Region.
searchQuery LogsViewSearchQuery
View search query. Nested schema for search_query:
instanceId This property is required. string
Cloud Logs Instance GUID.
timeSelection This property is required. LogsViewTimeSelection
View time selection. Nested schema for time_selection:
endpointType string
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters LogsViewFilters
View selected filters. Nested schema for filters:
folderId 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}$/.
logsViewId string
The unique identifier of the logs_view resource.
name 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}]+$.
region string
Cloud Logs Instance Region.
searchQuery LogsViewSearchQuery
View search query. Nested schema for search_query:
instance_id This property is required. str
Cloud Logs Instance GUID.
time_selection This property is required. LogsViewTimeSelectionArgs
View time selection. Nested schema for time_selection:
endpoint_type str
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters LogsViewFiltersArgs
View selected filters. Nested schema for filters:
folder_id str
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}$/.
logs_view_id str
The unique identifier of the logs_view resource.
name str
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}]+$.
region str
Cloud Logs Instance Region.
search_query LogsViewSearchQueryArgs
View search query. Nested schema for search_query:
instanceId This property is required. String
Cloud Logs Instance GUID.
timeSelection This property is required. Property Map
View time selection. Nested schema for time_selection:
endpointType String
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters Property Map
View selected filters. Nested schema for filters:
folderId 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}$/.
logsViewId String
The unique identifier of the logs_view resource.
name 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}]+$.
region String
Cloud Logs Instance Region.
searchQuery Property Map
View search query. Nested schema for search_query:

Outputs

All input properties are implicitly available as output properties. Additionally, the LogsView resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
ViewId string
The unique identifier of the logs_view.
Id string
The provider-assigned unique ID for this managed resource.
ViewId string
The unique identifier of the logs_view.
id String
The provider-assigned unique ID for this managed resource.
viewId String
The unique identifier of the logs_view.
id string
The provider-assigned unique ID for this managed resource.
viewId string
The unique identifier of the logs_view.
id str
The provider-assigned unique ID for this managed resource.
view_id str
The unique identifier of the logs_view.
id String
The provider-assigned unique ID for this managed resource.
viewId String
The unique identifier of the logs_view.

Look up Existing LogsView Resource

Get an existing LogsView resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LogsViewState, opts?: CustomResourceOptions): LogsView
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        endpoint_type: Optional[str] = None,
        filters: Optional[LogsViewFiltersArgs] = None,
        folder_id: Optional[str] = None,
        instance_id: Optional[str] = None,
        logs_view_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        search_query: Optional[LogsViewSearchQueryArgs] = None,
        time_selection: Optional[LogsViewTimeSelectionArgs] = None,
        view_id: Optional[str] = None) -> LogsView
func GetLogsView(ctx *Context, name string, id IDInput, state *LogsViewState, opts ...ResourceOption) (*LogsView, error)
public static LogsView Get(string name, Input<string> id, LogsViewState? state, CustomResourceOptions? opts = null)
public static LogsView get(String name, Output<String> id, LogsViewState state, CustomResourceOptions options)
resources:  _:    type: ibm:LogsView    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
EndpointType string
Cloud Logs Instance Endpoint type. Allowed values public and private.
Filters LogsViewFilters
View selected filters. Nested schema for filters:
FolderId 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}$/.
InstanceId string
Cloud Logs Instance GUID.
LogsViewId string
The unique identifier of the logs_view resource.
Name 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}]+$.
Region string
Cloud Logs Instance Region.
SearchQuery LogsViewSearchQuery
View search query. Nested schema for search_query:
TimeSelection LogsViewTimeSelection
View time selection. Nested schema for time_selection:
ViewId string
The unique identifier of the logs_view.
EndpointType string
Cloud Logs Instance Endpoint type. Allowed values public and private.
Filters LogsViewFiltersArgs
View selected filters. Nested schema for filters:
FolderId 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}$/.
InstanceId string
Cloud Logs Instance GUID.
LogsViewId string
The unique identifier of the logs_view resource.
Name 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}]+$.
Region string
Cloud Logs Instance Region.
SearchQuery LogsViewSearchQueryArgs
View search query. Nested schema for search_query:
TimeSelection LogsViewTimeSelectionArgs
View time selection. Nested schema for time_selection:
ViewId string
The unique identifier of the logs_view.
endpointType String
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters LogsViewFilters
View selected filters. Nested schema for filters:
folderId 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}$/.
instanceId String
Cloud Logs Instance GUID.
logsViewId String
The unique identifier of the logs_view resource.
name 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}]+$.
region String
Cloud Logs Instance Region.
searchQuery LogsViewSearchQuery
View search query. Nested schema for search_query:
timeSelection LogsViewTimeSelection
View time selection. Nested schema for time_selection:
viewId String
The unique identifier of the logs_view.
endpointType string
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters LogsViewFilters
View selected filters. Nested schema for filters:
folderId 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}$/.
instanceId string
Cloud Logs Instance GUID.
logsViewId string
The unique identifier of the logs_view resource.
name 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}]+$.
region string
Cloud Logs Instance Region.
searchQuery LogsViewSearchQuery
View search query. Nested schema for search_query:
timeSelection LogsViewTimeSelection
View time selection. Nested schema for time_selection:
viewId string
The unique identifier of the logs_view.
endpoint_type str
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters LogsViewFiltersArgs
View selected filters. Nested schema for filters:
folder_id str
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}$/.
instance_id str
Cloud Logs Instance GUID.
logs_view_id str
The unique identifier of the logs_view resource.
name str
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}]+$.
region str
Cloud Logs Instance Region.
search_query LogsViewSearchQueryArgs
View search query. Nested schema for search_query:
time_selection LogsViewTimeSelectionArgs
View time selection. Nested schema for time_selection:
view_id str
The unique identifier of the logs_view.
endpointType String
Cloud Logs Instance Endpoint type. Allowed values public and private.
filters Property Map
View selected filters. Nested schema for filters:
folderId 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}$/.
instanceId String
Cloud Logs Instance GUID.
logsViewId String
The unique identifier of the logs_view resource.
name 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}]+$.
region String
Cloud Logs Instance Region.
searchQuery Property Map
View search query. Nested schema for search_query:
timeSelection Property Map
View time selection. Nested schema for time_selection:
viewId String
The unique identifier of the logs_view.

Supporting Types

LogsViewFilters
, LogsViewFiltersArgs

Filters List<LogsViewFiltersFilter>
Selected filters.

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

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

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

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

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

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

LogsViewFiltersFilter
, LogsViewFiltersFilterArgs

Name This property is required. string
Filter 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 This property is required. Dictionary<string, bool>
Filter selected values.
Name This property is required. string
Filter 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 This property is required. map[string]bool
Filter selected values.
name This property is required. String
Filter 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 This property is required. Map<String,Boolean>
Filter selected values.
name This property is required. string
Filter 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 This property is required. {[key: string]: boolean}
Filter selected values.
name This property is required. str
Filter 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 This property is required. Mapping[str, bool]
Filter selected values.
name This property is required. String
Filter 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 This property is required. Map<Boolean>
Filter selected values.

LogsViewSearchQuery
, LogsViewSearchQueryArgs

Query This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. str
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 This property is required. 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}]+$.

LogsViewTimeSelection
, LogsViewTimeSelectionArgs

CustomSelection LogsViewTimeSelectionCustomSelection
Custom time selection. Nested schema for custom_selection:
QuickSelection LogsViewTimeSelectionQuickSelection
Quick time selection. Nested schema for quick_selection:
CustomSelection LogsViewTimeSelectionCustomSelection
Custom time selection. Nested schema for custom_selection:
QuickSelection LogsViewTimeSelectionQuickSelection
Quick time selection. Nested schema for quick_selection:
customSelection LogsViewTimeSelectionCustomSelection
Custom time selection. Nested schema for custom_selection:
quickSelection LogsViewTimeSelectionQuickSelection
Quick time selection. Nested schema for quick_selection:
customSelection LogsViewTimeSelectionCustomSelection
Custom time selection. Nested schema for custom_selection:
quickSelection LogsViewTimeSelectionQuickSelection
Quick time selection. Nested schema for quick_selection:
custom_selection LogsViewTimeSelectionCustomSelection
Custom time selection. Nested schema for custom_selection:
quick_selection LogsViewTimeSelectionQuickSelection
Quick time selection. Nested schema for quick_selection:
customSelection Property Map
Custom time selection. Nested schema for custom_selection:
quickSelection Property Map
Quick time selection. Nested schema for quick_selection:

LogsViewTimeSelectionCustomSelection
, LogsViewTimeSelectionCustomSelectionArgs

FromTime This property is required. string
Custom time selection start timestamp.
ToTime This property is required. string
Custom time selection end timestamp.
FromTime This property is required. string
Custom time selection start timestamp.
ToTime This property is required. string
Custom time selection end timestamp.
fromTime This property is required. String
Custom time selection start timestamp.
toTime This property is required. String
Custom time selection end timestamp.
fromTime This property is required. string
Custom time selection start timestamp.
toTime This property is required. string
Custom time selection end timestamp.
from_time This property is required. str
Custom time selection start timestamp.
to_time This property is required. str
Custom time selection end timestamp.
fromTime This property is required. String
Custom time selection start timestamp.
toTime This property is required. String
Custom time selection end timestamp.

LogsViewTimeSelectionQuickSelection
, LogsViewTimeSelectionQuickSelectionArgs

Caption This property is required. 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 This property is required. double
Quick time selection amount of seconds.

  • Constraints: The maximum value is 4294967295. The minimum value is 0.
Caption This property is required. 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 This property is required. float64
Quick time selection amount of seconds.

  • Constraints: The maximum value is 4294967295. The minimum value is 0.
caption This property is required. 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 This property is required. Double
Quick time selection amount of seconds.

  • Constraints: The maximum value is 4294967295. The minimum value is 0.
caption This property is required. 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 This property is required. number
Quick time selection amount of seconds.

  • Constraints: The maximum value is 4294967295. The minimum value is 0.
caption This property is required. str
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 This property is required. float
Quick time selection amount of seconds.

  • Constraints: The maximum value is 4294967295. The minimum value is 0.
caption This property is required. 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 This property is required. Number
Quick time selection amount of seconds.

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

Import

You can import the ibm_logs_view resource by using id. id combination of region, instance_id and view_id.

Syntax

```sh
$ pulumi import ibm:index/logsView:LogsView logs_view < region >/< instance_id >/< view_id >;
```

Example

$ pulumi import ibm:index/logsView:LogsView logs_view eu-gb/3dc02998-0b50-4ea8-b68a-4779d716fa1f/52
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.