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

ibm.getLogsViewFolder

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 a logs_view_folder. 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 logsViewFolderInstance = ibm.getLogsViewFolder({
        instanceId: ibm_logs_view_folder.logs_view_folder_instance.instance_id,
        region: ibm_logs_view_folder.logs_view_folder_instance.region,
        logsViewFolderId: ibm_logs_view_folder.logs_view_folder_instance.view_folder_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_view_folder_instance = ibm.get_logs_view_folder(instance_id=ibm_logs_view_folder["logs_view_folder_instance"]["instance_id"],
        region=ibm_logs_view_folder["logs_view_folder_instance"]["region"],
        logs_view_folder_id=ibm_logs_view_folder["logs_view_folder_instance"]["view_folder_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.LookupLogsViewFolder(ctx, &ibm.LookupLogsViewFolderArgs{
    			InstanceId:       ibm_logs_view_folder.Logs_view_folder_instance.Instance_id,
    			Region:           pulumi.StringRef(ibm_logs_view_folder.Logs_view_folder_instance.Region),
    			LogsViewFolderId: ibm_logs_view_folder.Logs_view_folder_instance.View_folder_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 logsViewFolderInstance = Ibm.GetLogsViewFolder.Invoke(new()
        {
            InstanceId = ibm_logs_view_folder.Logs_view_folder_instance.Instance_id,
            Region = ibm_logs_view_folder.Logs_view_folder_instance.Region,
            LogsViewFolderId = ibm_logs_view_folder.Logs_view_folder_instance.View_folder_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.GetLogsViewFolderArgs;
    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 logsViewFolderInstance = IbmFunctions.getLogsViewFolder(GetLogsViewFolderArgs.builder()
                .instanceId(ibm_logs_view_folder.logs_view_folder_instance().instance_id())
                .region(ibm_logs_view_folder.logs_view_folder_instance().region())
                .logsViewFolderId(ibm_logs_view_folder.logs_view_folder_instance().view_folder_id())
                .build());
    
        }
    }
    
    variables:
      logsViewFolderInstance:
        fn::invoke:
          function: ibm:getLogsViewFolder
          arguments:
            instanceId: ${ibm_logs_view_folder.logs_view_folder_instance.instance_id}
            region: ${ibm_logs_view_folder.logs_view_folder_instance.region}
            logsViewFolderId: ${ibm_logs_view_folder.logs_view_folder_instance.view_folder_id}
    

    Using getLogsViewFolder

    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 getLogsViewFolder(args: GetLogsViewFolderArgs, opts?: InvokeOptions): Promise<GetLogsViewFolderResult>
    function getLogsViewFolderOutput(args: GetLogsViewFolderOutputArgs, opts?: InvokeOptions): Output<GetLogsViewFolderResult>
    def get_logs_view_folder(endpoint_type: Optional[str] = None,
                             id: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             logs_view_folder_id: Optional[str] = None,
                             region: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetLogsViewFolderResult
    def get_logs_view_folder_output(endpoint_type: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             logs_view_folder_id: Optional[pulumi.Input[str]] = None,
                             region: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetLogsViewFolderResult]
    func LookupLogsViewFolder(ctx *Context, args *LookupLogsViewFolderArgs, opts ...InvokeOption) (*LookupLogsViewFolderResult, error)
    func LookupLogsViewFolderOutput(ctx *Context, args *LookupLogsViewFolderOutputArgs, opts ...InvokeOption) LookupLogsViewFolderResultOutput

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

    public static class GetLogsViewFolder 
    {
        public static Task<GetLogsViewFolderResult> InvokeAsync(GetLogsViewFolderArgs args, InvokeOptions? opts = null)
        public static Output<GetLogsViewFolderResult> Invoke(GetLogsViewFolderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogsViewFolderResult> getLogsViewFolder(GetLogsViewFolderArgs args, InvokeOptions options)
    public static Output<GetLogsViewFolderResult> getLogsViewFolder(GetLogsViewFolderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getLogsViewFolder:getLogsViewFolder
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Cloud Logs Instance GUID.
    LogsViewFolderId 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}$/.
    EndpointType string
    Id string
    The unique identifier of the logs_view_folder.
    Region string
    Cloud Logs Instance Region.
    InstanceId string
    Cloud Logs Instance GUID.
    LogsViewFolderId 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}$/.
    EndpointType string
    Id string
    The unique identifier of the logs_view_folder.
    Region string
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    logsViewFolderId 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}$/.
    endpointType String
    id String
    The unique identifier of the logs_view_folder.
    region String
    Cloud Logs Instance Region.
    instanceId string
    Cloud Logs Instance GUID.
    logsViewFolderId 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}$/.
    endpointType string
    id string
    The unique identifier of the logs_view_folder.
    region string
    Cloud Logs Instance Region.
    instance_id str
    Cloud Logs Instance GUID.
    logs_view_folder_id str
    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}$/.
    endpoint_type str
    id str
    The unique identifier of the logs_view_folder.
    region str
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    logsViewFolderId 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}$/.
    endpointType String
    id String
    The unique identifier of the logs_view_folder.
    region String
    Cloud Logs Instance Region.

    getLogsViewFolder Result

    The following output properties are available:

    Id string
    The unique identifier of the logs_view_folder.
    InstanceId string
    LogsViewFolderId string
    Name 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}]+$.
    Region string
    EndpointType string
    Id string
    The unique identifier of the logs_view_folder.
    InstanceId string
    LogsViewFolderId string
    Name 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}]+$.
    Region string
    EndpointType string
    id String
    The unique identifier of the logs_view_folder.
    instanceId String
    logsViewFolderId String
    name 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}]+$.
    region String
    endpointType String
    id string
    The unique identifier of the logs_view_folder.
    instanceId string
    logsViewFolderId string
    name 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}]+$.
    region string
    endpointType string
    id str
    The unique identifier of the logs_view_folder.
    instance_id str
    logs_view_folder_id str
    name 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}]+$.
    region str
    endpoint_type str
    id String
    The unique identifier of the logs_view_folder.
    instanceId String
    logsViewFolderId String
    name 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}]+$.
    region String
    endpointType String

    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