@pulumiverse/grafana 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloudAccessPolicy.d.ts +7 -1
- package/cloudAccessPolicy.js +7 -1
- package/cloudAccessPolicy.js.map +1 -1
- package/cloudAccessPolicyToken.d.ts +12 -0
- package/cloudAccessPolicyToken.js +12 -0
- package/cloudAccessPolicyToken.js.map +1 -1
- package/cloudApiKey.d.ts +9 -1
- package/cloudApiKey.js +9 -1
- package/cloudApiKey.js.map +1 -1
- package/cloudPluginInstallation.d.ts +7 -1
- package/cloudPluginInstallation.js +7 -1
- package/cloudPluginInstallation.js.map +1 -1
- package/cloudStack.d.ts +47 -10
- package/cloudStack.js +18 -0
- package/cloudStack.js.map +1 -1
- package/cloudStackServiceAccount.d.ts +5 -2
- package/cloudStackServiceAccount.js +5 -2
- package/cloudStackServiceAccount.js.map +1 -1
- package/cloudStackServiceAccountToken.d.ts +4 -2
- package/cloudStackServiceAccountToken.js +4 -2
- package/cloudStackServiceAccountToken.js.map +1 -1
- package/config/vars.d.ts +5 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/contactPoint.d.ts +51 -3
- package/contactPoint.js +8 -0
- package/contactPoint.js.map +1 -1
- package/dashboard.d.ts +11 -2
- package/dashboard.js +11 -2
- package/dashboard.js.map +1 -1
- package/dashboardPermission.d.ts +13 -6
- package/dashboardPermission.js +10 -6
- package/dashboardPermission.js.map +1 -1
- package/dashboardPublic.d.ts +197 -0
- package/dashboardPublic.js +131 -0
- package/dashboardPublic.js.map +1 -0
- package/dataSource.d.ts +1 -1
- package/dataSource.js +1 -1
- package/dataSourcePermission.d.ts +4 -3
- package/dataSourcePermission.js +2 -4
- package/dataSourcePermission.js.map +1 -1
- package/folder.d.ts +12 -0
- package/folder.js +2 -0
- package/folder.js.map +1 -1
- package/folderPermission.d.ts +18 -3
- package/folderPermission.js +16 -4
- package/folderPermission.js.map +1 -1
- package/getCloudOrganization.d.ts +24 -0
- package/getCloudOrganization.js +24 -0
- package/getCloudOrganization.js.map +1 -1
- package/getCloudStack.d.ts +15 -1
- package/getCloudStack.js.map +1 -1
- package/getDashboard.d.ts +12 -0
- package/getDashboard.js +1 -0
- package/getDashboard.js.map +1 -1
- package/getDashboards.d.ts +12 -0
- package/getDashboards.js +1 -0
- package/getDashboards.js.map +1 -1
- package/getFolder.d.ts +12 -0
- package/getFolder.js +1 -0
- package/getFolder.js.map +1 -1
- package/getFolders.d.ts +24 -2
- package/getFolders.js +7 -4
- package/getFolders.js.map +1 -1
- package/getOncallSchedule.d.ts +2 -2
- package/getOncallSchedule.js +2 -2
- package/getOrganizationPreferences.d.ts +26 -6
- package/getOrganizationPreferences.js +7 -4
- package/getOrganizationPreferences.js.map +1 -1
- package/getServiceAccount.d.ts +62 -0
- package/getServiceAccount.js +28 -0
- package/getServiceAccount.js.map +1 -0
- package/index.d.ts +11 -2
- package/index.js +16 -3
- package/index.js.map +1 -1
- package/libraryPanel.d.ts +9 -3
- package/libraryPanel.js +9 -3
- package/libraryPanel.js.map +1 -1
- package/messageTemplate.d.ts +24 -0
- package/messageTemplate.js +4 -0
- package/messageTemplate.js.map +1 -1
- package/muteTiming.d.ts +16 -3
- package/muteTiming.js +3 -0
- package/muteTiming.js.map +1 -1
- package/notificationPolicy.d.ts +41 -5
- package/notificationPolicy.js +21 -5
- package/notificationPolicy.js.map +1 -1
- package/oncallEscalation.d.ts +1 -1
- package/oncallEscalation.js +1 -1
- package/oncallIntegration.d.ts +6 -6
- package/oncallOnCallShift.d.ts +3 -3
- package/oncallOutgoingWebhook.d.ts +78 -6
- package/oncallOutgoingWebhook.js +12 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/organization.d.ts +18 -0
- package/organization.js +2 -0
- package/organization.js.map +1 -1
- package/organizationPreference.d.ts +16 -10
- package/organizationPreference.js +1 -1
- package/organizationPreference.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/playlist.d.ts +25 -0
- package/playlist.js +25 -0
- package/playlist.js.map +1 -1
- package/provider.d.ts +14 -2
- package/provider.js +2 -1
- package/provider.js.map +1 -1
- package/report.d.ts +29 -5
- package/report.js +4 -2
- package/report.js.map +1 -1
- package/roleAssignment.d.ts +1 -0
- package/roleAssignment.js +1 -0
- package/roleAssignment.js.map +1 -1
- package/ruleGroup.d.ts +17 -5
- package/ruleGroup.js +2 -3
- package/ruleGroup.js.map +1 -1
- package/serviceAccountPermission.d.ts +4 -2
- package/serviceAccountPermission.js +2 -3
- package/serviceAccountPermission.js.map +1 -1
- package/serviceAccountToken.d.ts +48 -2
- package/serviceAccountToken.js +3 -2
- package/serviceAccountToken.js.map +1 -1
- package/slo.d.ts +12 -0
- package/slo.js +2 -0
- package/slo.js.map +1 -1
- package/ssoSettings.d.ts +85 -0
- package/ssoSettings.js +80 -0
- package/ssoSettings.js.map +1 -0
- package/syntheticMonitoringInstallation.d.ts +45 -10
- package/syntheticMonitoringInstallation.js +42 -7
- package/syntheticMonitoringInstallation.js.map +1 -1
- package/team.d.ts +6 -1
- package/team.js +6 -1
- package/team.js.map +1 -1
- package/teamExternalGroup.d.ts +3 -2
- package/teamExternalGroup.js +3 -2
- package/teamExternalGroup.js.map +1 -1
- package/types/input.d.ts +441 -3
- package/types/output.d.ts +446 -3
package/contactPoint.d.ts
CHANGED
|
@@ -57,6 +57,10 @@ export declare class ContactPoint extends pulumi.CustomResource {
|
|
|
57
57
|
* A contact point that sends notifications to DingDing.
|
|
58
58
|
*/
|
|
59
59
|
readonly dingdings: pulumi.Output<outputs.ContactPointDingding[] | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Allow modifying the contact point from other sources than Terraform or the Grafana API.
|
|
62
|
+
*/
|
|
63
|
+
readonly disableProvenance: pulumi.Output<boolean | undefined>;
|
|
60
64
|
/**
|
|
61
65
|
* A contact point that sends notifications as Discord messages
|
|
62
66
|
*/
|
|
@@ -78,13 +82,21 @@ export declare class ContactPoint extends pulumi.CustomResource {
|
|
|
78
82
|
*/
|
|
79
83
|
readonly lines: pulumi.Output<outputs.ContactPointLine[] | undefined>;
|
|
80
84
|
/**
|
|
81
|
-
*
|
|
85
|
+
* Name of the responder. Must be specified if username and id are empty.
|
|
82
86
|
*/
|
|
83
87
|
readonly name: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* A contact point that sends notifications to Grafana On-Call.
|
|
90
|
+
*/
|
|
91
|
+
readonly oncalls: pulumi.Output<outputs.ContactPointOncall[] | undefined>;
|
|
84
92
|
/**
|
|
85
93
|
* A contact point that sends notifications to OpsGenie.
|
|
86
94
|
*/
|
|
87
95
|
readonly opsgenies: pulumi.Output<outputs.ContactPointOpsgeny[] | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
98
|
+
*/
|
|
99
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
88
100
|
/**
|
|
89
101
|
* A contact point that sends notifications to PagerDuty.
|
|
90
102
|
*/
|
|
@@ -101,6 +113,10 @@ export declare class ContactPoint extends pulumi.CustomResource {
|
|
|
101
113
|
* A contact point that sends notifications to Slack.
|
|
102
114
|
*/
|
|
103
115
|
readonly slacks: pulumi.Output<outputs.ContactPointSlack[] | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* A contact point that sends notifications to Amazon SNS. Requires Amazon Managed Grafana.
|
|
118
|
+
*/
|
|
119
|
+
readonly sns: pulumi.Output<outputs.ContactPointSn[] | undefined>;
|
|
104
120
|
/**
|
|
105
121
|
* A contact point that sends notifications to Microsoft Teams.
|
|
106
122
|
*/
|
|
@@ -150,6 +166,10 @@ export interface ContactPointState {
|
|
|
150
166
|
* A contact point that sends notifications to DingDing.
|
|
151
167
|
*/
|
|
152
168
|
dingdings?: pulumi.Input<pulumi.Input<inputs.ContactPointDingding>[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Allow modifying the contact point from other sources than Terraform or the Grafana API.
|
|
171
|
+
*/
|
|
172
|
+
disableProvenance?: pulumi.Input<boolean>;
|
|
153
173
|
/**
|
|
154
174
|
* A contact point that sends notifications as Discord messages
|
|
155
175
|
*/
|
|
@@ -171,13 +191,21 @@ export interface ContactPointState {
|
|
|
171
191
|
*/
|
|
172
192
|
lines?: pulumi.Input<pulumi.Input<inputs.ContactPointLine>[]>;
|
|
173
193
|
/**
|
|
174
|
-
*
|
|
194
|
+
* Name of the responder. Must be specified if username and id are empty.
|
|
175
195
|
*/
|
|
176
196
|
name?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* A contact point that sends notifications to Grafana On-Call.
|
|
199
|
+
*/
|
|
200
|
+
oncalls?: pulumi.Input<pulumi.Input<inputs.ContactPointOncall>[]>;
|
|
177
201
|
/**
|
|
178
202
|
* A contact point that sends notifications to OpsGenie.
|
|
179
203
|
*/
|
|
180
204
|
opsgenies?: pulumi.Input<pulumi.Input<inputs.ContactPointOpsgeny>[]>;
|
|
205
|
+
/**
|
|
206
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
207
|
+
*/
|
|
208
|
+
orgId?: pulumi.Input<string>;
|
|
181
209
|
/**
|
|
182
210
|
* A contact point that sends notifications to PagerDuty.
|
|
183
211
|
*/
|
|
@@ -194,6 +222,10 @@ export interface ContactPointState {
|
|
|
194
222
|
* A contact point that sends notifications to Slack.
|
|
195
223
|
*/
|
|
196
224
|
slacks?: pulumi.Input<pulumi.Input<inputs.ContactPointSlack>[]>;
|
|
225
|
+
/**
|
|
226
|
+
* A contact point that sends notifications to Amazon SNS. Requires Amazon Managed Grafana.
|
|
227
|
+
*/
|
|
228
|
+
sns?: pulumi.Input<pulumi.Input<inputs.ContactPointSn>[]>;
|
|
197
229
|
/**
|
|
198
230
|
* A contact point that sends notifications to Microsoft Teams.
|
|
199
231
|
*/
|
|
@@ -235,6 +267,10 @@ export interface ContactPointArgs {
|
|
|
235
267
|
* A contact point that sends notifications to DingDing.
|
|
236
268
|
*/
|
|
237
269
|
dingdings?: pulumi.Input<pulumi.Input<inputs.ContactPointDingding>[]>;
|
|
270
|
+
/**
|
|
271
|
+
* Allow modifying the contact point from other sources than Terraform or the Grafana API.
|
|
272
|
+
*/
|
|
273
|
+
disableProvenance?: pulumi.Input<boolean>;
|
|
238
274
|
/**
|
|
239
275
|
* A contact point that sends notifications as Discord messages
|
|
240
276
|
*/
|
|
@@ -256,13 +292,21 @@ export interface ContactPointArgs {
|
|
|
256
292
|
*/
|
|
257
293
|
lines?: pulumi.Input<pulumi.Input<inputs.ContactPointLine>[]>;
|
|
258
294
|
/**
|
|
259
|
-
*
|
|
295
|
+
* Name of the responder. Must be specified if username and id are empty.
|
|
260
296
|
*/
|
|
261
297
|
name?: pulumi.Input<string>;
|
|
298
|
+
/**
|
|
299
|
+
* A contact point that sends notifications to Grafana On-Call.
|
|
300
|
+
*/
|
|
301
|
+
oncalls?: pulumi.Input<pulumi.Input<inputs.ContactPointOncall>[]>;
|
|
262
302
|
/**
|
|
263
303
|
* A contact point that sends notifications to OpsGenie.
|
|
264
304
|
*/
|
|
265
305
|
opsgenies?: pulumi.Input<pulumi.Input<inputs.ContactPointOpsgeny>[]>;
|
|
306
|
+
/**
|
|
307
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
308
|
+
*/
|
|
309
|
+
orgId?: pulumi.Input<string>;
|
|
266
310
|
/**
|
|
267
311
|
* A contact point that sends notifications to PagerDuty.
|
|
268
312
|
*/
|
|
@@ -279,6 +323,10 @@ export interface ContactPointArgs {
|
|
|
279
323
|
* A contact point that sends notifications to Slack.
|
|
280
324
|
*/
|
|
281
325
|
slacks?: pulumi.Input<pulumi.Input<inputs.ContactPointSlack>[]>;
|
|
326
|
+
/**
|
|
327
|
+
* A contact point that sends notifications to Amazon SNS. Requires Amazon Managed Grafana.
|
|
328
|
+
*/
|
|
329
|
+
sns?: pulumi.Input<pulumi.Input<inputs.ContactPointSn>[]>;
|
|
282
330
|
/**
|
|
283
331
|
* A contact point that sends notifications to Microsoft Teams.
|
|
284
332
|
*/
|
package/contactPoint.js
CHANGED
|
@@ -67,17 +67,21 @@ class ContactPoint extends pulumi.CustomResource {
|
|
|
67
67
|
const state = argsOrState;
|
|
68
68
|
resourceInputs["alertmanagers"] = state ? state.alertmanagers : undefined;
|
|
69
69
|
resourceInputs["dingdings"] = state ? state.dingdings : undefined;
|
|
70
|
+
resourceInputs["disableProvenance"] = state ? state.disableProvenance : undefined;
|
|
70
71
|
resourceInputs["discords"] = state ? state.discords : undefined;
|
|
71
72
|
resourceInputs["emails"] = state ? state.emails : undefined;
|
|
72
73
|
resourceInputs["googlechats"] = state ? state.googlechats : undefined;
|
|
73
74
|
resourceInputs["kafkas"] = state ? state.kafkas : undefined;
|
|
74
75
|
resourceInputs["lines"] = state ? state.lines : undefined;
|
|
75
76
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
77
|
+
resourceInputs["oncalls"] = state ? state.oncalls : undefined;
|
|
76
78
|
resourceInputs["opsgenies"] = state ? state.opsgenies : undefined;
|
|
79
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
77
80
|
resourceInputs["pagerduties"] = state ? state.pagerduties : undefined;
|
|
78
81
|
resourceInputs["pushovers"] = state ? state.pushovers : undefined;
|
|
79
82
|
resourceInputs["sensugos"] = state ? state.sensugos : undefined;
|
|
80
83
|
resourceInputs["slacks"] = state ? state.slacks : undefined;
|
|
84
|
+
resourceInputs["sns"] = state ? state.sns : undefined;
|
|
81
85
|
resourceInputs["teams"] = state ? state.teams : undefined;
|
|
82
86
|
resourceInputs["telegrams"] = state ? state.telegrams : undefined;
|
|
83
87
|
resourceInputs["threemas"] = state ? state.threemas : undefined;
|
|
@@ -90,17 +94,21 @@ class ContactPoint extends pulumi.CustomResource {
|
|
|
90
94
|
const args = argsOrState;
|
|
91
95
|
resourceInputs["alertmanagers"] = args ? args.alertmanagers : undefined;
|
|
92
96
|
resourceInputs["dingdings"] = args ? args.dingdings : undefined;
|
|
97
|
+
resourceInputs["disableProvenance"] = args ? args.disableProvenance : undefined;
|
|
93
98
|
resourceInputs["discords"] = args ? args.discords : undefined;
|
|
94
99
|
resourceInputs["emails"] = args ? args.emails : undefined;
|
|
95
100
|
resourceInputs["googlechats"] = args ? args.googlechats : undefined;
|
|
96
101
|
resourceInputs["kafkas"] = args ? args.kafkas : undefined;
|
|
97
102
|
resourceInputs["lines"] = args ? args.lines : undefined;
|
|
98
103
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
104
|
+
resourceInputs["oncalls"] = args ? args.oncalls : undefined;
|
|
99
105
|
resourceInputs["opsgenies"] = args ? args.opsgenies : undefined;
|
|
106
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
100
107
|
resourceInputs["pagerduties"] = args ? args.pagerduties : undefined;
|
|
101
108
|
resourceInputs["pushovers"] = args ? args.pushovers : undefined;
|
|
102
109
|
resourceInputs["sensugos"] = args ? args.sensugos : undefined;
|
|
103
110
|
resourceInputs["slacks"] = args ? args.slacks : undefined;
|
|
111
|
+
resourceInputs["sns"] = args ? args.sns : undefined;
|
|
104
112
|
resourceInputs["teams"] = args ? args.teams : undefined;
|
|
105
113
|
resourceInputs["telegrams"] = args ? args.telegrams : undefined;
|
|
106
114
|
resourceInputs["threemas"] = args ? args.threemas : undefined;
|
package/contactPoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactPoint.js","sourceRoot":"","sources":["../contactPoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAA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,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA/LL,oCAgMC;AAlLG,gBAAgB;AACO,yBAAY,GAAG,yCAAyC,CAAC"}
|
package/dashboard.d.ts
CHANGED
|
@@ -9,10 +9,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
*
|
|
10
10
|
* ```typescript
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as fs from "fs";
|
|
13
12
|
* import * as grafana from "@pulumiverse/grafana";
|
|
14
13
|
*
|
|
15
|
-
* const
|
|
14
|
+
* const testFolder = new grafana.Folder("testFolder", {
|
|
15
|
+
* title: "My Folder",
|
|
16
|
+
* uid: "my-folder-uid",
|
|
17
|
+
* });
|
|
18
|
+
* const testDashboard = new grafana.Dashboard("testDashboard", {
|
|
19
|
+
* folder: testFolder.uid,
|
|
20
|
+
* configJson: JSON.stringify({
|
|
21
|
+
* title: "My Dashboard",
|
|
22
|
+
* uid: "my-dashboard-uid",
|
|
23
|
+
* }),
|
|
24
|
+
* });
|
|
16
25
|
* ```
|
|
17
26
|
*
|
|
18
27
|
* ## Import
|
package/dashboard.js
CHANGED
|
@@ -15,10 +15,19 @@ const utilities = require("./utilities");
|
|
|
15
15
|
*
|
|
16
16
|
* ```typescript
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as fs from "fs";
|
|
19
18
|
* import * as grafana from "@pulumiverse/grafana";
|
|
20
19
|
*
|
|
21
|
-
* const
|
|
20
|
+
* const testFolder = new grafana.Folder("testFolder", {
|
|
21
|
+
* title: "My Folder",
|
|
22
|
+
* uid: "my-folder-uid",
|
|
23
|
+
* });
|
|
24
|
+
* const testDashboard = new grafana.Dashboard("testDashboard", {
|
|
25
|
+
* folder: testFolder.uid,
|
|
26
|
+
* configJson: JSON.stringify({
|
|
27
|
+
* title: "My Dashboard",
|
|
28
|
+
* uid: "my-dashboard-uid",
|
|
29
|
+
* }),
|
|
30
|
+
* });
|
|
22
31
|
* ```
|
|
23
32
|
*
|
|
24
33
|
* ## Import
|
package/dashboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../dashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../dashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB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AyGC;AA3FG,gBAAgB;AACO,sBAAY,GAAG,mCAAmC,CAAC"}
|
package/dashboardPermission.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* Manages the entire set of permissions for a dashboard. Permissions that aren't specified when applying this resource will be removed.
|
|
5
6
|
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
|
|
6
7
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard_permissions/)
|
|
7
8
|
*
|
|
@@ -9,12 +10,18 @@ import * as outputs from "./types/output";
|
|
|
9
10
|
*
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as fs from "fs";
|
|
13
13
|
* import * as grafana from "@pulumiverse/grafana";
|
|
14
14
|
*
|
|
15
15
|
* const team = new grafana.Team("team", {});
|
|
16
|
-
* const user = new grafana.User("user", {
|
|
17
|
-
*
|
|
16
|
+
* const user = new grafana.User("user", {
|
|
17
|
+
* email: "user.name@example.com",
|
|
18
|
+
* password: "my-password",
|
|
19
|
+
* login: "user.name",
|
|
20
|
+
* });
|
|
21
|
+
* const metrics = new grafana.Dashboard("metrics", {configJson: JSON.stringify({
|
|
22
|
+
* title: "My Dashboard",
|
|
23
|
+
* uid: "my-dashboard-uid",
|
|
24
|
+
* })});
|
|
18
25
|
* const collectionPermission = new grafana.DashboardPermission("collectionPermission", {
|
|
19
26
|
* dashboardUid: metrics.uid,
|
|
20
27
|
* permissions: [
|
|
@@ -73,7 +80,7 @@ export declare class DashboardPermission extends pulumi.CustomResource {
|
|
|
73
80
|
/**
|
|
74
81
|
* The permission items to add/update. Items that are omitted from the list will be removed.
|
|
75
82
|
*/
|
|
76
|
-
readonly permissions: pulumi.Output<outputs.DashboardPermissionPermission[]>;
|
|
83
|
+
readonly permissions: pulumi.Output<outputs.DashboardPermissionPermission[] | undefined>;
|
|
77
84
|
/**
|
|
78
85
|
* Create a DashboardPermission resource with the given unique name, arguments, and options.
|
|
79
86
|
*
|
|
@@ -81,7 +88,7 @@ export declare class DashboardPermission extends pulumi.CustomResource {
|
|
|
81
88
|
* @param args The arguments to use to populate this resource's properties.
|
|
82
89
|
* @param opts A bag of options that control this resource's behavior.
|
|
83
90
|
*/
|
|
84
|
-
constructor(name: string, args
|
|
91
|
+
constructor(name: string, args?: DashboardPermissionArgs, opts?: pulumi.CustomResourceOptions);
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
94
|
* Input properties used for looking up and filtering DashboardPermission resources.
|
|
@@ -127,5 +134,5 @@ export interface DashboardPermissionArgs {
|
|
|
127
134
|
/**
|
|
128
135
|
* The permission items to add/update. Items that are omitted from the list will be removed.
|
|
129
136
|
*/
|
|
130
|
-
permissions
|
|
137
|
+
permissions?: pulumi.Input<pulumi.Input<inputs.DashboardPermissionPermission>[]>;
|
|
131
138
|
}
|
package/dashboardPermission.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.DashboardPermission = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Manages the entire set of permissions for a dashboard. Permissions that aren't specified when applying this resource will be removed.
|
|
9
10
|
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
|
|
10
11
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard_permissions/)
|
|
11
12
|
*
|
|
@@ -13,12 +14,18 @@ const utilities = require("./utilities");
|
|
|
13
14
|
*
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as fs from "fs";
|
|
17
17
|
* import * as grafana from "@pulumiverse/grafana";
|
|
18
18
|
*
|
|
19
19
|
* const team = new grafana.Team("team", {});
|
|
20
|
-
* const user = new grafana.User("user", {
|
|
21
|
-
*
|
|
20
|
+
* const user = new grafana.User("user", {
|
|
21
|
+
* email: "user.name@example.com",
|
|
22
|
+
* password: "my-password",
|
|
23
|
+
* login: "user.name",
|
|
24
|
+
* });
|
|
25
|
+
* const metrics = new grafana.Dashboard("metrics", {configJson: JSON.stringify({
|
|
26
|
+
* title: "My Dashboard",
|
|
27
|
+
* uid: "my-dashboard-uid",
|
|
28
|
+
* })});
|
|
22
29
|
* const collectionPermission = new grafana.DashboardPermission("collectionPermission", {
|
|
23
30
|
* dashboardUid: metrics.uid,
|
|
24
31
|
* permissions: [
|
|
@@ -79,9 +86,6 @@ class DashboardPermission extends pulumi.CustomResource {
|
|
|
79
86
|
}
|
|
80
87
|
else {
|
|
81
88
|
const args = argsOrState;
|
|
82
|
-
if ((!args || args.permissions === undefined) && !opts.urn) {
|
|
83
|
-
throw new Error("Missing required property 'permissions'");
|
|
84
|
-
}
|
|
85
89
|
resourceInputs["dashboardId"] = args ? args.dashboardId : undefined;
|
|
86
90
|
resourceInputs["dashboardUid"] = args ? args.dashboardUid : undefined;
|
|
87
91
|
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardPermission.js","sourceRoot":"","sources":["../dashboardPermission.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dashboardPermission.js","sourceRoot":"","sources":["../dashboardPermission.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,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AC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAzEL,kDA0EC;AA5DG,gBAAgB;AACO,gCAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages Grafana public dashboards.
|
|
4
|
+
*
|
|
5
|
+
* **Note:** This resource is available only with Grafana 10.2+.
|
|
6
|
+
*
|
|
7
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/)
|
|
8
|
+
* * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/dashboard_public/)
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
15
|
+
*
|
|
16
|
+
* // Optional (On-premise, not supported in Grafana Cloud): Create an organization
|
|
17
|
+
* const myOrg = new grafana.Organization("myOrg", {});
|
|
18
|
+
* // Create resources (optional: within the organization)
|
|
19
|
+
* const myFolder = new grafana.Folder("myFolder", {
|
|
20
|
+
* orgId: myOrg.orgId,
|
|
21
|
+
* title: "test Folder",
|
|
22
|
+
* });
|
|
23
|
+
* const testDash = new grafana.Dashboard("testDash", {
|
|
24
|
+
* orgId: myOrg.orgId,
|
|
25
|
+
* folder: myFolder.id,
|
|
26
|
+
* configJson: JSON.stringify({
|
|
27
|
+
* title: "My Terraform Dashboard",
|
|
28
|
+
* uid: "my-dashboard-uid",
|
|
29
|
+
* }),
|
|
30
|
+
* });
|
|
31
|
+
* const myPublicDashboard = new grafana.DashboardPublic("myPublicDashboard", {
|
|
32
|
+
* orgId: myOrg.orgId,
|
|
33
|
+
* dashboardUid: testDash.uid,
|
|
34
|
+
* uid: "my-custom-public-uid",
|
|
35
|
+
* accessToken: "e99e4275da6f410d83760eefa934d8d2",
|
|
36
|
+
* timeSelectionEnabled: true,
|
|
37
|
+
* isEnabled: true,
|
|
38
|
+
* annotationsEnabled: true,
|
|
39
|
+
* share: "public",
|
|
40
|
+
* });
|
|
41
|
+
* // Optional (On-premise, not supported in Grafana Cloud): Create an organization
|
|
42
|
+
* const myOrg2 = new grafana.Organization("myOrg2", {});
|
|
43
|
+
* const testDash2 = new grafana.Dashboard("testDash2", {
|
|
44
|
+
* orgId: myOrg2.orgId,
|
|
45
|
+
* configJson: JSON.stringify({
|
|
46
|
+
* title: "My Terraform Dashboard2",
|
|
47
|
+
* uid: "my-dashboard-uid2",
|
|
48
|
+
* }),
|
|
49
|
+
* });
|
|
50
|
+
* const myPublicDashboard2 = new grafana.DashboardPublic("myPublicDashboard2", {
|
|
51
|
+
* orgId: myOrg2.orgId,
|
|
52
|
+
* dashboardUid: testDash2.uid,
|
|
53
|
+
* share: "public",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## Import
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import grafana:index/dashboardPublic:DashboardPublic dashboard_name {{dashboard_uid}}:{{public_dashboard_uid}} # To use the default provider org
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ```sh
|
|
64
|
+
* $ pulumi import grafana:index/dashboardPublic:DashboardPublic dashboard_name {org_id}}:{{dashboard_uid}}:{{public_dashboard_uid}} # When "org_id" is set on the resource
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare class DashboardPublic extends pulumi.CustomResource {
|
|
68
|
+
/**
|
|
69
|
+
* Get an existing DashboardPublic resource's state with the given name, ID, and optional extra
|
|
70
|
+
* properties used to qualify the lookup.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resulting resource.
|
|
73
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
74
|
+
* @param state Any extra arguments used during the lookup.
|
|
75
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
76
|
+
*/
|
|
77
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardPublicState, opts?: pulumi.CustomResourceOptions): DashboardPublic;
|
|
78
|
+
/**
|
|
79
|
+
* Returns true if the given object is an instance of DashboardPublic. This is designed to work even
|
|
80
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
81
|
+
*/
|
|
82
|
+
static isInstance(obj: any): obj is DashboardPublic;
|
|
83
|
+
/**
|
|
84
|
+
* A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
|
|
85
|
+
*/
|
|
86
|
+
readonly accessToken: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Set to `true` to show annotations. The default value is `false`.
|
|
89
|
+
*/
|
|
90
|
+
readonly annotationsEnabled: pulumi.Output<boolean | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The unique identifier of the original dashboard.
|
|
93
|
+
*/
|
|
94
|
+
readonly dashboardUid: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Set to `true` to enable the public dashboard. The default value is `false`.
|
|
97
|
+
*/
|
|
98
|
+
readonly isEnabled: pulumi.Output<boolean | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
101
|
+
*/
|
|
102
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Set the share mode. The default value is `public`.
|
|
105
|
+
*/
|
|
106
|
+
readonly share: pulumi.Output<string | undefined>;
|
|
107
|
+
/**
|
|
108
|
+
* Set to `true` to enable the time picker in the public dashboard. The default value is `false`.
|
|
109
|
+
*/
|
|
110
|
+
readonly timeSelectionEnabled: pulumi.Output<boolean | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
|
|
113
|
+
*/
|
|
114
|
+
readonly uid: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Create a DashboardPublic resource with the given unique name, arguments, and options.
|
|
117
|
+
*
|
|
118
|
+
* @param name The _unique_ name of the resource.
|
|
119
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
120
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
121
|
+
*/
|
|
122
|
+
constructor(name: string, args: DashboardPublicArgs, opts?: pulumi.CustomResourceOptions);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Input properties used for looking up and filtering DashboardPublic resources.
|
|
126
|
+
*/
|
|
127
|
+
export interface DashboardPublicState {
|
|
128
|
+
/**
|
|
129
|
+
* A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
|
|
130
|
+
*/
|
|
131
|
+
accessToken?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Set to `true` to show annotations. The default value is `false`.
|
|
134
|
+
*/
|
|
135
|
+
annotationsEnabled?: pulumi.Input<boolean>;
|
|
136
|
+
/**
|
|
137
|
+
* The unique identifier of the original dashboard.
|
|
138
|
+
*/
|
|
139
|
+
dashboardUid?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Set to `true` to enable the public dashboard. The default value is `false`.
|
|
142
|
+
*/
|
|
143
|
+
isEnabled?: pulumi.Input<boolean>;
|
|
144
|
+
/**
|
|
145
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
146
|
+
*/
|
|
147
|
+
orgId?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Set the share mode. The default value is `public`.
|
|
150
|
+
*/
|
|
151
|
+
share?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Set to `true` to enable the time picker in the public dashboard. The default value is `false`.
|
|
154
|
+
*/
|
|
155
|
+
timeSelectionEnabled?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
|
|
158
|
+
*/
|
|
159
|
+
uid?: pulumi.Input<string>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The set of arguments for constructing a DashboardPublic resource.
|
|
163
|
+
*/
|
|
164
|
+
export interface DashboardPublicArgs {
|
|
165
|
+
/**
|
|
166
|
+
* A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
|
|
167
|
+
*/
|
|
168
|
+
accessToken?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Set to `true` to show annotations. The default value is `false`.
|
|
171
|
+
*/
|
|
172
|
+
annotationsEnabled?: pulumi.Input<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* The unique identifier of the original dashboard.
|
|
175
|
+
*/
|
|
176
|
+
dashboardUid: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Set to `true` to enable the public dashboard. The default value is `false`.
|
|
179
|
+
*/
|
|
180
|
+
isEnabled?: pulumi.Input<boolean>;
|
|
181
|
+
/**
|
|
182
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
183
|
+
*/
|
|
184
|
+
orgId?: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Set the share mode. The default value is `public`.
|
|
187
|
+
*/
|
|
188
|
+
share?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Set to `true` to enable the time picker in the public dashboard. The default value is `false`.
|
|
191
|
+
*/
|
|
192
|
+
timeSelectionEnabled?: pulumi.Input<boolean>;
|
|
193
|
+
/**
|
|
194
|
+
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
|
|
195
|
+
*/
|
|
196
|
+
uid?: pulumi.Input<string>;
|
|
197
|
+
}
|