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

ibm.getLogsDashboardFolders

Explore with Pulumi AI

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

    Provides a read-only data source to retrieve information about logs_dashboard_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 logsDashboardFolders = ibm.getLogsDashboardFolders({
        instanceId: ibm_logs_e2m.logs_e2m_instance.instance_id,
        region: ibm_logs_e2m.logs_e2m_instance.region,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_dashboard_folders = ibm.get_logs_dashboard_folders(instance_id=ibm_logs_e2m["logs_e2m_instance"]["instance_id"],
        region=ibm_logs_e2m["logs_e2m_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.GetLogsDashboardFolders(ctx, &ibm.GetLogsDashboardFoldersArgs{
    			InstanceId: ibm_logs_e2m.Logs_e2m_instance.Instance_id,
    			Region:     pulumi.StringRef(ibm_logs_e2m.Logs_e2m_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 logsDashboardFolders = Ibm.GetLogsDashboardFolders.Invoke(new()
        {
            InstanceId = ibm_logs_e2m.Logs_e2m_instance.Instance_id,
            Region = ibm_logs_e2m.Logs_e2m_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.GetLogsDashboardFoldersArgs;
    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 logsDashboardFolders = IbmFunctions.getLogsDashboardFolders(GetLogsDashboardFoldersArgs.builder()
                .instanceId(ibm_logs_e2m.logs_e2m_instance().instance_id())
                .region(ibm_logs_e2m.logs_e2m_instance().region())
                .build());
    
        }
    }
    
    variables:
      logsDashboardFolders:
        fn::invoke:
          function: ibm:getLogsDashboardFolders
          arguments:
            instanceId: ${ibm_logs_e2m.logs_e2m_instance.instance_id}
            region: ${ibm_logs_e2m.logs_e2m_instance.region}
    

    Using getLogsDashboardFolders

    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 getLogsDashboardFolders(args: GetLogsDashboardFoldersArgs, opts?: InvokeOptions): Promise<GetLogsDashboardFoldersResult>
    function getLogsDashboardFoldersOutput(args: GetLogsDashboardFoldersOutputArgs, opts?: InvokeOptions): Output<GetLogsDashboardFoldersResult>
    def get_logs_dashboard_folders(endpoint_type: Optional[str] = None,
                                   id: Optional[str] = None,
                                   instance_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetLogsDashboardFoldersResult
    def get_logs_dashboard_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[GetLogsDashboardFoldersResult]
    func GetLogsDashboardFolders(ctx *Context, args *GetLogsDashboardFoldersArgs, opts ...InvokeOption) (*GetLogsDashboardFoldersResult, error)
    func GetLogsDashboardFoldersOutput(ctx *Context, args *GetLogsDashboardFoldersOutputArgs, opts ...InvokeOption) GetLogsDashboardFoldersResultOutput

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

    public static class GetLogsDashboardFolders 
    {
        public static Task<GetLogsDashboardFoldersResult> InvokeAsync(GetLogsDashboardFoldersArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsDashboardFoldersResult> Invoke(GetLogsDashboardFoldersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsDashboardFoldersResult> getLogsDashboardFolders(GetLogsDashboardFoldersArgs args, InvokeOptions options)
    public static Output<GetLogsDashboardFoldersResult> getLogsDashboardFolders(GetLogsDashboardFoldersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getLogsDashboardFolders:getLogsDashboardFolders
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Cloud Logs Instance GUID.
    EndpointType string
    Id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Region string
    Cloud Logs Instance Region.
    InstanceId string
    Cloud Logs Instance GUID.
    EndpointType string
    Id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Region string
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    endpointType String
    id String
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    region String
    Cloud Logs Instance Region.
    instanceId string
    Cloud Logs Instance GUID.
    endpointType string
    id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    region string
    Cloud Logs Instance Region.
    instance_id str
    Cloud Logs Instance GUID.
    endpoint_type str
    id str
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    region str
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    endpointType String
    id String
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    region String
    Cloud Logs Instance Region.

    getLogsDashboardFolders Result

    The following output properties are available:

    Folders List<GetLogsDashboardFoldersFolder>
    (List) The list of folders.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for folders:
    Id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    InstanceId string
    Region string
    EndpointType string
    Folders []GetLogsDashboardFoldersFolder
    (List) The list of folders.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for folders:
    Id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    InstanceId string
    Region string
    EndpointType string
    folders List<GetLogsDashboardFoldersFolder>
    (List) The list of folders.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for folders:
    id String
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    instanceId String
    region String
    endpointType String
    folders GetLogsDashboardFoldersFolder[]
    (List) The list of folders.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for folders:
    id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    instanceId string
    region string
    endpointType string
    folders Sequence[GetLogsDashboardFoldersFolder]
    (List) The list of folders.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for folders:
    id str
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    instance_id str
    region str
    endpoint_type str
    folders List<Property Map>
    (List) The list of folders.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for folders:
    id String
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    instanceId String
    region String
    endpointType String

    Supporting Types

    GetLogsDashboardFoldersFolder

    Id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Name string
    (String) The dashboard folder name, required.

    • 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}]+$.
    ParentId string
    (String) The dashboard folder parent ID, optional. If not set, the folder is a root folder, if set, the folder is a subfolder of the parent folder and needs to be a uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Name string
    (String) The dashboard folder name, required.

    • 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}]+$.
    ParentId string
    (String) The dashboard folder parent ID, optional. If not set, the folder is a root folder, if set, the folder is a subfolder of the parent folder and needs to be a uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    id String
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    name String
    (String) The dashboard folder name, required.

    • 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}]+$.
    parentId String
    (String) The dashboard folder parent ID, optional. If not set, the folder is a root folder, if set, the folder is a subfolder of the parent folder and needs to be a uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    id string
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    name string
    (String) The dashboard folder name, required.

    • 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}]+$.
    parentId string
    (String) The dashboard folder parent ID, optional. If not set, the folder is a root folder, if set, the folder is a subfolder of the parent folder and needs to be a uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    id str
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    name str
    (String) The dashboard folder name, required.

    • 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}]+$.
    parent_id str
    (String) The dashboard folder parent ID, optional. If not set, the folder is a root folder, if set, the folder is a subfolder of the parent folder and needs to be a uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    id String
    (String) The dashboard folder ID, uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    name String
    (String) The dashboard folder name, required.

    • 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}]+$.
    parentId String
    (String) The dashboard folder parent ID, optional. If not set, the folder is a root folder, if set, the folder is a subfolder of the parent folder and needs to be a uuid.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud