1. Registry
  2. Packages
  3. Logzio Provider
  4. API Docs
  5. getUnifiedProject
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 Data Source

    Use this data source to read an existing Logz.io unified project (Perses project/dashboard folder) by its stable project ID or its Perses metadata name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as logzio from "@pulumi/logzio";
    
    const byId = logzio.getUnifiedProject({
        id: "project-id",
    });
    const byMetadataName = logzio.getUnifiedProject({
        name: "system-metrics",
    });
    
    import pulumi
    import pulumi_logzio as logzio
    
    by_id = logzio.get_unified_project(id="project-id")
    by_metadata_name = logzio.get_unified_project(name="system-metrics")
    
    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 {
    		_, err := logzio.LookupUnifiedProject(ctx, &logzio.LookupUnifiedProjectArgs{
    			Id: pulumi.StringRef("project-id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = logzio.LookupUnifiedProject(ctx, &logzio.LookupUnifiedProjectArgs{
    			Name: pulumi.StringRef("system-metrics"),
    		}, nil)
    		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 byId = Logzio.GetUnifiedProject.Invoke(new()
        {
            Id = "project-id",
        });
    
        var byMetadataName = Logzio.GetUnifiedProject.Invoke(new()
        {
            Name = "system-metrics",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.logzio.LogzioFunctions;
    import com.pulumi.logzio.inputs.GetUnifiedProjectArgs;
    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 byId = LogzioFunctions.getUnifiedProject(GetUnifiedProjectArgs.builder()
                .id("project-id")
                .build());
    
            final var byMetadataName = LogzioFunctions.getUnifiedProject(GetUnifiedProjectArgs.builder()
                .name("system-metrics")
                .build());
    
        }
    }
    
    variables:
      byId:
        fn::invoke:
          function: logzio:getUnifiedProject
          arguments:
            id: project-id
      byMetadataName:
        fn::invoke:
          function: logzio:getUnifiedProject
          arguments:
            name: system-metrics
    
    Example coming soon!
    

    Using getUnifiedProject

    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 getUnifiedProject(args: GetUnifiedProjectArgs, opts?: InvokeOptions): Promise<GetUnifiedProjectResult>
    function getUnifiedProjectOutput(args: GetUnifiedProjectOutputArgs, opts?: InvokeOutputOptions): Output<GetUnifiedProjectResult>
    def get_unified_project(id: Optional[str] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetUnifiedProjectResult
    def get_unified_project_output(id: pulumi.Input[Optional[str]] = None,
                            name: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetUnifiedProjectResult]
    func LookupUnifiedProject(ctx *Context, args *LookupUnifiedProjectArgs, opts ...InvokeOption) (*LookupUnifiedProjectResult, error)
    func LookupUnifiedProjectOutput(ctx *Context, args *LookupUnifiedProjectOutputArgs, opts ...InvokeOption) LookupUnifiedProjectResultOutput

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

    public static class GetUnifiedProject 
    {
        public static Task<GetUnifiedProjectResult> InvokeAsync(GetUnifiedProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetUnifiedProjectResult> Invoke(GetUnifiedProjectInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetUnifiedProjectResult> Invoke(GetUnifiedProjectInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUnifiedProjectResult> getUnifiedProject(GetUnifiedProjectArgs args, InvokeOptions options)
    public static Output<GetUnifiedProjectResult> getUnifiedProject(GetUnifiedProjectArgs args, InvokeOptions options)
    public static Output<GetUnifiedProjectResult> getUnifiedProject(GetUnifiedProjectArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: logzio:index/getUnifiedProject:getUnifiedProject
      arguments:
        # arguments dictionary
    data "logzio_get_unified_project" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The project's stable unique identifier (GUID).
    Name string
    The project's Perses metadata.name. This selector does not match the human-readable display name.
    Id string
    The project's stable unique identifier (GUID).
    Name string
    The project's Perses metadata.name. This selector does not match the human-readable display name.
    id string
    The project's stable unique identifier (GUID).
    name string
    The project's Perses metadata.name. This selector does not match the human-readable display name.
    id String
    The project's stable unique identifier (GUID).
    name String
    The project's Perses metadata.name. This selector does not match the human-readable display name.
    id string
    The project's stable unique identifier (GUID).
    name string
    The project's Perses metadata.name. This selector does not match the human-readable display name.
    id str
    The project's stable unique identifier (GUID).
    name str
    The project's Perses metadata.name. This selector does not match the human-readable display name.
    id String
    The project's stable unique identifier (GUID).
    name String
    The project's Perses metadata.name. This selector does not match the human-readable display name.

    getUnifiedProject Result

    The following output properties are available:

    Description string
    (String) The project description.
    DisplayName string
    (String) The human-readable project display name.
    Id string
    Name string
    (String) The project's Perses metadata.name.
    Description string
    (String) The project description.
    DisplayName string
    (String) The human-readable project display name.
    Id string
    Name string
    (String) The project's Perses metadata.name.
    description string
    (String) The project description.
    display_name string
    (String) The human-readable project display name.
    id string
    name string
    (String) The project's Perses metadata.name.
    description String
    (String) The project description.
    displayName String
    (String) The human-readable project display name.
    id String
    name String
    (String) The project's Perses metadata.name.
    description string
    (String) The project description.
    displayName string
    (String) The human-readable project display name.
    id string
    name string
    (String) The project's Perses metadata.name.
    description str
    (String) The project description.
    display_name str
    (String) The human-readable project display name.
    id str
    name str
    (String) The project's Perses metadata.name.
    description String
    (String) The project description.
    displayName String
    (String) The human-readable project display name.
    id String
    name String
    (String) The project's Perses metadata.name.

    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