1. Packages
  2. Grafana Cloud
  3. API Docs
  4. OrganizationPreference
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

grafana.OrganizationPreference

Explore with Pulumi AI

grafana logo
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

    Create OrganizationPreference Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OrganizationPreference(name: string, args?: OrganizationPreferenceArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationPreference(resource_name: str,
                               args: Optional[OrganizationPreferenceArgs] = None,
                               opts: Optional[ResourceOptions] = None)
    
    @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)
    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.
    
    

    Parameters

    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.

    Example

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

    var organizationPreferenceResource = new Grafana.OrganizationPreference("organizationPreferenceResource", new()
    {
        HomeDashboardUid = "string",
        OrgId = "string",
        Theme = "string",
        Timezone = "string",
        WeekStart = "string",
    });
    
    example, err := grafana.NewOrganizationPreference(ctx, "organizationPreferenceResource", &grafana.OrganizationPreferenceArgs{
    	HomeDashboardUid: pulumi.String("string"),
    	OrgId:            pulumi.String("string"),
    	Theme:            pulumi.String("string"),
    	Timezone:         pulumi.String("string"),
    	WeekStart:        pulumi.String("string"),
    })
    
    var organizationPreferenceResource = new OrganizationPreference("organizationPreferenceResource", OrganizationPreferenceArgs.builder()        
        .homeDashboardUid("string")
        .orgId("string")
        .theme("string")
        .timezone("string")
        .weekStart("string")
        .build());
    
    organization_preference_resource = grafana.OrganizationPreference("organizationPreferenceResource",
        home_dashboard_uid="string",
        org_id="string",
        theme="string",
        timezone="string",
        week_start="string")
    
    const organizationPreferenceResource = new grafana.OrganizationPreference("organizationPreferenceResource", {
        homeDashboardUid: "string",
        orgId: "string",
        theme: "string",
        timezone: "string",
        weekStart: "string",
    });
    
    type: grafana:OrganizationPreference
    properties:
        homeDashboardUid: string
        orgId: string
        theme: string
        timezone: string
        weekStart: string
    

    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:

    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+.
    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.
    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+.
    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.
    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+.
    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.
    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+.
    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.
    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+.
    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.
    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+.
    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.

    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.
    The following state arguments are supported:
    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+.
    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.
    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+.
    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.
    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+.
    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.
    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+.
    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.
    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+.
    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.
    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+.
    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.

    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.4.2 published on Monday, Apr 15, 2024 by pulumiverse