1. Packages
  2. Grafana Cloud
  3. API Docs
  4. oss
  5. OrganizationPreferences
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.oss.OrganizationPreferences

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

    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:oss: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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var organizationPreferencesResource = new Grafana.Oss.OrganizationPreferences("organizationPreferencesResource", new()
    {
        HomeDashboardUid = "string",
        OrgId = "string",
        Theme = "string",
        Timezone = "string",
        WeekStart = "string",
    });
    
    example, err := oss.NewOrganizationPreferences(ctx, "organizationPreferencesResource", &oss.OrganizationPreferencesArgs{
    	HomeDashboardUid: pulumi.String("string"),
    	OrgId:            pulumi.String("string"),
    	Theme:            pulumi.String("string"),
    	Timezone:         pulumi.String("string"),
    	WeekStart:        pulumi.String("string"),
    })
    
    var organizationPreferencesResource = new OrganizationPreferences("organizationPreferencesResource", OrganizationPreferencesArgs.builder()
        .homeDashboardUid("string")
        .orgId("string")
        .theme("string")
        .timezone("string")
        .weekStart("string")
        .build());
    
    organization_preferences_resource = grafana.oss.OrganizationPreferences("organizationPreferencesResource",
        home_dashboard_uid="string",
        org_id="string",
        theme="string",
        timezone="string",
        week_start="string")
    
    const organizationPreferencesResource = new grafana.oss.OrganizationPreferences("organizationPreferencesResource", {
        homeDashboardUid: "string",
        orgId: "string",
        theme: "string",
        timezone: "string",
        weekStart: "string",
    });
    
    type: grafana:oss:OrganizationPreferences
    properties:
        homeDashboardUid: string
        orgId: string
        theme: string
        timezone: string
        weekStart: string
    

    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:

    HomeDashboardUid string
    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 ``.
    HomeDashboardUid string
    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 ``.
    homeDashboardUid String
    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 ``.
    homeDashboardUid string
    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_uid str
    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 ``.
    homeDashboardUid String
    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) -> OrganizationPreferences
    func 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)
    Resource lookup is not supported in YAML
    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:
    HomeDashboardUid string
    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 ``.
    HomeDashboardUid string
    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 ``.
    homeDashboardUid String
    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 ``.
    homeDashboardUid string
    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_uid str
    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 ``.
    homeDashboardUid String
    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:oss/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 grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse