1. Registry
  2. Packages
  3. Logzio Provider
  4. API Docs
  5. UnifiedProject
Viewing docs for logzio 1.29.0
published on Friday, Sep 25, 2026 by logzio
Viewing docs for logzio 1.29.0
published on Friday, Sep 25, 2026 by logzio

    # Unified Project Resource

    Provides a Logz.io unified project resource. A unified project is a Perses project that acts as a folder for unified dashboards.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as logzio from "@pulumi/logzio";
    
    const systemMetrics = new logzio.UnifiedProject("system_metrics", {
        name: "system-metrics",
        description: "Dashboards for system health and performance",
    });
    const cpuUsage = new logzio.UnifiedDashboard("cpu_usage", {
        folderId: systemMetrics.folderId,
        dashboardJson: `{
      \\"kind\\": \\"Dashboard\\",
      \\"metadata\\": {
        \\"name\\": \\"cpu-usage\\"
      },
      \\"spec\\": {
        \\"display\\": {
          \\"name\\": \\"CPU Usage\\"
        },
        \\"duration\\": \\"1h\\",
        \\"panels\\": {},
        \\"layouts\\": []
      }
    }
    `,
    });
    
    import pulumi
    import pulumi_logzio as logzio
    
    system_metrics = logzio.UnifiedProject("system_metrics",
        name="system-metrics",
        description="Dashboards for system health and performance")
    cpu_usage = logzio.UnifiedDashboard("cpu_usage",
        folder_id=system_metrics.folder_id,
        dashboard_json="""{
      \"kind\": \"Dashboard\",
      \"metadata\": {
        \"name\": \"cpu-usage\"
      },
      \"spec\": {
        \"display\": {
          \"name\": \"CPU Usage\"
        },
        \"duration\": \"1h\",
        \"panels\": {},
        \"layouts\": []
      }
    }
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/logzio/logzio"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		systemMetrics, err := logzio.NewUnifiedProject(ctx, "system_metrics", &logzio.UnifiedProjectArgs{
    			Name:        pulumi.String("system-metrics"),
    			Description: pulumi.String("Dashboards for system health and performance"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = logzio.NewUnifiedDashboard(ctx, "cpu_usage", &logzio.UnifiedDashboardArgs{
    			FolderId: systemMetrics.FolderId,
    			DashboardJson: pulumi.String(`{
      \"kind\": \"Dashboard\",
      \"metadata\": {
        \"name\": \"cpu-usage\"
      },
      \"spec\": {
        \"display\": {
          \"name\": \"CPU Usage\"
        },
        \"duration\": \"1h\",
        \"panels\": {},
        \"layouts\": []
      }
    }
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Logzio = Pulumi.Logzio;
    
    return await Deployment.RunAsync(() => 
    {
        var systemMetrics = new Logzio.UnifiedProject("system_metrics", new()
        {
            Name = "system-metrics",
            Description = "Dashboards for system health and performance",
        });
    
        var cpuUsage = new Logzio.UnifiedDashboard("cpu_usage", new()
        {
            FolderId = systemMetrics.FolderId,
            DashboardJson = @"{
      \""kind\"": \""Dashboard\"",
      \""metadata\"": {
        \""name\"": \""cpu-usage\""
      },
      \""spec\"": {
        \""display\"": {
          \""name\"": \""CPU Usage\""
        },
        \""duration\"": \""1h\"",
        \""panels\"": {},
        \""layouts\"": []
      }
    }
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.logzio.UnifiedProject;
    import com.pulumi.logzio.UnifiedProjectArgs;
    import com.pulumi.logzio.UnifiedDashboard;
    import com.pulumi.logzio.UnifiedDashboardArgs;
    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 systemMetrics = new UnifiedProject("systemMetrics", UnifiedProjectArgs.builder()
                .name("system-metrics")
                .description("Dashboards for system health and performance")
                .build());
    
            var cpuUsage = new UnifiedDashboard("cpuUsage", UnifiedDashboardArgs.builder()
                .folderId(systemMetrics.folderId())
                .dashboardJson("""
    {
      \"kind\": \"Dashboard\",
      \"metadata\": {
        \"name\": \"cpu-usage\"
      },
      \"spec\": {
        \"display\": {
          \"name\": \"CPU Usage\"
        },
        \"duration\": \"1h\",
        \"panels\": {},
        \"layouts\": []
      }
    }
                """)
                .build());
    
        }
    }
    
    resources:
      systemMetrics:
        type: logzio:UnifiedProject
        name: system_metrics
        properties:
          name: system-metrics
          description: Dashboards for system health and performance
      cpuUsage:
        type: logzio:UnifiedDashboard
        name: cpu_usage
        properties:
          folderId: ${systemMetrics.folderId}
          dashboardJson: |
            {
              \"kind\": \"Dashboard\",
              \"metadata\": {
                \"name\": \"cpu-usage\"
              },
              \"spec\": {
                \"display\": {
                  \"name\": \"CPU Usage\"
                },
                \"duration\": \"1h\",
                \"panels\": {},
                \"layouts\": []
              }
            }
    
    Example coming soon!
    

    Create UnifiedProject Resource

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

    Constructor syntax

    new UnifiedProject(name: string, args?: UnifiedProjectArgs, opts?: CustomResourceOptions);
    @overload
    def UnifiedProject(resource_name: str,
                       args: Optional[UnifiedProjectArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def UnifiedProject(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       display_name: Optional[str] = None,
                       name: Optional[str] = None,
                       unified_project_id: Optional[str] = None)
    func NewUnifiedProject(ctx *Context, name string, args *UnifiedProjectArgs, opts ...ResourceOption) (*UnifiedProject, error)
    public UnifiedProject(string name, UnifiedProjectArgs? args = null, CustomResourceOptions? opts = null)
    public UnifiedProject(String name, UnifiedProjectArgs args)
    public UnifiedProject(String name, UnifiedProjectArgs args, CustomResourceOptions options)
    
    type: logzio:UnifiedProject
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "logzio_unified_project" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args UnifiedProjectArgs
    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 UnifiedProjectArgs
    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 UnifiedProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UnifiedProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UnifiedProjectArgs
    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 unifiedProjectResource = new Logzio.UnifiedProject("unifiedProjectResource", new()
    {
        Description = "string",
        DisplayName = "string",
        Name = "string",
        UnifiedProjectId = "string",
    });
    
    example, err := logzio.NewUnifiedProject(ctx, "unifiedProjectResource", &logzio.UnifiedProjectArgs{
    	Description:      pulumi.String("string"),
    	DisplayName:      pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	UnifiedProjectId: pulumi.String("string"),
    })
    
    resource "logzio_unified_project" "unifiedProjectResource" {
      lifecycle {
        create_before_destroy = true
      }
      description        = "string"
      display_name       = "string"
      name               = "string"
      unified_project_id = "string"
    }
    
    var unifiedProjectResource = new UnifiedProject("unifiedProjectResource", UnifiedProjectArgs.builder()
        .description("string")
        .displayName("string")
        .name("string")
        .unifiedProjectId("string")
        .build());
    
    unified_project_resource = logzio.UnifiedProject("unifiedProjectResource",
        description="string",
        display_name="string",
        name="string",
        unified_project_id="string")
    
    const unifiedProjectResource = new logzio.UnifiedProject("unifiedProjectResource", {
        description: "string",
        displayName: "string",
        name: "string",
        unifiedProjectId: "string",
    });
    
    type: logzio:UnifiedProject
    properties:
        description: string
        displayName: string
        name: string
        unifiedProjectId: string
    

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

    Description string
    DisplayName string
    Name string
    UnifiedProjectId string
    Description string
    DisplayName string
    Name string
    UnifiedProjectId string
    description String
    displayName String
    name String
    unifiedProjectId String
    description string
    displayName string
    name string
    unifiedProjectId string
    description String
    displayName String
    name String
    unifiedProjectId String

    Outputs

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

    FolderId string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    Id string
    The provider-assigned unique ID for this managed resource.
    FolderId string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    Id string
    The provider-assigned unique ID for this managed resource.
    folder_id string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    id string
    The provider-assigned unique ID for this managed resource.
    folderId String
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    id String
    The provider-assigned unique ID for this managed resource.
    folderId string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    id string
    The provider-assigned unique ID for this managed resource.
    folder_id str
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    id str
    The provider-assigned unique ID for this managed resource.
    folderId String
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing UnifiedProject Resource

    Get an existing UnifiedProject 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?: UnifiedProjectState, opts?: CustomResourceOptions): UnifiedProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            folder_id: Optional[str] = None,
            name: Optional[str] = None,
            unified_project_id: Optional[str] = None) -> UnifiedProject
    func GetUnifiedProject(ctx *Context, name string, id IDInput, state *UnifiedProjectState, opts ...ResourceOption) (*UnifiedProject, error)
    public static UnifiedProject Get(string name, Input<string> id, UnifiedProjectState? state, CustomResourceOptions? opts = null)
    public static UnifiedProject get(String name, Output<String> id, UnifiedProjectState state, CustomResourceOptions options)
    resources:  _:    type: logzio:UnifiedProject    get:      id: ${id}
    import {
      to = logzio_unified_project.example
      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:
    Description string
    DisplayName string
    FolderId string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    Name string
    UnifiedProjectId string
    Description string
    DisplayName string
    FolderId string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    Name string
    UnifiedProjectId string
    description string
    display_name string
    folder_id string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    name string
    unified_project_id string
    description String
    displayName String
    folderId String
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    name String
    unifiedProjectId String
    description string
    displayName string
    folderId string
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    name string
    unifiedProjectId string
    description str
    display_name str
    folder_id str
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    name str
    unified_project_id str
    description String
    displayName String
    folderId String
    (String) The stable unique project identifier. Use this value as folder_id when creating or reading unified dashboards.
    name String
    unifiedProjectId String

    Import

    Import an existing unified project using its project ID:

    $ pulumi import logzio:index/unifiedProject:UnifiedProject system_metrics <PROJECT-ID>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    logzio logzio/terraform-provider-logzio
    License
    Notes
    This Pulumi package is based on the logzio Terraform Provider.
    Viewing docs for logzio 1.29.0
    published on Friday, Sep 25, 2026 by logzio

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial