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

ibm.getLogsViewFolders

Explore with Pulumi AI

Provides a read-only data source to retrieve information about logs_view_folders. 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 logsViewFoldersInstance = ibm.getLogsViewFolders({
    instanceId: ibm_logs_view_folder.logs_view_folder_instance.instance_id,
    region: ibm_logs_view_folder.logs_view_folder_instance.region,
});
Copy
import pulumi
import pulumi_ibm as ibm

logs_view_folders_instance = ibm.get_logs_view_folders(instance_id=ibm_logs_view_folder["logs_view_folder_instance"]["instance_id"],
    region=ibm_logs_view_folder["logs_view_folder_instance"]["region"])
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.GetLogsViewFolders(ctx, &ibm.GetLogsViewFoldersArgs{
			InstanceId: ibm_logs_view_folder.Logs_view_folder_instance.Instance_id,
			Region:     pulumi.StringRef(ibm_logs_view_folder.Logs_view_folder_instance.Region),
		}, nil)
		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 logsViewFoldersInstance = Ibm.GetLogsViewFolders.Invoke(new()
    {
        InstanceId = ibm_logs_view_folder.Logs_view_folder_instance.Instance_id,
        Region = ibm_logs_view_folder.Logs_view_folder_instance.Region,
    });

});
Copy
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.GetLogsViewFoldersArgs;
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 logsViewFoldersInstance = IbmFunctions.getLogsViewFolders(GetLogsViewFoldersArgs.builder()
            .instanceId(ibm_logs_view_folder.logs_view_folder_instance().instance_id())
            .region(ibm_logs_view_folder.logs_view_folder_instance().region())
            .build());

    }
}
Copy
variables:
  logsViewFoldersInstance:
    fn::invoke:
      function: ibm:getLogsViewFolders
      arguments:
        instanceId: ${ibm_logs_view_folder.logs_view_folder_instance.instance_id}
        region: ${ibm_logs_view_folder.logs_view_folder_instance.region}
Copy

Using getLogsViewFolders

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 getLogsViewFolders(args: GetLogsViewFoldersArgs, opts?: InvokeOptions): Promise<GetLogsViewFoldersResult>
function getLogsViewFoldersOutput(args: GetLogsViewFoldersOutputArgs, opts?: InvokeOptions): Output<GetLogsViewFoldersResult>
Copy
def get_logs_view_folders(endpoint_type: Optional[str] = None,
                          id: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          region: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetLogsViewFoldersResult
def get_logs_view_folders_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[GetLogsViewFoldersResult]
Copy
func GetLogsViewFolders(ctx *Context, args *GetLogsViewFoldersArgs, opts ...InvokeOption) (*GetLogsViewFoldersResult, error)
func GetLogsViewFoldersOutput(ctx *Context, args *GetLogsViewFoldersOutputArgs, opts ...InvokeOption) GetLogsViewFoldersResultOutput
Copy

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

public static class GetLogsViewFolders 
{
    public static Task<GetLogsViewFoldersResult> InvokeAsync(GetLogsViewFoldersArgs args, InvokeOptions? opts = null)
    public static Output<GetLogsViewFoldersResult> Invoke(GetLogsViewFoldersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLogsViewFoldersResult> getLogsViewFolders(GetLogsViewFoldersArgs args, InvokeOptions options)
public static Output<GetLogsViewFoldersResult> getLogsViewFolders(GetLogsViewFoldersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getLogsViewFolders:getLogsViewFolders
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Cloud Logs Instance GUID.
EndpointType string
Id string
(String) 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}$/.
Region string
Cloud Logs Instance Region.
InstanceId This property is required. string
Cloud Logs Instance GUID.
EndpointType string
Id string
(String) 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}$/.
Region string
Cloud Logs Instance Region.
instanceId This property is required. String
Cloud Logs Instance GUID.
endpointType String
id String
(String) 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}$/.
region String
Cloud Logs Instance Region.
instanceId This property is required. string
Cloud Logs Instance GUID.
endpointType string
id string
(String) 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}$/.
region string
Cloud Logs Instance Region.
instance_id This property is required. str
Cloud Logs Instance GUID.
endpoint_type str
id str
(String) 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}$/.
region str
Cloud Logs Instance Region.
instanceId This property is required. String
Cloud Logs Instance GUID.
endpointType String
id String
(String) 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}$/.
region String
Cloud Logs Instance Region.

getLogsViewFolders Result

The following output properties are available:

Id string
(String) 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
Region string
ViewFolders List<GetLogsViewFoldersViewFolder>
(List) List of view folders.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for view_folders:
EndpointType string
Id string
(String) 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
Region string
ViewFolders []GetLogsViewFoldersViewFolder
(List) List of view folders.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for view_folders:
EndpointType string
id String
(String) 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
region String
viewFolders List<GetLogsViewFoldersViewFolder>
(List) List of view folders.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for view_folders:
endpointType String
id string
(String) 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
region string
viewFolders GetLogsViewFoldersViewFolder[]
(List) List of view folders.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for view_folders:
endpointType string
id str
(String) 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
region str
view_folders Sequence[GetLogsViewFoldersViewFolder]
(List) List of view folders.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for view_folders:
endpoint_type str
id String
(String) 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
region String
viewFolders List<Property Map>
(List) List of view folders.

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

Supporting Types

GetLogsViewFoldersViewFolder

Id This property is required. string
(String) 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}$/.
Name This property is required. string
(String) Folder 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}]+$.
Id This property is required. string
(String) 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}$/.
Name This property is required. string
(String) Folder 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}]+$.
id This property is required. String
(String) 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}$/.
name This property is required. String
(String) Folder 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}]+$.
id This property is required. string
(String) 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}$/.
name This property is required. string
(String) Folder 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}]+$.
id This property is required. str
(String) 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}$/.
name This property is required. str
(String) Folder 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}]+$.
id This property is required. String
(String) 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}$/.
name This property is required. String
(String) Folder 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}]+$.

Package Details

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