@pulumiverse/grafana 0.2.1-alpha.1709570924

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.
Files changed (252) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +54 -0
  3. package/annotation.d.ts +151 -0
  4. package/annotation.js +79 -0
  5. package/annotation.js.map +1 -0
  6. package/apiKey.d.ts +77 -0
  7. package/apiKey.js +80 -0
  8. package/apiKey.js.map +1 -0
  9. package/cloudAccessPolicy.d.ts +156 -0
  10. package/cloudAccessPolicy.js +115 -0
  11. package/cloudAccessPolicy.js.map +1 -0
  12. package/cloudAccessPolicyToken.d.ts +151 -0
  13. package/cloudAccessPolicyToken.js +108 -0
  14. package/cloudAccessPolicyToken.js.map +1 -0
  15. package/cloudApiKey.d.ts +102 -0
  16. package/cloudApiKey.js +85 -0
  17. package/cloudApiKey.js.map +1 -0
  18. package/cloudPluginInstallation.d.ts +96 -0
  19. package/cloudPluginInstallation.js +86 -0
  20. package/cloudPluginInstallation.js.map +1 -0
  21. package/cloudStack.d.ts +291 -0
  22. package/cloudStack.js +142 -0
  23. package/cloudStack.js.map +1 -0
  24. package/cloudStackApiKey.d.ts +52 -0
  25. package/cloudStackApiKey.js +67 -0
  26. package/cloudStackApiKey.js.map +1 -0
  27. package/cloudStackServiceAccount.d.ts +97 -0
  28. package/cloudStackServiceAccount.js +80 -0
  29. package/cloudStackServiceAccount.js.map +1 -0
  30. package/cloudStackServiceAccountToken.d.ts +78 -0
  31. package/cloudStackServiceAccountToken.js +93 -0
  32. package/cloudStackServiceAccountToken.js.map +1 -0
  33. package/config/index.d.ts +1 -0
  34. package/config/index.js +21 -0
  35. package/config/index.js.map +1 -0
  36. package/config/vars.d.ts +89 -0
  37. package/config/vars.js +131 -0
  38. package/config/vars.js.map +1 -0
  39. package/contactPoint.d.ts +310 -0
  40. package/contactPoint.js +119 -0
  41. package/contactPoint.js.map +1 -0
  42. package/dashboard.d.ts +154 -0
  43. package/dashboard.js +94 -0
  44. package/dashboard.js.map +1 -0
  45. package/dashboardPermission.d.ts +131 -0
  46. package/dashboardPermission.js +97 -0
  47. package/dashboardPermission.js.map +1 -0
  48. package/dataSource.d.ts +294 -0
  49. package/dataSource.js +164 -0
  50. package/dataSource.js.map +1 -0
  51. package/dataSourcePermission.d.ts +124 -0
  52. package/dataSourcePermission.js +109 -0
  53. package/dataSourcePermission.js.map +1 -0
  54. package/folder.d.ts +127 -0
  55. package/folder.js +95 -0
  56. package/folder.js.map +1 -0
  57. package/folderPermission.d.ts +106 -0
  58. package/folderPermission.js +91 -0
  59. package/folderPermission.js.map +1 -0
  60. package/getCloudIps.d.ts +56 -0
  61. package/getCloudIps.js +41 -0
  62. package/getCloudIps.js.map +1 -0
  63. package/getCloudOrganization.d.ts +37 -0
  64. package/getCloudOrganization.js +21 -0
  65. package/getCloudOrganization.js.map +1 -0
  66. package/getCloudStack.d.ts +130 -0
  67. package/getCloudStack.js +25 -0
  68. package/getCloudStack.js.map +1 -0
  69. package/getDashboard.d.ts +134 -0
  70. package/getDashboard.js +81 -0
  71. package/getDashboard.js.map +1 -0
  72. package/getDashboards.d.ts +74 -0
  73. package/getDashboards.js +36 -0
  74. package/getDashboards.js.map +1 -0
  75. package/getDataSource.d.ts +156 -0
  76. package/getDataSource.js +95 -0
  77. package/getDataSource.js.map +1 -0
  78. package/getFolder.d.ts +82 -0
  79. package/getFolder.js +59 -0
  80. package/getFolder.js.map +1 -0
  81. package/getFolders.d.ts +61 -0
  82. package/getFolders.js +61 -0
  83. package/getFolders.js.map +1 -0
  84. package/getLibraryPanel.d.ts +108 -0
  85. package/getLibraryPanel.js +28 -0
  86. package/getLibraryPanel.js.map +1 -0
  87. package/getOnCallSlackChannel.d.ts +66 -0
  88. package/getOnCallSlackChannel.js +47 -0
  89. package/getOnCallSlackChannel.js.map +1 -0
  90. package/getOncallAction.d.ts +46 -0
  91. package/getOncallAction.js +31 -0
  92. package/getOncallAction.js.map +1 -0
  93. package/getOncallEscalationChain.d.ts +62 -0
  94. package/getOncallEscalationChain.js +47 -0
  95. package/getOncallEscalationChain.js.map +1 -0
  96. package/getOncallOutgoingWebhook.d.ts +62 -0
  97. package/getOncallOutgoingWebhook.js +47 -0
  98. package/getOncallOutgoingWebhook.js.map +1 -0
  99. package/getOncallSchedule.d.ts +68 -0
  100. package/getOncallSchedule.js +49 -0
  101. package/getOncallSchedule.js.map +1 -0
  102. package/getOncallTeam.d.ts +60 -0
  103. package/getOncallTeam.js +43 -0
  104. package/getOncallTeam.js.map +1 -0
  105. package/getOncallUser.d.ts +70 -0
  106. package/getOncallUser.js +47 -0
  107. package/getOncallUser.js.map +1 -0
  108. package/getOncallUserGroup.d.ts +54 -0
  109. package/getOncallUserGroup.js +47 -0
  110. package/getOncallUserGroup.js.map +1 -0
  111. package/getOrganization.d.ts +94 -0
  112. package/getOrganization.js +67 -0
  113. package/getOrganization.js.map +1 -0
  114. package/getOrganizationPreferences.d.ts +62 -0
  115. package/getOrganizationPreferences.js +43 -0
  116. package/getOrganizationPreferences.js.map +1 -0
  117. package/getRole.d.ts +147 -0
  118. package/getRole.js +95 -0
  119. package/getRole.js.map +1 -0
  120. package/getSlos.d.ts +31 -0
  121. package/getSlos.js +31 -0
  122. package/getSlos.js.map +1 -0
  123. package/getSyntheticMonitoringProbe.d.ts +88 -0
  124. package/getSyntheticMonitoringProbe.js +47 -0
  125. package/getSyntheticMonitoringProbe.js.map +1 -0
  126. package/getSyntheticMonitoringProbes.d.ts +64 -0
  127. package/getSyntheticMonitoringProbes.js +44 -0
  128. package/getSyntheticMonitoringProbes.js.map +1 -0
  129. package/getTeam.d.ts +83 -0
  130. package/getTeam.js +67 -0
  131. package/getTeam.js.map +1 -0
  132. package/getUser.d.ts +128 -0
  133. package/getUser.js +84 -0
  134. package/getUser.js.map +1 -0
  135. package/getUsers.d.ts +61 -0
  136. package/getUsers.js +61 -0
  137. package/getUsers.js.map +1 -0
  138. package/index.d.ts +228 -0
  139. package/index.js +353 -0
  140. package/index.js.map +1 -0
  141. package/libraryPanel.d.ts +193 -0
  142. package/libraryPanel.js +103 -0
  143. package/libraryPanel.js.map +1 -0
  144. package/machineLearningHoliday.d.ts +103 -0
  145. package/machineLearningHoliday.js +62 -0
  146. package/machineLearningHoliday.js.map +1 -0
  147. package/machineLearningJob.d.ts +201 -0
  148. package/machineLearningJob.js +83 -0
  149. package/machineLearningJob.js.map +1 -0
  150. package/machineLearningOutlierDetector.d.ts +159 -0
  151. package/machineLearningOutlierDetector.js +84 -0
  152. package/machineLearningOutlierDetector.js.map +1 -0
  153. package/messageTemplate.d.ts +86 -0
  154. package/messageTemplate.js +80 -0
  155. package/messageTemplate.js.map +1 -0
  156. package/muteTiming.d.ts +106 -0
  157. package/muteTiming.js +95 -0
  158. package/muteTiming.js.map +1 -0
  159. package/notificationPolicy.d.ts +186 -0
  160. package/notificationPolicy.js +141 -0
  161. package/notificationPolicy.js.map +1 -0
  162. package/oncallEscalation.d.ts +227 -0
  163. package/oncallEscalation.js +124 -0
  164. package/oncallEscalation.js.map +1 -0
  165. package/oncallEscalationChain.d.ts +80 -0
  166. package/oncallEscalationChain.js +71 -0
  167. package/oncallEscalationChain.js.map +1 -0
  168. package/oncallIntegration.d.ts +116 -0
  169. package/oncallIntegration.js +75 -0
  170. package/oncallIntegration.js.map +1 -0
  171. package/oncallOnCallShift.d.ts +237 -0
  172. package/oncallOnCallShift.js +97 -0
  173. package/oncallOnCallShift.js.map +1 -0
  174. package/oncallOutgoingWebhook.d.ts +152 -0
  175. package/oncallOutgoingWebhook.js +88 -0
  176. package/oncallOutgoingWebhook.js.map +1 -0
  177. package/oncallRoute.d.ts +175 -0
  178. package/oncallRoute.js +116 -0
  179. package/oncallRoute.js.map +1 -0
  180. package/oncallSchedule.d.ts +187 -0
  181. package/oncallSchedule.js +109 -0
  182. package/oncallSchedule.js.map +1 -0
  183. package/organization.d.ts +193 -0
  184. package/organization.js +96 -0
  185. package/organization.js.map +1 -0
  186. package/organizationPreference.d.ts +125 -0
  187. package/organizationPreference.js +76 -0
  188. package/organizationPreference.js.map +1 -0
  189. package/package.json +30 -0
  190. package/package.json.bak +29 -0
  191. package/package.json.dev +29 -0
  192. package/playlist.d.ts +72 -0
  193. package/playlist.js +65 -0
  194. package/playlist.js.map +1 -0
  195. package/provider.d.ts +166 -0
  196. package/provider.js +64 -0
  197. package/provider.js.map +1 -0
  198. package/report.d.ts +241 -0
  199. package/report.js +110 -0
  200. package/report.js.map +1 -0
  201. package/role.d.ts +210 -0
  202. package/role.js +109 -0
  203. package/role.js.map +1 -0
  204. package/roleAssignment.d.ts +131 -0
  205. package/roleAssignment.js +95 -0
  206. package/roleAssignment.js.map +1 -0
  207. package/ruleGroup.d.ts +203 -0
  208. package/ruleGroup.js +174 -0
  209. package/ruleGroup.js.map +1 -0
  210. package/scripts/install-pulumi-plugin.js +21 -0
  211. package/serviceAccount.d.ts +102 -0
  212. package/serviceAccount.js +73 -0
  213. package/serviceAccount.js.map +1 -0
  214. package/serviceAccountPermission.d.ts +110 -0
  215. package/serviceAccountPermission.js +95 -0
  216. package/serviceAccountPermission.js.map +1 -0
  217. package/serviceAccountToken.d.ts +72 -0
  218. package/serviceAccountToken.js +85 -0
  219. package/serviceAccountToken.js.map +1 -0
  220. package/slo.d.ts +131 -0
  221. package/slo.js +77 -0
  222. package/slo.js.map +1 -0
  223. package/syntheticMonitoringCheck.d.ts +555 -0
  224. package/syntheticMonitoringCheck.js +464 -0
  225. package/syntheticMonitoringCheck.js.map +1 -0
  226. package/syntheticMonitoringInstallation.d.ts +112 -0
  227. package/syntheticMonitoringInstallation.js +95 -0
  228. package/syntheticMonitoringInstallation.js.map +1 -0
  229. package/syntheticMonitoringProbe.d.ts +164 -0
  230. package/syntheticMonitoringProbe.js +108 -0
  231. package/syntheticMonitoringProbe.js.map +1 -0
  232. package/team.d.ts +165 -0
  233. package/team.js +89 -0
  234. package/team.js.map +1 -0
  235. package/teamExternalGroup.d.ts +84 -0
  236. package/teamExternalGroup.js +81 -0
  237. package/teamExternalGroup.js.map +1 -0
  238. package/types/index.d.ts +3 -0
  239. package/types/index.js +11 -0
  240. package/types/index.js.map +1 -0
  241. package/types/input.d.ts +1914 -0
  242. package/types/input.js +5 -0
  243. package/types/input.js.map +1 -0
  244. package/types/output.d.ts +2011 -0
  245. package/types/output.js +5 -0
  246. package/types/output.js.map +1 -0
  247. package/user.d.ts +132 -0
  248. package/user.js +95 -0
  249. package/user.js.map +1 -0
  250. package/utilities.d.ts +4 -0
  251. package/utilities.js +69 -0
  252. package/utilities.js.map +1 -0
