generated from pulumi/pulumi-tf-provider-boilerplate
/
getOrganizationPreferences.go
62 lines (58 loc) · 2.08 KB
/
getOrganizationPreferences.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package grafana
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
// * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/preferences/#get-current-org-prefs)
//
// ## Example Usage
//
// ```go
// 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.GetOrganizationPreferences(ctx, nil, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetOrganizationPreferences(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetOrganizationPreferencesResult, error) {
opts = pkgInvokeDefaultOpts(opts)
var rv GetOrganizationPreferencesResult
err := ctx.Invoke("grafana:index/getOrganizationPreferences:getOrganizationPreferences", nil, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of values returned by getOrganizationPreferences.
type GetOrganizationPreferencesResult struct {
// The Organization home dashboard ID.
HomeDashboardId int `pulumi:"homeDashboardId"`
// The Organization home dashboard UID. This is only available in Grafana 9.0+.
HomeDashboardUid string `pulumi:"homeDashboardUid"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The Organization ID. If not set, the Org ID defined in the provider block will be used.
OrgId string `pulumi:"orgId"`
// The Organization theme. Available values are `light`, `dark`, or an empty string for the default.
Theme string `pulumi:"theme"`
// The Organization timezone. Available values are `utc`, `browser`, or an empty string for the default.
Timezone string `pulumi:"timezone"`
// The Organization week start.
WeekStart string `pulumi:"weekStart"`
}