1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getOrganizationPreferences
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

grafana.getOrganizationPreferences

Explore with Pulumi AI

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const test = grafana.getOrganizationPreferences({});
    
    import pulumi
    import pulumi_grafana as grafana
    
    test = grafana.get_organization_preferences()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := grafana.GetOrganizationPreferences(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Grafana.GetOrganizationPreferences.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.GrafanaFunctions;
    import com.pulumi.grafana.inputs.GetOrganizationPreferencesArgs;
    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 test = GrafanaFunctions.getOrganizationPreferences();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: grafana:getOrganizationPreferences
          Arguments: {}
    

    Using getOrganizationPreferences

    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 getOrganizationPreferences(args: GetOrganizationPreferencesArgs, opts?: InvokeOptions): Promise<GetOrganizationPreferencesResult>
    function getOrganizationPreferencesOutput(args: GetOrganizationPreferencesOutputArgs, opts?: InvokeOptions): Output<GetOrganizationPreferencesResult>
    def get_organization_preferences(org_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetOrganizationPreferencesResult
    def get_organization_preferences_output(org_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationPreferencesResult]
    func GetOrganizationPreferences(ctx *Context, args *GetOrganizationPreferencesArgs, opts ...InvokeOption) (*GetOrganizationPreferencesResult, error)
    func GetOrganizationPreferencesOutput(ctx *Context, args *GetOrganizationPreferencesOutputArgs, opts ...InvokeOption) GetOrganizationPreferencesResultOutput

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

    public static class GetOrganizationPreferences 
    {
        public static Task<GetOrganizationPreferencesResult> InvokeAsync(GetOrganizationPreferencesArgs args, InvokeOptions? opts = null)
        public static Output<GetOrganizationPreferencesResult> Invoke(GetOrganizationPreferencesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOrganizationPreferencesResult> getOrganizationPreferences(GetOrganizationPreferencesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:index/getOrganizationPreferences:getOrganizationPreferences
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    orgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    org_id str
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.

    getOrganizationPreferences Result

    The following output properties are available:

    HomeDashboardId int
    The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.

    Deprecated: Use home_dashboard_uid instead.

    HomeDashboardUid string
    The Organization home dashboard UID. This is only available in Grafana 9.0+.
    Id string
    The provider-assigned unique ID for this managed resource.
    Theme string
    The Organization theme. Available values are light, dark, system, or an empty string for the default.
    Timezone string
    The Organization timezone. Available values are utc, browser, or an empty string for the default.
    WeekStart string
    The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    HomeDashboardId int
    The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.

    Deprecated: Use home_dashboard_uid instead.

    HomeDashboardUid string
    The Organization home dashboard UID. This is only available in Grafana 9.0+.
    Id string
    The provider-assigned unique ID for this managed resource.
    Theme string
    The Organization theme. Available values are light, dark, system, or an empty string for the default.
    Timezone string
    The Organization timezone. Available values are utc, browser, or an empty string for the default.
    WeekStart string
    The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    homeDashboardId Integer
    The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.

    Deprecated: Use home_dashboard_uid instead.

    homeDashboardUid String
    The Organization home dashboard UID. This is only available in Grafana 9.0+.
    id String
    The provider-assigned unique ID for this managed resource.
    theme String
    The Organization theme. Available values are light, dark, system, or an empty string for the default.
    timezone String
    The Organization timezone. Available values are utc, browser, or an empty string for the default.
    weekStart String
    The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    homeDashboardId number
    The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.

    Deprecated: Use home_dashboard_uid instead.

    homeDashboardUid string
    The Organization home dashboard UID. This is only available in Grafana 9.0+.
    id string
    The provider-assigned unique ID for this managed resource.
    theme string
    The Organization theme. Available values are light, dark, system, or an empty string for the default.
    timezone string
    The Organization timezone. Available values are utc, browser, or an empty string for the default.
    weekStart string
    The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default.
    orgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    home_dashboard_id int
    The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.

    Deprecated: Use home_dashboard_uid instead.

    home_dashboard_uid str
    The Organization home dashboard UID. This is only available in Grafana 9.0+.
    id str
    The provider-assigned unique ID for this managed resource.
    theme str
    The Organization theme. Available values are light, dark, system, or an empty string for the default.
    timezone str
    The Organization timezone. Available values are utc, browser, or an empty string for the default.
    week_start str
    The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default.
    org_id str
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    homeDashboardId Number
    The Organization home dashboard ID. Deprecated: Use home_dashboard_uid instead.

    Deprecated: Use home_dashboard_uid instead.

    homeDashboardUid String
    The Organization home dashboard UID. This is only available in Grafana 9.0+.
    id String
    The provider-assigned unique ID for this managed resource.
    theme String
    The Organization theme. Available values are light, dark, system, or an empty string for the default.
    timezone String
    The Organization timezone. Available values are utc, browser, or an empty string for the default.
    weekStart String
    The Organization week start day. Available values are sunday, monday, saturday, or an empty string for the default.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse