
Grafana v0.0.10, May 21 23

Grafana v0.0.10, May 21 23
grafana.OrganizationPreference
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Lbrlabs.PulumiPackage.Grafana;
return await Deployment.RunAsync(() =>
{
var test = new Grafana.OrganizationPreference("test", new()
{
Theme = "light",
Timezone = "utc",
WeekStart = "Tuesday",
});
});
package main
import (
"github.com/lbrlabs/pulumi-grafana/sdk/go/grafana"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := grafana.NewOrganizationPreference(ctx, "test", &grafana.OrganizationPreferenceArgs{
Theme: pulumi.String("light"),
Timezone: pulumi.String("utc"),
WeekStart: pulumi.String("Tuesday"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.OrganizationPreference;
import com.pulumi.grafana.OrganizationPreferenceArgs;
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 OrganizationPreference("test", OrganizationPreferenceArgs.builder()
.theme("light")
.timezone("utc")
.weekStart("Tuesday")
.build());
}
}
import pulumi
import lbrlabs_pulumi_grafana as grafana
test = grafana.OrganizationPreference("test",
theme="light",
timezone="utc",
week_start="Tuesday")
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@lbrlabs/pulumi-grafana";
const test = new grafana.OrganizationPreference("test", {
theme: "light",
timezone: "utc",
weekStart: "Tuesday",
});
resources:
test:
type: grafana:OrganizationPreference
properties:
theme: light
timezone: utc
weekStart: Tuesday
Create OrganizationPreference Resource
new OrganizationPreference(name: string, args?: OrganizationPreferenceArgs, opts?: CustomResourceOptions);
@overload
def OrganizationPreference(resource_name: str,
opts: Optional[ResourceOptions] = None,
home_dashboard_id: Optional[int] = 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)
@overload
def OrganizationPreference(resource_name: str,
args: Optional[OrganizationPreferenceArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewOrganizationPreference(ctx *Context, name string, args *OrganizationPreferenceArgs, opts ...ResourceOption) (*OrganizationPreference, error)
public OrganizationPreference(string name, OrganizationPreferenceArgs? args = null, CustomResourceOptions? opts = null)
public OrganizationPreference(String name, OrganizationPreferenceArgs args)
public OrganizationPreference(String name, OrganizationPreferenceArgs args, CustomResourceOptions options)
type: grafana:OrganizationPreference
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationPreferenceArgs
- 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 OrganizationPreferenceArgs
- 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 OrganizationPreferenceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationPreferenceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationPreferenceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationPreference Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OrganizationPreference resource accepts the following input properties:
- Home
Dashboard intId The Organization home dashboard ID.
- Home
Dashboard stringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- Org
Id 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
, or an empty string for the default.- Timezone string
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- Week
Start string The Organization week start.
- Home
Dashboard intId The Organization home dashboard ID.
- Home
Dashboard stringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- Org
Id 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
, or an empty string for the default.- Timezone string
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- Week
Start string The Organization week start.
- home
Dashboard IntegerId The Organization home dashboard ID.
- home
Dashboard StringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org
Id 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
, or an empty string for the default.- timezone String
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- week
Start String The Organization week start.
- home
Dashboard numberId The Organization home dashboard ID.
- home
Dashboard stringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org
Id 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
, or an empty string for the default.- timezone string
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- week
Start string The Organization week start.
- home_
dashboard_ intid The Organization home dashboard ID.
- 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
, 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.
- home
Dashboard NumberId The Organization home dashboard ID.
- home
Dashboard StringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org
Id 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
, or an empty string for the default.- timezone String
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- week
Start String The Organization week start.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationPreference 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 OrganizationPreference Resource
Get an existing OrganizationPreference 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?: OrganizationPreferenceState, opts?: CustomResourceOptions): OrganizationPreference
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
home_dashboard_id: Optional[int] = 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) -> OrganizationPreference
func GetOrganizationPreference(ctx *Context, name string, id IDInput, state *OrganizationPreferenceState, opts ...ResourceOption) (*OrganizationPreference, error)
public static OrganizationPreference Get(string name, Input<string> id, OrganizationPreferenceState? state, CustomResourceOptions? opts = null)
public static OrganizationPreference get(String name, Output<String> id, OrganizationPreferenceState 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.
- Home
Dashboard intId The Organization home dashboard ID.
- Home
Dashboard stringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- Org
Id 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
, or an empty string for the default.- Timezone string
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- Week
Start string The Organization week start.
- Home
Dashboard intId The Organization home dashboard ID.
- Home
Dashboard stringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- Org
Id 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
, or an empty string for the default.- Timezone string
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- Week
Start string The Organization week start.
- home
Dashboard IntegerId The Organization home dashboard ID.
- home
Dashboard StringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org
Id 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
, or an empty string for the default.- timezone String
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- week
Start String The Organization week start.
- home
Dashboard numberId The Organization home dashboard ID.
- home
Dashboard stringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org
Id 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
, or an empty string for the default.- timezone string
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- week
Start string The Organization week start.
- home_
dashboard_ intid The Organization home dashboard ID.
- 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
, 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.
- home
Dashboard NumberId The Organization home dashboard ID.
- home
Dashboard StringUid The Organization home dashboard UID. This is only available in Grafana 9.0+.
- org
Id 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
, or an empty string for the default.- timezone String
The Organization timezone. Available values are
utc
,browser
, or an empty string for the default.- week
Start String The Organization week start.
Package Details
- Repository
- grafana lbrlabs/pulumi-grafana
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
grafana
Terraform Provider.