UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

77 lines (76 loc) 3 kB
import * as pulumi from "@pulumi/pulumi"; /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/api-legacy/preferences/#get-current-org-prefs) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = grafana.oss.getOrganizationPreferences({}); * ``` */ export declare function getOrganizationPreferences(args?: GetOrganizationPreferencesArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationPreferencesResult>; /** * A collection of arguments for invoking getOrganizationPreferences. */ export interface GetOrganizationPreferencesArgs { /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: string; } /** * A collection of values returned by getOrganizationPreferences. */ export interface GetOrganizationPreferencesResult { /** * The Organization home dashboard UID. This is only available in Grafana 9.0+. */ readonly homeDashboardUid: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ readonly orgId?: string; /** * The Organization theme. Any string value is supported, including custom themes. Common values are `light`, `dark`, `system`, or an empty string for the default. */ readonly theme: string; /** * The Organization timezone. Any string value is supported, including IANA timezone names. Common values are `utc`, `browser`, or an empty string for the default. */ readonly timezone: string; /** * The Organization week start day. Available values are `sunday`, `monday`, `saturday`, or an empty string for the default. */ readonly weekStart: string; } /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/api-legacy/preferences/#get-current-org-prefs) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = grafana.oss.getOrganizationPreferences({}); * ``` */ export declare function getOrganizationPreferencesOutput(args?: GetOrganizationPreferencesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationPreferencesResult>; /** * A collection of arguments for invoking getOrganizationPreferences. */ export interface GetOrganizationPreferencesOutputArgs { /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: pulumi.Input<string>; }