ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsDashboardFolders
Explore with Pulumi AI
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:
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. 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
- Cloud Logs Instance Region.
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. 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
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- endpoint
Type String - id String
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. 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
- Cloud Logs Instance Region.
- instance
Id string - Cloud Logs Instance GUID.
- endpoint
Type string - id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. 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
- 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 is36
characters. 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
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- endpoint
Type String - id String
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. 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
- Cloud Logs Instance Region.
getLogsDashboardFolders Result
The following output properties are available:
- Folders
List<Get
Logs Dashboard Folders Folder> - (List) The list of folders.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for folders:
- Constraints: The maximum length is
- Id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Instance
Id string - Region string
- Endpoint
Type string
- Folders
[]Get
Logs Dashboard Folders Folder - (List) The list of folders.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for folders:
- Constraints: The maximum length is
- Id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Instance
Id string - Region string
- Endpoint
Type string
- folders
List<Get
Logs Dashboard Folders Folder> - (List) The list of folders.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for folders:
- Constraints: The maximum length is
- id String
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- instance
Id String - region String
- endpoint
Type String
- folders
Get
Logs Dashboard Folders Folder[] - (List) The list of folders.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for folders:
- Constraints: The maximum length is
- id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- instance
Id string - region string
- endpoint
Type string
- folders
Sequence[Get
Logs Dashboard Folders Folder] - (List) The list of folders.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for folders:
- Constraints: The maximum length is
- id str
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- 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 is0
items. Nested schema for folders:
- Constraints: The maximum length is
- id String
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- instance
Id String - region String
- endpoint
Type String
Supporting Types
GetLogsDashboardFoldersFolder
- Id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Name string
- (String) The dashboard folder name, required.
- 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
- Parent
Id 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 is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Name string
- (String) The dashboard folder name, required.
- 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
- Parent
Id 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 is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id String
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- name String
- (String) The dashboard folder name, required.
- 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
- parent
Id 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 is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id string
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- name string
- (String) The dashboard folder name, required.
- 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
- parent
Id 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 is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id str
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- name str
- (String) The dashboard folder name, required.
- 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
- 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 is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id String
- (String) The dashboard folder ID, uuid.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- name String
- (String) The dashboard folder name, required.
- 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
- parent
Id 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 is36
characters. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.