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

ibm.LogsViewFolder

Explore with Pulumi AI

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

    Create, update, and delete logs_view_folders with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const logsViewFolderInstance = new ibm.LogsViewFolder("logsViewFolderInstance", {
        instanceId: ibm_resource_instance.logs_instance.guid,
        region: ibm_resource_instance.logs_instance.location,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_view_folder_instance = ibm.LogsViewFolder("logsViewFolderInstance",
        instance_id=ibm_resource_instance["logs_instance"]["guid"],
        region=ibm_resource_instance["logs_instance"]["location"])
    
    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.NewLogsViewFolder(ctx, "logsViewFolderInstance", &ibm.LogsViewFolderArgs{
    			InstanceId: pulumi.Any(ibm_resource_instance.Logs_instance.Guid),
    			Region:     pulumi.Any(ibm_resource_instance.Logs_instance.Location),
    		})
    		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 = new Ibm.LogsViewFolder("logsViewFolderInstance", new()
        {
            InstanceId = ibm_resource_instance.Logs_instance.Guid,
            Region = ibm_resource_instance.Logs_instance.Location,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.LogsViewFolder;
    import com.pulumi.ibm.LogsViewFolderArgs;
    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 logsViewFolderInstance = new LogsViewFolder("logsViewFolderInstance", LogsViewFolderArgs.builder()
                .instanceId(ibm_resource_instance.logs_instance().guid())
                .region(ibm_resource_instance.logs_instance().location())
                .build());
    
        }
    }
    
    resources:
      logsViewFolderInstance:
        type: ibm:LogsViewFolder
        properties:
          instanceId: ${ibm_resource_instance.logs_instance.guid}
          region: ${ibm_resource_instance.logs_instance.location}
    

    Create LogsViewFolder Resource

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

    Constructor syntax

    new LogsViewFolder(name: string, args: LogsViewFolderArgs, opts?: CustomResourceOptions);
    @overload
    def LogsViewFolder(resource_name: str,
                       args: LogsViewFolderArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogsViewFolder(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       instance_id: Optional[str] = None,
                       endpoint_type: Optional[str] = None,
                       logs_view_folder_id: Optional[str] = None,
                       name: Optional[str] = None,
                       region: Optional[str] = None)
    func NewLogsViewFolder(ctx *Context, name string, args LogsViewFolderArgs, opts ...ResourceOption) (*LogsViewFolder, error)
    public LogsViewFolder(string name, LogsViewFolderArgs args, CustomResourceOptions? opts = null)
    public LogsViewFolder(String name, LogsViewFolderArgs args)
    public LogsViewFolder(String name, LogsViewFolderArgs args, CustomResourceOptions options)
    
    type: ibm:LogsViewFolder
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LogsViewFolderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LogsViewFolderArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LogsViewFolderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogsViewFolderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogsViewFolderArgs
    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 logsViewFolderResource = new Ibm.LogsViewFolder("logsViewFolderResource", new()
    {
        InstanceId = "string",
        EndpointType = "string",
        LogsViewFolderId = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := ibm.NewLogsViewFolder(ctx, "logsViewFolderResource", &ibm.LogsViewFolderArgs{
    	InstanceId:       pulumi.String("string"),
    	EndpointType:     pulumi.String("string"),
    	LogsViewFolderId: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Region:           pulumi.String("string"),
    })
    
    var logsViewFolderResource = new LogsViewFolder("logsViewFolderResource", LogsViewFolderArgs.builder()
        .instanceId("string")
        .endpointType("string")
        .logsViewFolderId("string")
        .name("string")
        .region("string")
        .build());
    
    logs_view_folder_resource = ibm.LogsViewFolder("logsViewFolderResource",
        instance_id="string",
        endpoint_type="string",
        logs_view_folder_id="string",
        name="string",
        region="string")
    
    const logsViewFolderResource = new ibm.LogsViewFolder("logsViewFolderResource", {
        instanceId: "string",
        endpointType: "string",
        logsViewFolderId: "string",
        name: "string",
        region: "string",
    });
    
    type: ibm:LogsViewFolder
    properties:
        endpointType: string
        instanceId: string
        logsViewFolderId: string
        name: string
        region: string
    

    LogsViewFolder 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 LogsViewFolder resource accepts the following input properties:

    InstanceId string
    Cloud Logs Instance GUID.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    LogsViewFolderId string
    The unique identifier of the logs_view_folder resource.
    Name 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
    Cloud Logs Instance Region.
    InstanceId string
    Cloud Logs Instance GUID.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    LogsViewFolderId string
    The unique identifier of the logs_view_folder resource.
    Name 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
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsViewFolderId String
    The unique identifier of the logs_view_folder resource.
    name 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
    Cloud Logs Instance Region.
    instanceId string
    Cloud Logs Instance GUID.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsViewFolderId string
    The unique identifier of the logs_view_folder resource.
    name 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
    Cloud Logs Instance Region.
    instance_id str
    Cloud Logs Instance GUID.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logs_view_folder_id str
    The unique identifier of the logs_view_folder resource.
    name str
    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
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsViewFolderId String
    The unique identifier of the logs_view_folder resource.
    name 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
    Cloud Logs Instance Region.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ViewFolderId string
    The unique identifier of the logs_view_folder.
    Id string
    The provider-assigned unique ID for this managed resource.
    ViewFolderId string
    The unique identifier of the logs_view_folder.
    id String
    The provider-assigned unique ID for this managed resource.
    viewFolderId String
    The unique identifier of the logs_view_folder.
    id string
    The provider-assigned unique ID for this managed resource.
    viewFolderId string
    The unique identifier of the logs_view_folder.
    id str
    The provider-assigned unique ID for this managed resource.
    view_folder_id str
    The unique identifier of the logs_view_folder.
    id String
    The provider-assigned unique ID for this managed resource.
    viewFolderId String
    The unique identifier of the logs_view_folder.

    Look up Existing LogsViewFolder Resource

    Get an existing LogsViewFolder 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?: LogsViewFolderState, opts?: CustomResourceOptions): LogsViewFolder
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint_type: Optional[str] = None,
            instance_id: Optional[str] = None,
            logs_view_folder_id: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            view_folder_id: Optional[str] = None) -> LogsViewFolder
    func GetLogsViewFolder(ctx *Context, name string, id IDInput, state *LogsViewFolderState, opts ...ResourceOption) (*LogsViewFolder, error)
    public static LogsViewFolder Get(string name, Input<string> id, LogsViewFolderState? state, CustomResourceOptions? opts = null)
    public static LogsViewFolder get(String name, Output<String> id, LogsViewFolderState state, CustomResourceOptions options)
    resources:  _:    type: ibm:LogsViewFolder    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    InstanceId string
    Cloud Logs Instance GUID.
    LogsViewFolderId string
    The unique identifier of the logs_view_folder resource.
    Name 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
    Cloud Logs Instance Region.
    ViewFolderId string
    The unique identifier of the logs_view_folder.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    InstanceId string
    Cloud Logs Instance GUID.
    LogsViewFolderId string
    The unique identifier of the logs_view_folder resource.
    Name 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
    Cloud Logs Instance Region.
    ViewFolderId string
    The unique identifier of the logs_view_folder.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instanceId String
    Cloud Logs Instance GUID.
    logsViewFolderId String
    The unique identifier of the logs_view_folder resource.
    name 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
    Cloud Logs Instance Region.
    viewFolderId String
    The unique identifier of the logs_view_folder.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instanceId string
    Cloud Logs Instance GUID.
    logsViewFolderId string
    The unique identifier of the logs_view_folder resource.
    name 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
    Cloud Logs Instance Region.
    viewFolderId string
    The unique identifier of the logs_view_folder.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instance_id str
    Cloud Logs Instance GUID.
    logs_view_folder_id str
    The unique identifier of the logs_view_folder resource.
    name str
    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
    Cloud Logs Instance Region.
    view_folder_id str
    The unique identifier of the logs_view_folder.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instanceId String
    Cloud Logs Instance GUID.
    logsViewFolderId String
    The unique identifier of the logs_view_folder resource.
    name 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
    Cloud Logs Instance Region.
    viewFolderId String
    The unique identifier of the logs_view_folder.

    Import

    You can import the ibm_logs_view_folder resource by using id. id combination of region, instance_id and view_folder_id.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/logsViewFolder:LogsViewFolder logs_view_folder < region >/< instance_id >/< view_folder_id >;
    ```
    
    

    Example

    $ pulumi import ibm:index/logsViewFolder:LogsViewFolder logs_view_folder eu-gb/3dc02998-0b50-4ea8-b68a-4779d716fa1f/3dc02998-0b50-4ea8-b68a-4779d716fa1f
    

    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud