1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getHostedDashboard
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

coralogix.getHostedDashboard

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const importedDashboard = coralogix.getHostedDashboard({
        uid: coralogix_hosted_dashboard.dashboard.id,
    });
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    imported_dashboard = coralogix.get_hosted_dashboard(uid=coralogix_hosted_dashboard["dashboard"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := coralogix.LookupHostedDashboard(ctx, &coralogix.LookupHostedDashboardArgs{
    			Uid: coralogix_hosted_dashboard.Dashboard.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Coralogix = Pulumi.Coralogix;
    
    return await Deployment.RunAsync(() => 
    {
        var importedDashboard = Coralogix.GetHostedDashboard.Invoke(new()
        {
            Uid = coralogix_hosted_dashboard.Dashboard.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.CoralogixFunctions;
    import com.pulumi.coralogix.inputs.GetHostedDashboardArgs;
    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 importedDashboard = CoralogixFunctions.getHostedDashboard(GetHostedDashboardArgs.builder()
                .uid(coralogix_hosted_dashboard.dashboard().id())
                .build());
    
        }
    }
    
    variables:
      importedDashboard:
        fn::invoke:
          function: coralogix:getHostedDashboard
          arguments:
            uid: ${coralogix_hosted_dashboard.dashboard.id}
    

    Using getHostedDashboard

    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 getHostedDashboard(args: GetHostedDashboardArgs, opts?: InvokeOptions): Promise<GetHostedDashboardResult>
    function getHostedDashboardOutput(args: GetHostedDashboardOutputArgs, opts?: InvokeOptions): Output<GetHostedDashboardResult>
    def get_hosted_dashboard(id: Optional[str] = None,
                             uid: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetHostedDashboardResult
    def get_hosted_dashboard_output(id: Optional[pulumi.Input[str]] = None,
                             uid: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetHostedDashboardResult]
    func LookupHostedDashboard(ctx *Context, args *LookupHostedDashboardArgs, opts ...InvokeOption) (*LookupHostedDashboardResult, error)
    func LookupHostedDashboardOutput(ctx *Context, args *LookupHostedDashboardOutputArgs, opts ...InvokeOption) LookupHostedDashboardResultOutput

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

    public static class GetHostedDashboard 
    {
        public static Task<GetHostedDashboardResult> InvokeAsync(GetHostedDashboardArgs args, InvokeOptions? opts = null)
        public static Output<GetHostedDashboardResult> Invoke(GetHostedDashboardInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHostedDashboardResult> getHostedDashboard(GetHostedDashboardArgs args, InvokeOptions options)
    public static Output<GetHostedDashboardResult> getHostedDashboard(GetHostedDashboardArgs args, InvokeOptions options)
    
    fn::invoke:
      function: coralogix:index/getHostedDashboard:getHostedDashboard
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Uid string
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    Id string
    The ID of this resource.
    Uid string
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    Id string
    The ID of this resource.
    uid String
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    id String
    The ID of this resource.
    uid string
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    id string
    The ID of this resource.
    uid str
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    id str
    The ID of this resource.
    uid String
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    id String
    The ID of this resource.

    getHostedDashboard Result

    The following output properties are available:

    Grafanas List<GetHostedDashboardGrafana>
    Hosted grafana dashboard. * Official documentation * HTTP API
    Id string
    The ID of this resource.
    Uid string
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    Grafanas []GetHostedDashboardGrafana
    Hosted grafana dashboard. * Official documentation * HTTP API
    Id string
    The ID of this resource.
    Uid string
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    grafanas List<GetHostedDashboardGrafana>
    Hosted grafana dashboard. * Official documentation * HTTP API
    id String
    The ID of this resource.
    uid String
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    grafanas GetHostedDashboardGrafana[]
    Hosted grafana dashboard. * Official documentation * HTTP API
    id string
    The ID of this resource.
    uid string
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    grafanas Sequence[GetHostedDashboardGrafana]
    Hosted grafana dashboard. * Official documentation * HTTP API
    id str
    The ID of this resource.
    uid str
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)
    grafanas List<Property Map>
    Hosted grafana dashboard. * Official documentation * HTTP API
    id String
    The ID of this resource.
    uid String
    The unique identifier of a dashboard with the dashboard-type prefix (e.g. - grafana:vgvvfknr)

    Supporting Types

    GetHostedDashboardGrafana

    ConfigJson string
    DashboardId double
    Folder double
    IsStarred bool
    Title string
    Uid string
    Url string
    Version double
    ConfigJson string
    DashboardId float64
    Folder float64
    IsStarred bool
    Title string
    Uid string
    Url string
    Version float64
    configJson String
    dashboardId Double
    folder Double
    isStarred Boolean
    title String
    uid String
    url String
    version Double
    configJson string
    dashboardId number
    folder number
    isStarred boolean
    title string
    uid string
    url string
    version number
    config_json str
    dashboard_id float
    folder float
    is_starred bool
    title str
    uid str
    url str
    version float
    configJson String
    dashboardId Number
    folder Number
    isStarred Boolean
    title String
    uid String
    url String
    version Number

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix