@pulumiverse/grafana 0.5.0 → 0.5.1
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/annotation.d.ts +28 -3
- package/annotation.js +25 -0
- package/annotation.js.map +1 -1
- package/apiKey.d.ts +18 -0
- package/apiKey.js +18 -0
- package/apiKey.js.map +1 -1
- package/cloudAccessPolicy.d.ts +57 -15
- package/cloudAccessPolicy.js +51 -0
- package/cloudAccessPolicy.js.map +1 -1
- package/cloudAccessPolicyToken.d.ts +54 -9
- package/cloudAccessPolicyToken.js +51 -0
- package/cloudAccessPolicyToken.js.map +1 -1
- package/cloudApiKey.d.ts +35 -6
- package/cloudApiKey.js +32 -0
- package/cloudApiKey.js.map +1 -1
- package/cloudOrgMember.d.ts +9 -0
- package/cloudOrgMember.js +9 -0
- package/cloudOrgMember.js.map +1 -1
- package/cloudPluginInstallation.d.ts +32 -0
- package/cloudPluginInstallation.js +32 -0
- package/cloudPluginInstallation.js.map +1 -1
- package/cloudStack.d.ts +49 -38
- package/cloudStack.js +30 -0
- package/cloudStack.js.map +1 -1
- package/cloudStackServiceAccount.d.ts +36 -3
- package/cloudStackServiceAccount.js +33 -0
- package/cloudStackServiceAccount.js.map +1 -1
- package/cloudStackServiceAccountToken.d.ts +28 -0
- package/cloudStackServiceAccountToken.js +28 -0
- package/cloudStackServiceAccountToken.js.map +1 -1
- package/contactPoint.d.ts +44 -9
- package/contactPoint.js +38 -0
- package/contactPoint.js.map +1 -1
- package/dashboard.d.ts +44 -16
- package/dashboard.js +37 -0
- package/dashboard.js.map +1 -1
- package/dashboardPermission.d.ts +55 -3
- package/dashboardPermission.js +52 -0
- package/dashboardPermission.js.map +1 -1
- package/dashboardPermissionItem.d.ts +48 -0
- package/dashboardPermissionItem.js +48 -0
- package/dashboardPermissionItem.js.map +1 -1
- package/dashboardPublic.d.ts +73 -12
- package/dashboardPublic.js +67 -0
- package/dashboardPublic.js.map +1 -1
- package/dataSource.d.ts +102 -36
- package/dataSource.js +78 -0
- package/dataSource.js.map +1 -1
- package/dataSourceConfig.d.ts +69 -18
- package/dataSourceConfig.js +63 -0
- package/dataSourceConfig.js.map +1 -1
- package/dataSourcePermission.d.ts +66 -3
- package/dataSourcePermission.js +63 -0
- package/dataSourcePermission.js.map +1 -1
- package/dataSourcePermissionItem.d.ts +61 -0
- package/dataSourcePermissionItem.js +61 -0
- package/dataSourcePermissionItem.js.map +1 -1
- package/folder.d.ts +43 -9
- package/folder.js +37 -0
- package/folder.js.map +1 -1
- package/folderPermission.d.ts +49 -0
- package/folderPermission.js +49 -0
- package/folderPermission.js.map +1 -1
- package/folderPermissionItem.d.ts +47 -0
- package/folderPermissionItem.js +47 -0
- package/folderPermissionItem.js.map +1 -1
- package/getCloudIps.d.ts +43 -0
- package/getCloudIps.js +28 -0
- package/getCloudIps.js.map +1 -1
- package/getCloudOrganization.d.ts +37 -0
- package/getCloudOrganization.js +28 -0
- package/getCloudOrganization.js.map +1 -1
- package/getCloudStack.d.ts +84 -0
- package/getCloudStack.js +6 -0
- package/getCloudStack.js.map +1 -1
- package/getDashboard.d.ts +114 -0
- package/getDashboard.js +64 -0
- package/getDashboard.js.map +1 -1
- package/getDashboards.d.ts +56 -0
- package/getDashboards.js +14 -0
- package/getDashboards.js.map +1 -1
- package/getDataSource.d.ts +118 -0
- package/getDataSource.js +76 -0
- package/getDataSource.js.map +1 -1
- package/getFolder.d.ts +71 -0
- package/getFolder.js +44 -0
- package/getFolder.js.map +1 -1
- package/getFolders.d.ts +60 -0
- package/getFolders.js +48 -0
- package/getFolders.js.map +1 -1
- package/getLibraryPanel.d.ts +65 -0
- package/getLibraryPanel.js +6 -0
- package/getLibraryPanel.js.map +1 -1
- package/getOnCallSlackChannel.d.ts +44 -0
- package/getOnCallSlackChannel.js +32 -0
- package/getOnCallSlackChannel.js.map +1 -1
- package/getOncallAction.d.ts +21 -0
- package/getOncallAction.js +12 -0
- package/getOncallAction.js.map +1 -1
- package/getOncallEscalationChain.d.ts +41 -0
- package/getOncallEscalationChain.js +32 -0
- package/getOncallEscalationChain.js.map +1 -1
- package/getOncallIntegration.d.ts +44 -0
- package/getOncallIntegration.js +32 -0
- package/getOncallIntegration.js.map +1 -1
- package/getOncallOutgoingWebhook.d.ts +41 -0
- package/getOncallOutgoingWebhook.js +32 -0
- package/getOncallOutgoingWebhook.js.map +1 -1
- package/getOncallSchedule.d.ts +46 -0
- package/getOncallSchedule.js +34 -0
- package/getOncallSchedule.js.map +1 -1
- package/getOncallTeam.d.ts +37 -0
- package/getOncallTeam.js +28 -0
- package/getOncallTeam.js.map +1 -1
- package/getOncallUser.d.ts +47 -0
- package/getOncallUser.js +32 -0
- package/getOncallUser.js.map +1 -1
- package/getOncallUserGroup.d.ts +32 -0
- package/getOncallUserGroup.js +32 -0
- package/getOncallUserGroup.js.map +1 -1
- package/getOrganization.d.ts +70 -0
- package/getOrganization.js +52 -0
- package/getOrganization.js.map +1 -1
- package/getOrganizationPreferences.d.ts +53 -0
- package/getOrganizationPreferences.js +30 -0
- package/getOrganizationPreferences.js.map +1 -1
- package/getRole.d.ts +118 -0
- package/getRole.js +82 -0
- package/getRole.js.map +1 -1
- package/getServiceAccount.d.ts +32 -0
- package/getServiceAccount.js +8 -0
- package/getServiceAccount.js.map +1 -1
- package/getSlos.d.ts +17 -0
- package/getSlos.js +14 -0
- package/getSlos.js.map +1 -1
- package/getSyntheticMonitoringProbe.d.ts +62 -0
- package/getSyntheticMonitoringProbe.js +32 -0
- package/getSyntheticMonitoringProbe.js.map +1 -1
- package/getSyntheticMonitoringProbes.d.ts +40 -0
- package/getSyntheticMonitoringProbes.js +28 -0
- package/getSyntheticMonitoringProbes.js.map +1 -1
- package/getTeam.d.ts +50 -0
- package/getTeam.js +50 -0
- package/getTeam.js.map +1 -1
- package/getUser.d.ts +99 -0
- package/getUser.js +66 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +51 -0
- package/getUsers.js +48 -0
- package/getUsers.js.map +1 -1
- package/libraryPanel.d.ts +43 -12
- package/libraryPanel.js +37 -0
- package/libraryPanel.js.map +1 -1
- package/machineLearningHoliday.d.ts +14 -3
- package/machineLearningHoliday.js +11 -0
- package/machineLearningHoliday.js.map +1 -1
- package/machineLearningJob.d.ts +18 -12
- package/machineLearningJob.js +9 -0
- package/machineLearningJob.js.map +1 -1
- package/machineLearningOutlierDetector.d.ts +22 -12
- package/machineLearningOutlierDetector.js +13 -0
- package/machineLearningOutlierDetector.js.map +1 -1
- package/messageTemplate.d.ts +32 -0
- package/messageTemplate.js +32 -0
- package/messageTemplate.js.map +1 -1
- package/muteTiming.d.ts +51 -0
- package/muteTiming.js +51 -0
- package/muteTiming.js.map +1 -1
- package/notificationPolicy.d.ts +98 -9
- package/notificationPolicy.js +92 -0
- package/notificationPolicy.js.map +1 -1
- package/oncallEscalation.d.ts +81 -41
- package/oncallEscalation.js +52 -0
- package/oncallEscalation.js.map +1 -1
- package/oncallEscalationChain.d.ts +25 -6
- package/oncallEscalationChain.js +22 -0
- package/oncallEscalationChain.js.map +1 -1
- package/oncallIntegration.d.ts +16 -15
- package/oncallIntegration.js +10 -0
- package/oncallIntegration.js.map +1 -1
- package/oncallOnCallShift.d.ts +30 -27
- package/oncallOnCallShift.js +9 -0
- package/oncallOnCallShift.js.map +1 -1
- package/oncallOutgoingWebhook.d.ts +34 -21
- package/oncallOutgoingWebhook.js +22 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/oncallRoute.d.ts +49 -3
- package/oncallRoute.js +46 -0
- package/oncallRoute.js.map +1 -1
- package/oncallSchedule.d.ts +49 -9
- package/oncallSchedule.js +43 -0
- package/oncallSchedule.js.map +1 -1
- package/organization.d.ts +94 -39
- package/organization.js +37 -0
- package/organization.js.map +1 -1
- package/organizationPreference.d.ts +31 -9
- package/organizationPreference.js +25 -0
- package/organizationPreference.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/playlist.d.ts +41 -0
- package/playlist.js +41 -0
- package/playlist.js.map +1 -1
- package/report.d.ts +56 -15
- package/report.js +41 -0
- package/report.js.map +1 -1
- package/role.d.ts +58 -15
- package/role.js +46 -0
- package/role.js.map +1 -1
- package/roleAssignment.d.ts +48 -0
- package/roleAssignment.js +48 -0
- package/roleAssignment.js.map +1 -1
- package/roleAssignmentItem.d.ts +51 -0
- package/roleAssignmentItem.js +51 -0
- package/roleAssignmentItem.js.map +1 -1
- package/ruleGroup.d.ts +117 -9
- package/ruleGroup.js +111 -0
- package/ruleGroup.js.map +1 -1
- package/serviceAccount.d.ts +33 -3
- package/serviceAccount.js +30 -0
- package/serviceAccount.js.map +1 -1
- package/serviceAccountPermission.d.ts +50 -0
- package/serviceAccountPermission.js +50 -0
- package/serviceAccountPermission.js.map +1 -1
- package/serviceAccountPermissionItem.d.ts +44 -0
- package/serviceAccountPermissionItem.js +44 -0
- package/serviceAccountPermissionItem.js.map +1 -1
- package/serviceAccountToken.d.ts +27 -9
- package/serviceAccountToken.js +24 -0
- package/serviceAccountToken.js.map +1 -1
- package/slo.d.ts +39 -27
- package/slo.js +15 -0
- package/slo.js.map +1 -1
- package/ssoSettings.d.ts +75 -3
- package/ssoSettings.js +72 -0
- package/ssoSettings.js.map +1 -1
- package/syntheticMonitoringCheck.d.ts +431 -36
- package/syntheticMonitoringCheck.js +413 -0
- package/syntheticMonitoringCheck.js.map +1 -1
- package/syntheticMonitoringInstallation.d.ts +75 -24
- package/syntheticMonitoringInstallation.js +69 -0
- package/syntheticMonitoringInstallation.js.map +1 -1
- package/syntheticMonitoringProbe.d.ts +39 -6
- package/syntheticMonitoringProbe.js +36 -0
- package/syntheticMonitoringProbe.js.map +1 -1
- package/team.d.ts +33 -0
- package/team.js +33 -0
- package/team.js.map +1 -1
- package/teamExternalGroup.d.ts +31 -0
- package/teamExternalGroup.js +31 -0
- package/teamExternalGroup.js.map +1 -1
- package/types/input.d.ts +123 -123
- package/types/output.d.ts +123 -123
- package/user.d.ts +33 -3
- package/user.js +30 -0
- package/user.js.map +1 -1
package/report.d.ts
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* **Note:** This resource is available only with Grafana Enterprise 7.+.
|
|
6
|
+
*
|
|
7
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/create-reports/)
|
|
8
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/reporting/)
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* const testDashboard = new grafana.Dashboard("testDashboard", {
|
|
18
|
+
* configJson: `{
|
|
19
|
+
* "uid": "report-dashboard",
|
|
20
|
+
* "title": "report-dashboard"
|
|
21
|
+
* }
|
|
22
|
+
* `,
|
|
23
|
+
* message: "inital commit.",
|
|
24
|
+
* });
|
|
25
|
+
* const testReport = new grafana.Report("testReport", {
|
|
26
|
+
* dashboardUid: testDashboard.uid,
|
|
27
|
+
* recipients: ["some@email.com"],
|
|
28
|
+
* schedule: {
|
|
29
|
+
* frequency: "hourly",
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
* <!--End PulumiCodeChooser -->
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import grafana:index/report:Report name "{{ id }}"
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import grafana:index/report:Report name "{{ orgID }}:{{ id }}"
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
4
45
|
export declare class Report extends pulumi.CustomResource {
|
|
5
46
|
/**
|
|
6
47
|
* Get an existing Report resource's state with the given name, ID, and optional extra
|
|
@@ -18,7 +59,7 @@ export declare class Report extends pulumi.CustomResource {
|
|
|
18
59
|
*/
|
|
19
60
|
static isInstance(obj: any): obj is Report;
|
|
20
61
|
/**
|
|
21
|
-
* Dashboard to be sent in the report. This field is deprecated, use `
|
|
62
|
+
* Dashboard to be sent in the report. This field is deprecated, use `dashboardUid` instead.
|
|
22
63
|
*
|
|
23
64
|
* @deprecated Use dashboards instead
|
|
24
65
|
*/
|
|
@@ -38,15 +79,15 @@ export declare class Report extends pulumi.CustomResource {
|
|
|
38
79
|
*/
|
|
39
80
|
readonly formats: pulumi.Output<string[] | undefined>;
|
|
40
81
|
/**
|
|
41
|
-
* Whether to include a link to the dashboard in the report.
|
|
82
|
+
* Whether to include a link to the dashboard in the report. Defaults to `true`.
|
|
42
83
|
*/
|
|
43
84
|
readonly includeDashboardLink: pulumi.Output<boolean | undefined>;
|
|
44
85
|
/**
|
|
45
|
-
* Whether to include a CSV file of table panel data.
|
|
86
|
+
* Whether to include a CSV file of table panel data. Defaults to `false`.
|
|
46
87
|
*/
|
|
47
88
|
readonly includeTableCsv: pulumi.Output<boolean | undefined>;
|
|
48
89
|
/**
|
|
49
|
-
* Layout of the report. Allowed values: `simple`, `grid`.
|
|
90
|
+
* Layout of the report. Allowed values: `simple`, `grid`. Defaults to `grid`.
|
|
50
91
|
*/
|
|
51
92
|
readonly layout: pulumi.Output<string | undefined>;
|
|
52
93
|
/**
|
|
@@ -62,7 +103,7 @@ export declare class Report extends pulumi.CustomResource {
|
|
|
62
103
|
*/
|
|
63
104
|
readonly orgId: pulumi.Output<string | undefined>;
|
|
64
105
|
/**
|
|
65
|
-
* Orientation of the report. Allowed values: `landscape`, `portrait`.
|
|
106
|
+
* Orientation of the report. Allowed values: `landscape`, `portrait`. Defaults to `landscape`.
|
|
66
107
|
*/
|
|
67
108
|
readonly orientation: pulumi.Output<string | undefined>;
|
|
68
109
|
/**
|
|
@@ -97,7 +138,7 @@ export declare class Report extends pulumi.CustomResource {
|
|
|
97
138
|
*/
|
|
98
139
|
export interface ReportState {
|
|
99
140
|
/**
|
|
100
|
-
* Dashboard to be sent in the report. This field is deprecated, use `
|
|
141
|
+
* Dashboard to be sent in the report. This field is deprecated, use `dashboardUid` instead.
|
|
101
142
|
*
|
|
102
143
|
* @deprecated Use dashboards instead
|
|
103
144
|
*/
|
|
@@ -117,15 +158,15 @@ export interface ReportState {
|
|
|
117
158
|
*/
|
|
118
159
|
formats?: pulumi.Input<pulumi.Input<string>[]>;
|
|
119
160
|
/**
|
|
120
|
-
* Whether to include a link to the dashboard in the report.
|
|
161
|
+
* Whether to include a link to the dashboard in the report. Defaults to `true`.
|
|
121
162
|
*/
|
|
122
163
|
includeDashboardLink?: pulumi.Input<boolean>;
|
|
123
164
|
/**
|
|
124
|
-
* Whether to include a CSV file of table panel data.
|
|
165
|
+
* Whether to include a CSV file of table panel data. Defaults to `false`.
|
|
125
166
|
*/
|
|
126
167
|
includeTableCsv?: pulumi.Input<boolean>;
|
|
127
168
|
/**
|
|
128
|
-
* Layout of the report. Allowed values: `simple`, `grid`.
|
|
169
|
+
* Layout of the report. Allowed values: `simple`, `grid`. Defaults to `grid`.
|
|
129
170
|
*/
|
|
130
171
|
layout?: pulumi.Input<string>;
|
|
131
172
|
/**
|
|
@@ -141,7 +182,7 @@ export interface ReportState {
|
|
|
141
182
|
*/
|
|
142
183
|
orgId?: pulumi.Input<string>;
|
|
143
184
|
/**
|
|
144
|
-
* Orientation of the report. Allowed values: `landscape`, `portrait`.
|
|
185
|
+
* Orientation of the report. Allowed values: `landscape`, `portrait`. Defaults to `landscape`.
|
|
145
186
|
*/
|
|
146
187
|
orientation?: pulumi.Input<string>;
|
|
147
188
|
/**
|
|
@@ -168,7 +209,7 @@ export interface ReportState {
|
|
|
168
209
|
*/
|
|
169
210
|
export interface ReportArgs {
|
|
170
211
|
/**
|
|
171
|
-
* Dashboard to be sent in the report. This field is deprecated, use `
|
|
212
|
+
* Dashboard to be sent in the report. This field is deprecated, use `dashboardUid` instead.
|
|
172
213
|
*
|
|
173
214
|
* @deprecated Use dashboards instead
|
|
174
215
|
*/
|
|
@@ -188,15 +229,15 @@ export interface ReportArgs {
|
|
|
188
229
|
*/
|
|
189
230
|
formats?: pulumi.Input<pulumi.Input<string>[]>;
|
|
190
231
|
/**
|
|
191
|
-
* Whether to include a link to the dashboard in the report.
|
|
232
|
+
* Whether to include a link to the dashboard in the report. Defaults to `true`.
|
|
192
233
|
*/
|
|
193
234
|
includeDashboardLink?: pulumi.Input<boolean>;
|
|
194
235
|
/**
|
|
195
|
-
* Whether to include a CSV file of table panel data.
|
|
236
|
+
* Whether to include a CSV file of table panel data. Defaults to `false`.
|
|
196
237
|
*/
|
|
197
238
|
includeTableCsv?: pulumi.Input<boolean>;
|
|
198
239
|
/**
|
|
199
|
-
* Layout of the report. Allowed values: `simple`, `grid`.
|
|
240
|
+
* Layout of the report. Allowed values: `simple`, `grid`. Defaults to `grid`.
|
|
200
241
|
*/
|
|
201
242
|
layout?: pulumi.Input<string>;
|
|
202
243
|
/**
|
|
@@ -212,7 +253,7 @@ export interface ReportArgs {
|
|
|
212
253
|
*/
|
|
213
254
|
orgId?: pulumi.Input<string>;
|
|
214
255
|
/**
|
|
215
|
-
* Orientation of the report. Allowed values: `landscape`, `portrait`.
|
|
256
|
+
* Orientation of the report. Allowed values: `landscape`, `portrait`. Defaults to `landscape`.
|
|
216
257
|
*/
|
|
217
258
|
orientation?: pulumi.Input<string>;
|
|
218
259
|
/**
|
package/report.js
CHANGED
|
@@ -5,6 +5,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Report = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* **Note:** This resource is available only with Grafana Enterprise 7.+.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/create-reports/)
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/reporting/)
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
20
|
+
*
|
|
21
|
+
* const testDashboard = new grafana.Dashboard("testDashboard", {
|
|
22
|
+
* configJson: `{
|
|
23
|
+
* "uid": "report-dashboard",
|
|
24
|
+
* "title": "report-dashboard"
|
|
25
|
+
* }
|
|
26
|
+
* `,
|
|
27
|
+
* message: "inital commit.",
|
|
28
|
+
* });
|
|
29
|
+
* const testReport = new grafana.Report("testReport", {
|
|
30
|
+
* dashboardUid: testDashboard.uid,
|
|
31
|
+
* recipients: ["some@email.com"],
|
|
32
|
+
* schedule: {
|
|
33
|
+
* frequency: "hourly",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
* <!--End PulumiCodeChooser -->
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import grafana:index/report:Report name "{{ id }}"
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import grafana:index/report:Report name "{{ orgID }}:{{ id }}"
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
8
49
|
class Report extends pulumi.CustomResource {
|
|
9
50
|
/**
|
|
10
51
|
* Get an existing Report resource's state with the given name, ID, and optional extra
|
package/report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../report.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGz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,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,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,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AArJL,wBAsJC;AAxIG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
|
package/role.d.ts
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* **Note:** This resource is available only with Grafana Enterprise 8.+.
|
|
6
|
+
*
|
|
7
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
|
|
8
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/access_control/)
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* const superUser = new grafana.Role("superUser", {
|
|
18
|
+
* description: "My Super User description",
|
|
19
|
+
* global: true,
|
|
20
|
+
* permissions: [
|
|
21
|
+
* {
|
|
22
|
+
* action: "org.users:add",
|
|
23
|
+
* scope: "users:*",
|
|
24
|
+
* },
|
|
25
|
+
* {
|
|
26
|
+
* action: "org.users:write",
|
|
27
|
+
* scope: "users:*",
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* action: "org.users:read",
|
|
31
|
+
* scope: "users:*",
|
|
32
|
+
* },
|
|
33
|
+
* ],
|
|
34
|
+
* uid: "superuseruid",
|
|
35
|
+
* version: 1,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* <!--End PulumiCodeChooser -->
|
|
39
|
+
*
|
|
40
|
+
* ## Import
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import grafana:index/role:Role name "{{ uid }}"
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import grafana:index/role:Role name "{{ orgID }}:{{ uid }}"
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
4
50
|
export declare class Role extends pulumi.CustomResource {
|
|
5
51
|
/**
|
|
6
52
|
* Get an existing Role resource's state with the given name, ID, and optional extra
|
|
@@ -18,8 +64,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
18
64
|
*/
|
|
19
65
|
static isInstance(obj: any): obj is Role;
|
|
20
66
|
/**
|
|
21
|
-
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or
|
|
22
|
-
* `version` should be set.
|
|
67
|
+
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or `version` should be set.
|
|
23
68
|
*/
|
|
24
69
|
readonly autoIncrementVersion: pulumi.Output<boolean | undefined>;
|
|
25
70
|
/**
|
|
@@ -31,7 +76,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
31
76
|
*/
|
|
32
77
|
readonly displayName: pulumi.Output<string | undefined>;
|
|
33
78
|
/**
|
|
34
|
-
* Boolean to state whether the role is available across all organizations or not.
|
|
79
|
+
* Boolean to state whether the role is available across all organizations or not. Defaults to `false`.
|
|
35
80
|
*/
|
|
36
81
|
readonly global: pulumi.Output<boolean | undefined>;
|
|
37
82
|
/**
|
|
@@ -39,7 +84,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
39
84
|
*/
|
|
40
85
|
readonly group: pulumi.Output<string | undefined>;
|
|
41
86
|
/**
|
|
42
|
-
* Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+.
|
|
87
|
+
* Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+. Defaults to `false`.
|
|
43
88
|
*/
|
|
44
89
|
readonly hidden: pulumi.Output<boolean | undefined>;
|
|
45
90
|
/**
|
|
@@ -59,7 +104,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
59
104
|
*/
|
|
60
105
|
readonly uid: pulumi.Output<string>;
|
|
61
106
|
/**
|
|
62
|
-
* Version of the role. A role is updated only on version increase. This field or `
|
|
107
|
+
* Version of the role. A role is updated only on version increase. This field or `autoIncrementVersion` should be set.
|
|
63
108
|
*/
|
|
64
109
|
readonly version: pulumi.Output<number | undefined>;
|
|
65
110
|
/**
|
|
@@ -76,8 +121,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
76
121
|
*/
|
|
77
122
|
export interface RoleState {
|
|
78
123
|
/**
|
|
79
|
-
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or
|
|
80
|
-
* `version` should be set.
|
|
124
|
+
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or `version` should be set.
|
|
81
125
|
*/
|
|
82
126
|
autoIncrementVersion?: pulumi.Input<boolean>;
|
|
83
127
|
/**
|
|
@@ -89,7 +133,7 @@ export interface RoleState {
|
|
|
89
133
|
*/
|
|
90
134
|
displayName?: pulumi.Input<string>;
|
|
91
135
|
/**
|
|
92
|
-
* Boolean to state whether the role is available across all organizations or not.
|
|
136
|
+
* Boolean to state whether the role is available across all organizations or not. Defaults to `false`.
|
|
93
137
|
*/
|
|
94
138
|
global?: pulumi.Input<boolean>;
|
|
95
139
|
/**
|
|
@@ -97,7 +141,7 @@ export interface RoleState {
|
|
|
97
141
|
*/
|
|
98
142
|
group?: pulumi.Input<string>;
|
|
99
143
|
/**
|
|
100
|
-
* Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+.
|
|
144
|
+
* Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+. Defaults to `false`.
|
|
101
145
|
*/
|
|
102
146
|
hidden?: pulumi.Input<boolean>;
|
|
103
147
|
/**
|
|
@@ -117,7 +161,7 @@ export interface RoleState {
|
|
|
117
161
|
*/
|
|
118
162
|
uid?: pulumi.Input<string>;
|
|
119
163
|
/**
|
|
120
|
-
* Version of the role. A role is updated only on version increase. This field or `
|
|
164
|
+
* Version of the role. A role is updated only on version increase. This field or `autoIncrementVersion` should be set.
|
|
121
165
|
*/
|
|
122
166
|
version?: pulumi.Input<number>;
|
|
123
167
|
}
|
|
@@ -126,8 +170,7 @@ export interface RoleState {
|
|
|
126
170
|
*/
|
|
127
171
|
export interface RoleArgs {
|
|
128
172
|
/**
|
|
129
|
-
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or
|
|
130
|
-
* `version` should be set.
|
|
173
|
+
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or `version` should be set.
|
|
131
174
|
*/
|
|
132
175
|
autoIncrementVersion?: pulumi.Input<boolean>;
|
|
133
176
|
/**
|
|
@@ -139,7 +182,7 @@ export interface RoleArgs {
|
|
|
139
182
|
*/
|
|
140
183
|
displayName?: pulumi.Input<string>;
|
|
141
184
|
/**
|
|
142
|
-
* Boolean to state whether the role is available across all organizations or not.
|
|
185
|
+
* Boolean to state whether the role is available across all organizations or not. Defaults to `false`.
|
|
143
186
|
*/
|
|
144
187
|
global?: pulumi.Input<boolean>;
|
|
145
188
|
/**
|
|
@@ -147,7 +190,7 @@ export interface RoleArgs {
|
|
|
147
190
|
*/
|
|
148
191
|
group?: pulumi.Input<string>;
|
|
149
192
|
/**
|
|
150
|
-
* Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+.
|
|
193
|
+
* Boolean to state whether the role should be visible in the Grafana UI or not. Available with Grafana 8.5+. Defaults to `false`.
|
|
151
194
|
*/
|
|
152
195
|
hidden?: pulumi.Input<boolean>;
|
|
153
196
|
/**
|
|
@@ -167,7 +210,7 @@ export interface RoleArgs {
|
|
|
167
210
|
*/
|
|
168
211
|
uid?: pulumi.Input<string>;
|
|
169
212
|
/**
|
|
170
|
-
* Version of the role. A role is updated only on version increase. This field or `
|
|
213
|
+
* Version of the role. A role is updated only on version increase. This field or `autoIncrementVersion` should be set.
|
|
171
214
|
*/
|
|
172
215
|
version?: pulumi.Input<number>;
|
|
173
216
|
}
|
package/role.js
CHANGED
|
@@ -5,6 +5,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Role = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* **Note:** This resource is available only with Grafana Enterprise 8.+.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/access_control/)
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
20
|
+
*
|
|
21
|
+
* const superUser = new grafana.Role("superUser", {
|
|
22
|
+
* description: "My Super User description",
|
|
23
|
+
* global: true,
|
|
24
|
+
* permissions: [
|
|
25
|
+
* {
|
|
26
|
+
* action: "org.users:add",
|
|
27
|
+
* scope: "users:*",
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* action: "org.users:write",
|
|
31
|
+
* scope: "users:*",
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* action: "org.users:read",
|
|
35
|
+
* scope: "users:*",
|
|
36
|
+
* },
|
|
37
|
+
* ],
|
|
38
|
+
* uid: "superuseruid",
|
|
39
|
+
* version: 1,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
* <!--End PulumiCodeChooser -->
|
|
43
|
+
*
|
|
44
|
+
* ## Import
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import grafana:index/role:Role name "{{ uid }}"
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import grafana:index/role:Role name "{{ orgID }}:{{ uid }}"
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
8
54
|
class Role extends pulumi.CustomResource {
|
|
9
55
|
/**
|
|
10
56
|
* Get an existing Role resource's state with the given name, ID, and optional extra
|
package/role.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAAM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ACzD,CAAC;;AAjHL,oBAkHC;AApGG,gBAAgB;AACO,iBAAY,GAAG,yBAAyB,CAAC"}
|
package/roleAssignment.d.ts
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages the entire set of assignments for a role. Assignments that aren't specified when applying this resource will be removed.
|
|
4
|
+
* **Note:** This resource is available only with Grafana Enterprise 9.2+.
|
|
5
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
|
|
6
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/access_control/)
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const testRole = new grafana.Role("testRole", {
|
|
16
|
+
* uid: "testrole",
|
|
17
|
+
* version: 1,
|
|
18
|
+
* global: true,
|
|
19
|
+
* permissions: [{
|
|
20
|
+
* action: "org.users:add",
|
|
21
|
+
* scope: "users:*",
|
|
22
|
+
* }],
|
|
23
|
+
* });
|
|
24
|
+
* const testTeam = new grafana.Team("testTeam", {});
|
|
25
|
+
* const testUser = new grafana.User("testUser", {
|
|
26
|
+
* email: "terraform_user@test.com",
|
|
27
|
+
* login: "terraform_user@test.com",
|
|
28
|
+
* password: "password",
|
|
29
|
+
* });
|
|
30
|
+
* const testSa = new grafana.ServiceAccount("testSa", {role: "Viewer"});
|
|
31
|
+
* const test = new grafana.RoleAssignment("test", {
|
|
32
|
+
* roleUid: testRole.uid,
|
|
33
|
+
* users: [testUser.id],
|
|
34
|
+
* teams: [testTeam.id],
|
|
35
|
+
* serviceAccounts: [testSa.id],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* <!--End PulumiCodeChooser -->
|
|
39
|
+
*
|
|
40
|
+
* ## Import
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import grafana:index/roleAssignment:RoleAssignment name "{{ roleUID }}"
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import grafana:index/roleAssignment:RoleAssignment name "{{ orgID }}:{{ roleUID }}"
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
2
50
|
export declare class RoleAssignment extends pulumi.CustomResource {
|
|
3
51
|
/**
|
|
4
52
|
* Get an existing RoleAssignment resource's state with the given name, ID, and optional extra
|
package/roleAssignment.js
CHANGED
|
@@ -5,6 +5,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RoleAssignment = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages the entire set of assignments for a role. Assignments that aren't specified when applying this resource will be removed.
|
|
10
|
+
* **Note:** This resource is available only with Grafana Enterprise 9.2+.
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/)
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/access_control/)
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
20
|
+
*
|
|
21
|
+
* const testRole = new grafana.Role("testRole", {
|
|
22
|
+
* uid: "testrole",
|
|
23
|
+
* version: 1,
|
|
24
|
+
* global: true,
|
|
25
|
+
* permissions: [{
|
|
26
|
+
* action: "org.users:add",
|
|
27
|
+
* scope: "users:*",
|
|
28
|
+
* }],
|
|
29
|
+
* });
|
|
30
|
+
* const testTeam = new grafana.Team("testTeam", {});
|
|
31
|
+
* const testUser = new grafana.User("testUser", {
|
|
32
|
+
* email: "terraform_user@test.com",
|
|
33
|
+
* login: "terraform_user@test.com",
|
|
34
|
+
* password: "password",
|
|
35
|
+
* });
|
|
36
|
+
* const testSa = new grafana.ServiceAccount("testSa", {role: "Viewer"});
|
|
37
|
+
* const test = new grafana.RoleAssignment("test", {
|
|
38
|
+
* roleUid: testRole.uid,
|
|
39
|
+
* users: [testUser.id],
|
|
40
|
+
* teams: [testTeam.id],
|
|
41
|
+
* serviceAccounts: [testSa.id],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
* <!--End PulumiCodeChooser -->
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* ```sh
|
|
49
|
+
* $ pulumi import grafana:index/roleAssignment:RoleAssignment name "{{ roleUID }}"
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import grafana:index/roleAssignment:RoleAssignment name "{{ orgID }}:{{ roleUID }}"
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
8
56
|
class RoleAssignment extends pulumi.CustomResource {
|
|
9
57
|
/**
|
|
10
58
|
* Get an existing RoleAssignment resource's state with the given name, ID, and optional extra
|
package/roleAssignment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roleAssignment.js","sourceRoot":"","sources":["../roleAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE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AG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAhFL,wCAiFC;AAnEG,gBAAgB;AACO,2BAAY,GAAG,6CAA6C,CAAC"}
|
package/roleAssignmentItem.d.ts
CHANGED
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a single assignment for a role. Conflicts with the "grafana.RoleAssignment" resource which manages the entire set of assignments for a role.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* <!--Start PulumiCodeChooser -->
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
11
|
+
*
|
|
12
|
+
* const testRole = new grafana.Role("testRole", {
|
|
13
|
+
* uid: "testrole",
|
|
14
|
+
* version: 1,
|
|
15
|
+
* global: true,
|
|
16
|
+
* permissions: [{
|
|
17
|
+
* action: "org.users:add",
|
|
18
|
+
* scope: "users:*",
|
|
19
|
+
* }],
|
|
20
|
+
* });
|
|
21
|
+
* const testTeam = new grafana.Team("testTeam", {});
|
|
22
|
+
* const testUser = new grafana.User("testUser", {
|
|
23
|
+
* email: "terraform_user@test.com",
|
|
24
|
+
* login: "terraform_user@test.com",
|
|
25
|
+
* password: "password",
|
|
26
|
+
* });
|
|
27
|
+
* const testSa = new grafana.ServiceAccount("testSa", {role: "Viewer"});
|
|
28
|
+
* const user = new grafana.RoleAssignmentItem("user", {
|
|
29
|
+
* roleUid: testRole.uid,
|
|
30
|
+
* userId: testUser.id,
|
|
31
|
+
* });
|
|
32
|
+
* const team = new grafana.RoleAssignmentItem("team", {
|
|
33
|
+
* roleUid: testRole.uid,
|
|
34
|
+
* teamId: testTeam.id,
|
|
35
|
+
* });
|
|
36
|
+
* const serviceAccount = new grafana.RoleAssignmentItem("serviceAccount", {
|
|
37
|
+
* roleUid: testRole.uid,
|
|
38
|
+
* serviceAccountId: testSa.id,
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
* <!--End PulumiCodeChooser -->
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import grafana:index/roleAssignmentItem:RoleAssignmentItem name "{{ roleUID }}:{{ type (user, team or service_account) }}:{{ identifier }}"
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import grafana:index/roleAssignmentItem:RoleAssignmentItem name "{{ orgID }}:{{ roleUID }}:{{ type (user, team or service_account) }}:{{ identifier }}"
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
2
53
|
export declare class RoleAssignmentItem extends pulumi.CustomResource {
|
|
3
54
|
/**
|
|
4
55
|
* Get an existing RoleAssignmentItem resource's state with the given name, ID, and optional extra
|