grafana.OrganizationPreferences
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test = new grafana.oss.OrganizationPreferences("test", {
    theme: "light",
    timezone: "utc",
    weekStart: "sunday",
});
import pulumi
import pulumiverse_grafana as grafana
test = grafana.oss.OrganizationPreferences("test",
    theme="light",
    timezone="utc",
    week_start="sunday")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/oss"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := oss.NewOrganizationPreferences(ctx, "test", &oss.OrganizationPreferencesArgs{
			Theme:     pulumi.String("light"),
			Timezone:  pulumi.String("utc"),
			WeekStart: pulumi.String("sunday"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() => 
{
    var test = new Grafana.Oss.OrganizationPreferences("test", new()
    {
        Theme = "light",
        Timezone = "utc",
        WeekStart = "sunday",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.oss.OrganizationPreferences;
import com.pulumi.grafana.oss.OrganizationPreferencesArgs;
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 test = new OrganizationPreferences("test", OrganizationPreferencesArgs.builder()
            .theme("light")
            .timezone("utc")
            .weekStart("sunday")
            .build());
    }
}
resources:
  test:
    type: grafana:oss:OrganizationPreferences
    properties:
      theme: light
      timezone: utc
      weekStart: sunday
Create OrganizationPreferences Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationPreferences(name: string, args?: OrganizationPreferencesArgs, opts?: CustomResourceOptions);@overload
def OrganizationPreferences(resource_name: str,
                            args: Optional[OrganizationPreferencesArgs] = None,
                            opts: Optional[ResourceOptions] = None)
@overload
def OrganizationPreferences(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            home_dashboard_uid: Optional[str] = None,
                            org_id: Optional[str] = None,
                            theme: Optional[str] = None,
                            timezone: Optional[str] = None,
                            week_start: Optional[str] = None)func NewOrganizationPreferences(ctx *Context, name string, args *OrganizationPreferencesArgs, opts ...ResourceOption) (*OrganizationPreferences, error)public OrganizationPreferences(string name, OrganizationPreferencesArgs? args = null, CustomResourceOptions? opts = null)
public OrganizationPreferences(String name, OrganizationPreferencesArgs args)
public OrganizationPreferences(String name, OrganizationPreferencesArgs args, CustomResourceOptions options)
type: grafana:OrganizationPreferences
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 OrganizationPreferencesArgs
- 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 OrganizationPreferencesArgs
- 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 OrganizationPreferencesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationPreferencesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationPreferencesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationPreferences 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 OrganizationPreferences resource accepts the following input properties:
- HomeDashboard stringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- OrgId string
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- HomeDashboard stringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- OrgId string
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- homeDashboard StringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- orgId String
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- homeDashboard stringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- orgId string
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- home_dashboard_ struid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org_id str
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- homeDashboard StringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- orgId String
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationPreferences resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OrganizationPreferences Resource
Get an existing OrganizationPreferences 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?: OrganizationPreferencesState, opts?: CustomResourceOptions): OrganizationPreferences@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        home_dashboard_uid: Optional[str] = None,
        org_id: Optional[str] = None,
        theme: Optional[str] = None,
        timezone: Optional[str] = None,
        week_start: Optional[str] = None) -> OrganizationPreferencesfunc GetOrganizationPreferences(ctx *Context, name string, id IDInput, state *OrganizationPreferencesState, opts ...ResourceOption) (*OrganizationPreferences, error)public static OrganizationPreferences Get(string name, Input<string> id, OrganizationPreferencesState? state, CustomResourceOptions? opts = null)public static OrganizationPreferences get(String name, Output<String> id, OrganizationPreferencesState state, CustomResourceOptions options)resources:  _:    type: grafana:OrganizationPreferences    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.
- HomeDashboard stringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- OrgId string
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- HomeDashboard stringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- OrgId string
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- homeDashboard StringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- orgId String
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- homeDashboard stringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- orgId string
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- home_dashboard_ struid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org_id str
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
- homeDashboard StringUid 
- The Organization home dashboard UID. This is only available in Grafana 9.0+.
- orgId String
- The Organization ID. If not set, the Org ID defined in the provider block will be used.
- 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. Defaults to ``.
Import
$ pulumi import grafana:index/organizationPreferences:OrganizationPreferences name "{{ orgID }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the grafanaTerraform Provider.