@@ -0,0 +1,70 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/users/)
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as grafana from "@pulumi/grafana";
10
+ *
11
+ * const alex = grafana.getOncallUser({
12
+ * username: "alex",
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function getOncallUser(args: GetOncallUserArgs, opts?: pulumi.InvokeOptions): Promise<GetOncallUserResult>;
17
+ /**
18
+ * A collection of arguments for invoking getOncallUser.
19
+ */
20
+ export interface GetOncallUserArgs {
21
+ /**
22
+ * The username of the user.
23
+ */
24
+ username: string;
25
+ }
26
+ /**
27
+ * A collection of values returned by getOncallUser.
28
+ */
29
+ export interface GetOncallUserResult {
30
+ /**
31
+ * The email of the user.
32
+ */
33
+ readonly email: string;
34
+ /**
35
+ * The provider-assigned unique ID for this managed resource.
36
+ */
37
+ readonly id: string;
38
+ /**
39
+ * The role of the user.
40
+ */
41
+ readonly role: string;
42
+ /**
43
+ * The username of the user.
44
+ */
45
+ readonly username: string;
46
+ }
47
+ /**
48
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/users/)
49
+ *
50
+ * ## Example Usage
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as grafana from "@pulumi/grafana";
55
+ *
56
+ * const alex = grafana.getOncallUser({
57
+ * username: "alex",
58
+ * });
59
+ * ```
60
+ */
61
+ export declare function getOncallUserOutput(args: GetOncallUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOncallUserResult>;
62
+ /**
63
+ * A collection of arguments for invoking getOncallUser.
64
+ */
65
+ export interface GetOncallUserOutputArgs {
66
+ /**
67
+ * The username of the user.
68
+ */
69
+ username: pulumi.Input<string>;
70
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getOncallUserOutput = exports.getOncallUser = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/users/)
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as grafana from "@pulumi/grafana";
16
+ *
17
+ * const alex = grafana.getOncallUser({
18
+ * username: "alex",
19
+ * });
20
+ * ```
21
+ */
22
+ function getOncallUser(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("grafana:index/getOncallUser:getOncallUser", {
25
+ "username": args.username,
26
+ }, opts);
27
+ }
28
+ exports.getOncallUser = getOncallUser;
29
+ /**
30
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/users/)
31
+ *
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as grafana from "@pulumi/grafana";
37
+ *
38
+ * const alex = grafana.getOncallUser({
39
+ * username: "alex",
40
+ * });
41
+ * ```
42
+ */
43
+ function getOncallUserOutput(args, opts) {
44
+ return pulumi.output(args).apply((a) => getOncallUser(a, opts));
45
+ }
46
+ exports.getOncallUserOutput = getOncallUserOutput;
47
+ //# sourceMappingURL=getOncallUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOncallUser.js","sourceRoot":"","sources":["../getOncallUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAiCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -0,0 +1,54 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/user_groups/)
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as grafana from "@pulumi/grafana";
10
+ *
11
+ * const exampleUserGroup = grafana.getOncallUserGroup({
12
+ * slackHandle: "example_slack_handle",
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function getOncallUserGroup(args: GetOncallUserGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetOncallUserGroupResult>;
17
+ /**
18
+ * A collection of arguments for invoking getOncallUserGroup.
19
+ */
20
+ export interface GetOncallUserGroupArgs {
21
+ slackHandle: string;
22
+ }
23
+ /**
24
+ * A collection of values returned by getOncallUserGroup.
25
+ */
26
+ export interface GetOncallUserGroupResult {
27
+ /**
28
+ * The provider-assigned unique ID for this managed resource.
29
+ */
30
+ readonly id: string;
31
+ readonly slackHandle: string;
32
+ readonly slackId: string;
33
+ }
34
+ /**
35
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/user_groups/)
36
+ *
37
+ * ## Example Usage
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as grafana from "@pulumi/grafana";
42
+ *
43
+ * const exampleUserGroup = grafana.getOncallUserGroup({
44
+ * slackHandle: "example_slack_handle",
45
+ * });
46
+ * ```
47
+ */
48
+ export declare function getOncallUserGroupOutput(args: GetOncallUserGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOncallUserGroupResult>;
49
+ /**
50
+ * A collection of arguments for invoking getOncallUserGroup.
51
+ */
52
+ export interface GetOncallUserGroupOutputArgs {
53
+ slackHandle: pulumi.Input<string>;
54
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getOncallUserGroupOutput = exports.getOncallUserGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/user_groups/)
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as grafana from "@pulumi/grafana";
16
+ *
17
+ * const exampleUserGroup = grafana.getOncallUserGroup({
18
+ * slackHandle: "example_slack_handle",
19
+ * });
20
+ * ```
21
+ */
22
+ function getOncallUserGroup(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("grafana:index/getOncallUserGroup:getOncallUserGroup", {
25
+ "slackHandle": args.slackHandle,
26
+ }, opts);
27
+ }
28
+ exports.getOncallUserGroup = getOncallUserGroup;
29
+ /**
30
+ * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/user_groups/)
31
+ *
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as grafana from "@pulumi/grafana";
37
+ *
38
+ * const exampleUserGroup = grafana.getOncallUserGroup({
39
+ * slackHandle: "example_slack_handle",
40
+ * });
41
+ * ```
42
+ */
43
+ function getOncallUserGroupOutput(args, opts) {
44
+ return pulumi.output(args).apply((a) => getOncallUserGroup(a, opts));
45
+ }
46
+ exports.getOncallUserGroupOutput = getOncallUserGroupOutput;
47
+ //# sourceMappingURL=getOncallUserGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOncallUserGroup.js","sourceRoot":"","sources":["../getOncallUserGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IAExF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAoBD;;;;;;;;;;;;;GAaG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
@@ -0,0 +1,94 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
4
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/)
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as grafana from "@pulumi/grafana";
11
+ * import * as grafana from "@pulumiverse/grafana";
12
+ *
13
+ * const test = new grafana.Organization("test", {
14
+ * adminUser: "admin",
15
+ * createUsers: true,
16
+ * viewers: [
17
+ * "viewer-01@example.com",
18
+ * "viewer-02@example.com",
19
+ * ],
20
+ * });
21
+ * const fromName = grafana.getOrganizationOutput({
22
+ * name: test.name,
23
+ * });
24
+ * ```
25
+ */
26
+ export declare function getOrganization(args: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
27
+ /**
28
+ * A collection of arguments for invoking getOrganization.
29
+ */
30
+ export interface GetOrganizationArgs {
31
+ /**
32
+ * The name of the Organization.
33
+ */
34
+ name: string;
35
+ }
36
+ /**
37
+ * A collection of values returned by getOrganization.
38
+ */
39
+ export interface GetOrganizationResult {
40
+ /**
41
+ * A list of email addresses corresponding to users given admin access to the organization.
42
+ */
43
+ readonly admins: string[];
44
+ /**
45
+ * A list of email addresses corresponding to users given editor access to the organization.
46
+ */
47
+ readonly editors: string[];
48
+ /**
49
+ * The provider-assigned unique ID for this managed resource.
50
+ */
51
+ readonly id: string;
52
+ /**
53
+ * The name of the Organization.
54
+ */
55
+ readonly name: string;
56
+ /**
57
+ * A list of email addresses corresponding to users given viewer access to the organization.
58
+ */
59
+ readonly viewers: string[];
60
+ }
61
+ /**
62
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
63
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/)
64
+ *
65
+ * ## Example Usage
66
+ *
67
+ * ```typescript
68
+ * import * as pulumi from "@pulumi/pulumi";
69
+ * import * as grafana from "@pulumi/grafana";
70
+ * import * as grafana from "@pulumiverse/grafana";
71
+ *
72
+ * const test = new grafana.Organization("test", {
73
+ * adminUser: "admin",
74
+ * createUsers: true,
75
+ * viewers: [
76
+ * "viewer-01@example.com",
77
+ * "viewer-02@example.com",
78
+ * ],
79
+ * });
80
+ * const fromName = grafana.getOrganizationOutput({
81
+ * name: test.name,
82
+ * });
83
+ * ```
84
+ */
85
+ export declare function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
86
+ /**
87
+ * A collection of arguments for invoking getOrganization.
88
+ */
89
+ export interface GetOrganizationOutputArgs {
90
+ /**
91
+ * The name of the Organization.
92
+ */
93
+ name: pulumi.Input<string>;
94
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getOrganizationOutput = exports.getOrganization = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
10
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/)
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as grafana from "@pulumi/grafana";
17
+ * import * as grafana from "@pulumiverse/grafana";
18
+ *
19
+ * const test = new grafana.Organization("test", {
20
+ * adminUser: "admin",
21
+ * createUsers: true,
22
+ * viewers: [
23
+ * "viewer-01@example.com",
24
+ * "viewer-02@example.com",
25
+ * ],
26
+ * });
27
+ * const fromName = grafana.getOrganizationOutput({
28
+ * name: test.name,
29
+ * });
30
+ * ```
31
+ */
32
+ function getOrganization(args, opts) {
33
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
34
+ return pulumi.runtime.invoke("grafana:index/getOrganization:getOrganization", {
35
+ "name": args.name,
36
+ }, opts);
37
+ }
38
+ exports.getOrganization = getOrganization;
39
+ /**
40
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
41
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/)
42
+ *
43
+ * ## Example Usage
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as grafana from "@pulumi/grafana";
48
+ * import * as grafana from "@pulumiverse/grafana";
49
+ *
50
+ * const test = new grafana.Organization("test", {
51
+ * adminUser: "admin",
52
+ * createUsers: true,
53
+ * viewers: [
54
+ * "viewer-01@example.com",
55
+ * "viewer-02@example.com",
56
+ * ],
57
+ * });
58
+ * const fromName = grafana.getOrganizationOutput({
59
+ * name: test.name,
60
+ * });
61
+ * ```
62
+ */
63
+ function getOrganizationOutput(args, opts) {
64
+ return pulumi.output(args).apply((a) => getOrganization(a, opts));
65
+ }
66
+ exports.getOrganizationOutput = getOrganizationOutput;
67
+ //# sourceMappingURL=getOrganization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+CAA+C,EAAE;QAC1E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
@@ -0,0 +1,62 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
4
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/preferences/#get-current-org-prefs)
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as grafana from "@pulumi/grafana";
11
+ *
12
+ * const test = grafana.getOrganizationPreferences({});
13
+ * ```
14
+ */
15
+ export declare function getOrganizationPreferences(opts?: pulumi.InvokeOptions): Promise<GetOrganizationPreferencesResult>;
16
+ /**
17
+ * A collection of values returned by getOrganizationPreferences.
18
+ */
19
+ export interface GetOrganizationPreferencesResult {
20
+ /**
21
+ * The Organization home dashboard ID.
22
+ */
23
+ readonly homeDashboardId: number;
24
+ /**
25
+ * The Organization home dashboard UID. This is only available in Grafana 9.0+.
26
+ */
27
+ readonly homeDashboardUid: string;
28
+ /**
29
+ * The provider-assigned unique ID for this managed resource.
30
+ */
31
+ readonly id: string;
32
+ /**
33
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
34
+ */
35
+ readonly orgId: string;
36
+ /**
37
+ * The Organization theme. Available values are `light`, `dark`, or an empty string for the default.
38
+ */
39
+ readonly theme: string;
40
+ /**
41
+ * The Organization timezone. Available values are `utc`, `browser`, or an empty string for the default.
42
+ */
43
+ readonly timezone: string;
44
+ /**
45
+ * The Organization week start.
46
+ */
47
+ readonly weekStart: string;
48
+ }
49
+ /**
50
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
51
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/preferences/#get-current-org-prefs)
52
+ *
53
+ * ## Example Usage
54
+ *
55
+ * ```typescript
56
+ * import * as pulumi from "@pulumi/pulumi";
57
+ * import * as grafana from "@pulumi/grafana";
58
+ *
59
+ * const test = grafana.getOrganizationPreferences({});
60
+ * ```
61
+ */
62
+ export declare function getOrganizationPreferencesOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationPreferencesResult>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getOrganizationPreferencesOutput = exports.getOrganizationPreferences = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
10
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/preferences/#get-current-org-prefs)
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as grafana from "@pulumi/grafana";
17
+ *
18
+ * const test = grafana.getOrganizationPreferences({});
19
+ * ```
20
+ */
21
+ function getOrganizationPreferences(opts) {
22
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
+ return pulumi.runtime.invoke("grafana:index/getOrganizationPreferences:getOrganizationPreferences", {}, opts);
24
+ }
25
+ exports.getOrganizationPreferences = getOrganizationPreferences;
26
+ /**
27
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
28
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/preferences/#get-current-org-prefs)
29
+ *
30
+ * ## Example Usage
31
+ *
32
+ * ```typescript
33
+ * import * as pulumi from "@pulumi/pulumi";
34
+ * import * as grafana from "@pulumi/grafana";
35
+ *
36
+ * const test = grafana.getOrganizationPreferences({});
37
+ * ```
38
+ */
39
+ function getOrganizationPreferencesOutput(opts) {
40
+ return pulumi.output(getOrganizationPreferences(opts));
41
+ }
42
+ exports.getOrganizationPreferencesOutput = getOrganizationPreferencesOutput;
43
+ //# sourceMappingURL=getOrganizationPreferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOrganizationPreferences.js","sourceRoot":"","sources":["../getOrganizationPreferences.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,SAAgB,0BAA0B,CAAC,IAA2B;IAElE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qEAAqE,EAAE,EACnG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gEAKC;AAmCD;;;;;;;;;;;;GAYG;AACH,SAAgB,gCAAgC,CAAC,IAA2B;IACxE,OAAO,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,CAAA;AAC1D,CAAC;AAFD,4EAEC"}
package/getRole.d.ts ADDED
@@ -0,0 +1,147 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * **Note:** This resource is available only with Grafana Enterprise 8.+.
5
+ *
6
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
7
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/access_control/)
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as grafana from "@pulumi/grafana";
14
+ * import * as grafana from "@pulumiverse/grafana";
15
+ *
16
+ * const test = new grafana.Role("test", {
17
+ * description: "test-role description",
18
+ * uid: "test-ds-role-uid",
19
+ * version: 1,
20
+ * global: true,
21
+ * permissions: [
22
+ * {
23
+ * action: "org.users:add",
24
+ * scope: "users:*",
25
+ * },
26
+ * {
27
+ * action: "org.users:write",
28
+ * scope: "users:*",
29
+ * },
30
+ * {
31
+ * action: "org.users:read",
32
+ * scope: "users:*",
33
+ * },
34
+ * ],
35
+ * });
36
+ * const fromName = grafana.getRoleOutput({
37
+ * name: test.name,
38
+ * });
39
+ * ```
40
+ */
41
+ export declare function getRole(args: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetRoleResult>;
42
+ /**
43
+ * A collection of arguments for invoking getRole.
44
+ */
45
+ export interface GetRoleArgs {
46
+ /**
47
+ * Name of the role
48
+ */
49
+ name: string;
50
+ }
51
+ /**
52
+ * A collection of values returned by getRole.
53
+ */
54
+ export interface GetRoleResult {
55
+ /**
56
+ * Description of the role.
57
+ */
58
+ readonly description: string;
59
+ /**
60
+ * Display name of the role. Available with Grafana 8.5+.
61
+ */
62
+ readonly displayName: string;
63
+ /**
64
+ * Boolean to state whether the role is available across all organizations or not.
65
+ */
66
+ readonly global: boolean;
67
+ /**
68
+ * Group of the role. Available with Grafana 8.5+.
69
+ */
70
+ readonly group: string;
71
+ /**
72
+ * Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+.
73
+ */
74
+ readonly hidden: boolean;
75
+ /**
76
+ * The provider-assigned unique ID for this managed resource.
77
+ */
78
+ readonly id: string;
79
+ /**
80
+ * Name of the role
81
+ */
82
+ readonly name: string;
83
+ /**
84
+ * The Organization ID. If not set, the Org ID defined in the provider block will be used.
85
+ */
86
+ readonly orgId: string;
87
+ /**
88
+ * Specific set of actions granted by the role.
89
+ */
90
+ readonly permissions: outputs.GetRolePermission[];
91
+ /**
92
+ * Unique identifier of the role. Used for assignments.
93
+ */
94
+ readonly uid: string;
95
+ /**
96
+ * Version of the role. A role is updated only on version increase. This field or `autoIncrementVersion` should be set.
97
+ */
98
+ readonly version: number;
99
+ }
100
+ /**
101
+ * **Note:** This resource is available only with Grafana Enterprise 8.+.
102
+ *
103
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
104
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/access_control/)
105
+ *
106
+ * ## Example Usage
107
+ *
108
+ * ```typescript
109
+ * import * as pulumi from "@pulumi/pulumi";
110
+ * import * as grafana from "@pulumi/grafana";
111
+ * import * as grafana from "@pulumiverse/grafana";
112
+ *
113
+ * const test = new grafana.Role("test", {
114
+ * description: "test-role description",
115
+ * uid: "test-ds-role-uid",
116
+ * version: 1,
117
+ * global: true,
118
+ * permissions: [
119
+ * {
120
+ * action: "org.users:add",
121
+ * scope: "users:*",
122
+ * },
123
+ * {
124
+ * action: "org.users:write",
125
+ * scope: "users:*",
126
+ * },
127
+ * {
128
+ * action: "org.users:read",
129
+ * scope: "users:*",
130
+ * },
131
+ * ],
132
+ * });
133
+ * const fromName = grafana.getRoleOutput({
134
+ * name: test.name,
135
+ * });
136
+ * ```
137
+ */
138
+ export declare function getRoleOutput(args: GetRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRoleResult>;
139
+ /**
140
+ * A collection of arguments for invoking getRole.
141
+ */
142
+ export interface GetRoleOutputArgs {
143
+ /**
144
+ * Name of the role
145
+ */
146
+ name: pulumi.Input<string>;
147
+ }