@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/dashboardPublic.d.ts
CHANGED
|
@@ -1,4 +1,71 @@
|
|
|
1
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
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
16
|
+
*
|
|
17
|
+
* // Optional (On-premise, not supported in Grafana Cloud): Create an organization
|
|
18
|
+
* const myOrg = new grafana.Organization("myOrg", {});
|
|
19
|
+
* // Create resources (optional: within the organization)
|
|
20
|
+
* const myFolder = new grafana.Folder("myFolder", {
|
|
21
|
+
* orgId: myOrg.orgId,
|
|
22
|
+
* title: "test Folder",
|
|
23
|
+
* });
|
|
24
|
+
* const testDash = new grafana.Dashboard("testDash", {
|
|
25
|
+
* orgId: myOrg.orgId,
|
|
26
|
+
* folder: myFolder.id,
|
|
27
|
+
* configJson: JSON.stringify({
|
|
28
|
+
* title: "My Terraform Dashboard",
|
|
29
|
+
* uid: "my-dashboard-uid",
|
|
30
|
+
* }),
|
|
31
|
+
* });
|
|
32
|
+
* const myPublicDashboard = new grafana.DashboardPublic("myPublicDashboard", {
|
|
33
|
+
* orgId: myOrg.orgId,
|
|
34
|
+
* dashboardUid: testDash.uid,
|
|
35
|
+
* uid: "my-custom-public-uid",
|
|
36
|
+
* accessToken: "e99e4275da6f410d83760eefa934d8d2",
|
|
37
|
+
* timeSelectionEnabled: true,
|
|
38
|
+
* isEnabled: true,
|
|
39
|
+
* annotationsEnabled: true,
|
|
40
|
+
* share: "public",
|
|
41
|
+
* });
|
|
42
|
+
* // Optional (On-premise, not supported in Grafana Cloud): Create an organization
|
|
43
|
+
* const myOrg2 = new grafana.Organization("myOrg2", {});
|
|
44
|
+
* const testDash2 = new grafana.Dashboard("testDash2", {
|
|
45
|
+
* orgId: myOrg2.orgId,
|
|
46
|
+
* configJson: JSON.stringify({
|
|
47
|
+
* title: "My Terraform Dashboard2",
|
|
48
|
+
* uid: "my-dashboard-uid2",
|
|
49
|
+
* }),
|
|
50
|
+
* });
|
|
51
|
+
* const myPublicDashboard2 = new grafana.DashboardPublic("myPublicDashboard2", {
|
|
52
|
+
* orgId: myOrg2.orgId,
|
|
53
|
+
* dashboardUid: testDash2.uid,
|
|
54
|
+
* share: "public",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
* <!--End PulumiCodeChooser -->
|
|
58
|
+
*
|
|
59
|
+
* ## Import
|
|
60
|
+
*
|
|
61
|
+
* ```sh
|
|
62
|
+
* $ pulumi import grafana:index/dashboardPublic:DashboardPublic name "{{ dashboardUID }}:{{ publicDashboardUID }}"
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ```sh
|
|
66
|
+
* $ pulumi import grafana:index/dashboardPublic:DashboardPublic name "{{ orgID }}:{{ dashboardUID }}:{{ publicDashboardUID }}"
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
2
69
|
export declare class DashboardPublic extends pulumi.CustomResource {
|
|
3
70
|
/**
|
|
4
71
|
* Get an existing DashboardPublic resource's state with the given name, ID, and optional extra
|
|
@@ -16,8 +83,7 @@ export declare class DashboardPublic extends pulumi.CustomResource {
|
|
|
16
83
|
*/
|
|
17
84
|
static isInstance(obj: any): obj is DashboardPublic;
|
|
18
85
|
/**
|
|
19
|
-
* A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not
|
|
20
|
-
* provided when creating a public dashboard.
|
|
86
|
+
* 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.
|
|
21
87
|
*/
|
|
22
88
|
readonly accessToken: pulumi.Output<string>;
|
|
23
89
|
/**
|
|
@@ -45,8 +111,7 @@ export declare class DashboardPublic extends pulumi.CustomResource {
|
|
|
45
111
|
*/
|
|
46
112
|
readonly timeSelectionEnabled: pulumi.Output<boolean | undefined>;
|
|
47
113
|
/**
|
|
48
|
-
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public
|
|
49
|
-
* dashboard.
|
|
114
|
+
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
|
|
50
115
|
*/
|
|
51
116
|
readonly uid: pulumi.Output<string>;
|
|
52
117
|
/**
|
|
@@ -63,8 +128,7 @@ export declare class DashboardPublic extends pulumi.CustomResource {
|
|
|
63
128
|
*/
|
|
64
129
|
export interface DashboardPublicState {
|
|
65
130
|
/**
|
|
66
|
-
* A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not
|
|
67
|
-
* provided when creating a public dashboard.
|
|
131
|
+
* 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.
|
|
68
132
|
*/
|
|
69
133
|
accessToken?: pulumi.Input<string>;
|
|
70
134
|
/**
|
|
@@ -92,8 +156,7 @@ export interface DashboardPublicState {
|
|
|
92
156
|
*/
|
|
93
157
|
timeSelectionEnabled?: pulumi.Input<boolean>;
|
|
94
158
|
/**
|
|
95
|
-
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public
|
|
96
|
-
* dashboard.
|
|
159
|
+
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
|
|
97
160
|
*/
|
|
98
161
|
uid?: pulumi.Input<string>;
|
|
99
162
|
}
|
|
@@ -102,8 +165,7 @@ export interface DashboardPublicState {
|
|
|
102
165
|
*/
|
|
103
166
|
export interface DashboardPublicArgs {
|
|
104
167
|
/**
|
|
105
|
-
* A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not
|
|
106
|
-
* provided when creating a public dashboard.
|
|
168
|
+
* 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.
|
|
107
169
|
*/
|
|
108
170
|
accessToken?: pulumi.Input<string>;
|
|
109
171
|
/**
|
|
@@ -131,8 +193,7 @@ export interface DashboardPublicArgs {
|
|
|
131
193
|
*/
|
|
132
194
|
timeSelectionEnabled?: pulumi.Input<boolean>;
|
|
133
195
|
/**
|
|
134
|
-
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public
|
|
135
|
-
* dashboard.
|
|
196
|
+
* The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
|
|
136
197
|
*/
|
|
137
198
|
uid?: pulumi.Input<string>;
|
|
138
199
|
}
|
package/dashboardPublic.js
CHANGED
|
@@ -5,6 +5,73 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.DashboardPublic = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages Grafana public dashboards.
|
|
10
|
+
*
|
|
11
|
+
* **Note:** This resource is available only with Grafana 10.2+.
|
|
12
|
+
*
|
|
13
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/dashboard-public/)
|
|
14
|
+
* * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/dashboard_public/)
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* <!--Start PulumiCodeChooser -->
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
22
|
+
*
|
|
23
|
+
* // Optional (On-premise, not supported in Grafana Cloud): Create an organization
|
|
24
|
+
* const myOrg = new grafana.Organization("myOrg", {});
|
|
25
|
+
* // Create resources (optional: within the organization)
|
|
26
|
+
* const myFolder = new grafana.Folder("myFolder", {
|
|
27
|
+
* orgId: myOrg.orgId,
|
|
28
|
+
* title: "test Folder",
|
|
29
|
+
* });
|
|
30
|
+
* const testDash = new grafana.Dashboard("testDash", {
|
|
31
|
+
* orgId: myOrg.orgId,
|
|
32
|
+
* folder: myFolder.id,
|
|
33
|
+
* configJson: JSON.stringify({
|
|
34
|
+
* title: "My Terraform Dashboard",
|
|
35
|
+
* uid: "my-dashboard-uid",
|
|
36
|
+
* }),
|
|
37
|
+
* });
|
|
38
|
+
* const myPublicDashboard = new grafana.DashboardPublic("myPublicDashboard", {
|
|
39
|
+
* orgId: myOrg.orgId,
|
|
40
|
+
* dashboardUid: testDash.uid,
|
|
41
|
+
* uid: "my-custom-public-uid",
|
|
42
|
+
* accessToken: "e99e4275da6f410d83760eefa934d8d2",
|
|
43
|
+
* timeSelectionEnabled: true,
|
|
44
|
+
* isEnabled: true,
|
|
45
|
+
* annotationsEnabled: true,
|
|
46
|
+
* share: "public",
|
|
47
|
+
* });
|
|
48
|
+
* // Optional (On-premise, not supported in Grafana Cloud): Create an organization
|
|
49
|
+
* const myOrg2 = new grafana.Organization("myOrg2", {});
|
|
50
|
+
* const testDash2 = new grafana.Dashboard("testDash2", {
|
|
51
|
+
* orgId: myOrg2.orgId,
|
|
52
|
+
* configJson: JSON.stringify({
|
|
53
|
+
* title: "My Terraform Dashboard2",
|
|
54
|
+
* uid: "my-dashboard-uid2",
|
|
55
|
+
* }),
|
|
56
|
+
* });
|
|
57
|
+
* const myPublicDashboard2 = new grafana.DashboardPublic("myPublicDashboard2", {
|
|
58
|
+
* orgId: myOrg2.orgId,
|
|
59
|
+
* dashboardUid: testDash2.uid,
|
|
60
|
+
* share: "public",
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
* <!--End PulumiCodeChooser -->
|
|
64
|
+
*
|
|
65
|
+
* ## Import
|
|
66
|
+
*
|
|
67
|
+
* ```sh
|
|
68
|
+
* $ pulumi import grafana:index/dashboardPublic:DashboardPublic name "{{ dashboardUID }}:{{ publicDashboardUID }}"
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* ```sh
|
|
72
|
+
* $ pulumi import grafana:index/dashboardPublic:DashboardPublic name "{{ orgID }}:{{ dashboardUID }}:{{ publicDashboardUID }}"
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
8
75
|
class DashboardPublic extends pulumi.CustomResource {
|
|
9
76
|
/**
|
|
10
77
|
* Get an existing DashboardPublic resource's state with the given name, ID, and optional extra
|
package/dashboardPublic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardPublic.js","sourceRoot":"","sources":["../dashboardPublic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboardPublic.js","sourceRoot":"","sources":["../dashboardPublic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,MAAa,eAAgB,SAA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AC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAlGL,0CAmGC;AArFG,gBAAgB;AACO,4BAAY,GAAG,+CAA+C,CAAC"}
|
package/dataSource.d.ts
CHANGED
|
@@ -1,4 +1,82 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/datasources/)
|
|
4
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/data_source/)
|
|
5
|
+
*
|
|
6
|
+
* The required arguments for this resource vary depending on the type of data
|
|
7
|
+
* source selected (via the 'type' argument).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
15
|
+
*
|
|
16
|
+
* const arbitrary_data = new grafana.DataSource("arbitrary-data", {
|
|
17
|
+
* type: "stackdriver",
|
|
18
|
+
* jsonDataEncoded: JSON.stringify({
|
|
19
|
+
* tokenUri: "https://oauth2.googleapis.com/token",
|
|
20
|
+
* authenticationType: "jwt",
|
|
21
|
+
* defaultProject: "default-project",
|
|
22
|
+
* clientEmail: "client-email@default-project.iam.gserviceaccount.com",
|
|
23
|
+
* }),
|
|
24
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
25
|
+
* privateKey: `-----BEGIN PRIVATE KEY-----
|
|
26
|
+
* private-key
|
|
27
|
+
* -----END PRIVATE KEY-----
|
|
28
|
+
* `,
|
|
29
|
+
* }),
|
|
30
|
+
* });
|
|
31
|
+
* const influxdb = new grafana.DataSource("influxdb", {
|
|
32
|
+
* type: "influxdb",
|
|
33
|
+
* url: "http://influxdb.example.net:8086/",
|
|
34
|
+
* basicAuthEnabled: true,
|
|
35
|
+
* basicAuthUsername: "username",
|
|
36
|
+
* databaseName: "dbname",
|
|
37
|
+
* jsonDataEncoded: JSON.stringify({
|
|
38
|
+
* authType: "default",
|
|
39
|
+
* basicAuthPassword: "mypassword",
|
|
40
|
+
* }),
|
|
41
|
+
* });
|
|
42
|
+
* const cloudwatch = new grafana.DataSource("cloudwatch", {
|
|
43
|
+
* type: "cloudwatch",
|
|
44
|
+
* jsonDataEncoded: JSON.stringify({
|
|
45
|
+
* defaultRegion: "us-east-1",
|
|
46
|
+
* authType: "keys",
|
|
47
|
+
* }),
|
|
48
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
49
|
+
* accessKey: "123",
|
|
50
|
+
* secretKey: "456",
|
|
51
|
+
* }),
|
|
52
|
+
* });
|
|
53
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
54
|
+
* type: "prometheus",
|
|
55
|
+
* url: "https://my-instances.com",
|
|
56
|
+
* basicAuthEnabled: true,
|
|
57
|
+
* basicAuthUsername: "username",
|
|
58
|
+
* jsonDataEncoded: JSON.stringify({
|
|
59
|
+
* httpMethod: "POST",
|
|
60
|
+
* prometheusType: "Mimir",
|
|
61
|
+
* prometheusVersion: "2.4.0",
|
|
62
|
+
* }),
|
|
63
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
64
|
+
* basicAuthPassword: "password",
|
|
65
|
+
* }),
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
* <!--End PulumiCodeChooser -->
|
|
69
|
+
*
|
|
70
|
+
* ## Import
|
|
71
|
+
*
|
|
72
|
+
* ```sh
|
|
73
|
+
* $ pulumi import grafana:index/dataSource:DataSource name "{{ uid }}"
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* ```sh
|
|
77
|
+
* $ pulumi import grafana:index/dataSource:DataSource name "{{ orgID }}:{{ uid }}"
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
2
80
|
export declare class DataSource extends pulumi.CustomResource {
|
|
3
81
|
/**
|
|
4
82
|
* Get an existing DataSource resource's state with the given name, ID, and optional extra
|
|
@@ -16,19 +94,19 @@ export declare class DataSource extends pulumi.CustomResource {
|
|
|
16
94
|
*/
|
|
17
95
|
static isInstance(obj: any): obj is DataSource;
|
|
18
96
|
/**
|
|
19
|
-
* The method by which Grafana will access the data source: `proxy` or `direct`.
|
|
97
|
+
* The method by which Grafana will access the data source: `proxy` or `direct`. Defaults to `proxy`.
|
|
20
98
|
*/
|
|
21
99
|
readonly accessMode: pulumi.Output<string | undefined>;
|
|
22
100
|
/**
|
|
23
|
-
* Whether to enable basic auth for the data source.
|
|
101
|
+
* Whether to enable basic auth for the data source. Defaults to `false`.
|
|
24
102
|
*/
|
|
25
103
|
readonly basicAuthEnabled: pulumi.Output<boolean | undefined>;
|
|
26
104
|
/**
|
|
27
|
-
* Basic auth username.
|
|
105
|
+
* Basic auth username. Defaults to ``.
|
|
28
106
|
*/
|
|
29
107
|
readonly basicAuthUsername: pulumi.Output<string | undefined>;
|
|
30
108
|
/**
|
|
31
|
-
* (Required by some data source types) The name of the database to use on the selected data source server.
|
|
109
|
+
* (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
|
|
32
110
|
*/
|
|
33
111
|
readonly databaseName: pulumi.Output<string | undefined>;
|
|
34
112
|
/**
|
|
@@ -38,13 +116,11 @@ export declare class DataSource extends pulumi.CustomResource {
|
|
|
38
116
|
[key: string]: string;
|
|
39
117
|
} | undefined>;
|
|
40
118
|
/**
|
|
41
|
-
* Whether to set the data source as default. This should only be `true` to a single data source.
|
|
119
|
+
* Whether to set the data source as default. This should only be `true` to a single data source. Defaults to `false`.
|
|
42
120
|
*/
|
|
43
121
|
readonly isDefault: pulumi.Output<boolean | undefined>;
|
|
44
122
|
/**
|
|
45
|
-
* Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data
|
|
46
|
-
* source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it
|
|
47
|
-
* from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
123
|
+
* Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
48
124
|
*/
|
|
49
125
|
readonly jsonDataEncoded: pulumi.Output<string | undefined>;
|
|
50
126
|
/**
|
|
@@ -56,9 +132,7 @@ export declare class DataSource extends pulumi.CustomResource {
|
|
|
56
132
|
*/
|
|
57
133
|
readonly orgId: pulumi.Output<string | undefined>;
|
|
58
134
|
/**
|
|
59
|
-
* Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options
|
|
60
|
-
* to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when
|
|
61
|
-
* saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
135
|
+
* Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
62
136
|
*/
|
|
63
137
|
readonly secureJsonDataEncoded: pulumi.Output<string | undefined>;
|
|
64
138
|
/**
|
|
@@ -74,7 +148,7 @@ export declare class DataSource extends pulumi.CustomResource {
|
|
|
74
148
|
*/
|
|
75
149
|
readonly url: pulumi.Output<string | undefined>;
|
|
76
150
|
/**
|
|
77
|
-
* (Required by some data source types) The username to use to authenticate to the data source.
|
|
151
|
+
* (Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
|
|
78
152
|
*/
|
|
79
153
|
readonly username: pulumi.Output<string | undefined>;
|
|
80
154
|
/**
|
|
@@ -91,19 +165,19 @@ export declare class DataSource extends pulumi.CustomResource {
|
|
|
91
165
|
*/
|
|
92
166
|
export interface DataSourceState {
|
|
93
167
|
/**
|
|
94
|
-
* The method by which Grafana will access the data source: `proxy` or `direct`.
|
|
168
|
+
* The method by which Grafana will access the data source: `proxy` or `direct`. Defaults to `proxy`.
|
|
95
169
|
*/
|
|
96
170
|
accessMode?: pulumi.Input<string>;
|
|
97
171
|
/**
|
|
98
|
-
* Whether to enable basic auth for the data source.
|
|
172
|
+
* Whether to enable basic auth for the data source. Defaults to `false`.
|
|
99
173
|
*/
|
|
100
174
|
basicAuthEnabled?: pulumi.Input<boolean>;
|
|
101
175
|
/**
|
|
102
|
-
* Basic auth username.
|
|
176
|
+
* Basic auth username. Defaults to ``.
|
|
103
177
|
*/
|
|
104
178
|
basicAuthUsername?: pulumi.Input<string>;
|
|
105
179
|
/**
|
|
106
|
-
* (Required by some data source types) The name of the database to use on the selected data source server.
|
|
180
|
+
* (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
|
|
107
181
|
*/
|
|
108
182
|
databaseName?: pulumi.Input<string>;
|
|
109
183
|
/**
|
|
@@ -113,13 +187,11 @@ export interface DataSourceState {
|
|
|
113
187
|
[key: string]: pulumi.Input<string>;
|
|
114
188
|
}>;
|
|
115
189
|
/**
|
|
116
|
-
* Whether to set the data source as default. This should only be `true` to a single data source.
|
|
190
|
+
* Whether to set the data source as default. This should only be `true` to a single data source. Defaults to `false`.
|
|
117
191
|
*/
|
|
118
192
|
isDefault?: pulumi.Input<boolean>;
|
|
119
193
|
/**
|
|
120
|
-
* Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data
|
|
121
|
-
* source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it
|
|
122
|
-
* from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
194
|
+
* Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
123
195
|
*/
|
|
124
196
|
jsonDataEncoded?: pulumi.Input<string>;
|
|
125
197
|
/**
|
|
@@ -131,9 +203,7 @@ export interface DataSourceState {
|
|
|
131
203
|
*/
|
|
132
204
|
orgId?: pulumi.Input<string>;
|
|
133
205
|
/**
|
|
134
|
-
* Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options
|
|
135
|
-
* to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when
|
|
136
|
-
* saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
206
|
+
* Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
137
207
|
*/
|
|
138
208
|
secureJsonDataEncoded?: pulumi.Input<string>;
|
|
139
209
|
/**
|
|
@@ -149,7 +219,7 @@ export interface DataSourceState {
|
|
|
149
219
|
*/
|
|
150
220
|
url?: pulumi.Input<string>;
|
|
151
221
|
/**
|
|
152
|
-
* (Required by some data source types) The username to use to authenticate to the data source.
|
|
222
|
+
* (Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
|
|
153
223
|
*/
|
|
154
224
|
username?: pulumi.Input<string>;
|
|
155
225
|
}
|
|
@@ -158,19 +228,19 @@ export interface DataSourceState {
|
|
|
158
228
|
*/
|
|
159
229
|
export interface DataSourceArgs {
|
|
160
230
|
/**
|
|
161
|
-
* The method by which Grafana will access the data source: `proxy` or `direct`.
|
|
231
|
+
* The method by which Grafana will access the data source: `proxy` or `direct`. Defaults to `proxy`.
|
|
162
232
|
*/
|
|
163
233
|
accessMode?: pulumi.Input<string>;
|
|
164
234
|
/**
|
|
165
|
-
* Whether to enable basic auth for the data source.
|
|
235
|
+
* Whether to enable basic auth for the data source. Defaults to `false`.
|
|
166
236
|
*/
|
|
167
237
|
basicAuthEnabled?: pulumi.Input<boolean>;
|
|
168
238
|
/**
|
|
169
|
-
* Basic auth username.
|
|
239
|
+
* Basic auth username. Defaults to ``.
|
|
170
240
|
*/
|
|
171
241
|
basicAuthUsername?: pulumi.Input<string>;
|
|
172
242
|
/**
|
|
173
|
-
* (Required by some data source types) The name of the database to use on the selected data source server.
|
|
243
|
+
* (Required by some data source types) The name of the database to use on the selected data source server. Defaults to ``.
|
|
174
244
|
*/
|
|
175
245
|
databaseName?: pulumi.Input<string>;
|
|
176
246
|
/**
|
|
@@ -180,13 +250,11 @@ export interface DataSourceArgs {
|
|
|
180
250
|
[key: string]: pulumi.Input<string>;
|
|
181
251
|
}>;
|
|
182
252
|
/**
|
|
183
|
-
* Whether to set the data source as default. This should only be `true` to a single data source.
|
|
253
|
+
* Whether to set the data source as default. This should only be `true` to a single data source. Defaults to `false`.
|
|
184
254
|
*/
|
|
185
255
|
isDefault?: pulumi.Input<boolean>;
|
|
186
256
|
/**
|
|
187
|
-
* Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data
|
|
188
|
-
* source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it
|
|
189
|
-
* from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
257
|
+
* Serialized JSON string containing the json data. This attribute can be used to pass configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
190
258
|
*/
|
|
191
259
|
jsonDataEncoded?: pulumi.Input<string>;
|
|
192
260
|
/**
|
|
@@ -198,9 +266,7 @@ export interface DataSourceArgs {
|
|
|
198
266
|
*/
|
|
199
267
|
orgId?: pulumi.Input<string>;
|
|
200
268
|
/**
|
|
201
|
-
* Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options
|
|
202
|
-
* to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when
|
|
203
|
-
* saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
269
|
+
* Serialized JSON string containing the secure json data. This attribute can be used to pass secure configuration options to the data source. To figure out what options a datasource has available, see its docs or inspect the network data when saving it from the Grafana UI. Note that keys in this map are usually camelCased.
|
|
204
270
|
*/
|
|
205
271
|
secureJsonDataEncoded?: pulumi.Input<string>;
|
|
206
272
|
/**
|
|
@@ -216,7 +282,7 @@ export interface DataSourceArgs {
|
|
|
216
282
|
*/
|
|
217
283
|
url?: pulumi.Input<string>;
|
|
218
284
|
/**
|
|
219
|
-
* (Required by some data source types) The username to use to authenticate to the data source.
|
|
285
|
+
* (Required by some data source types) The username to use to authenticate to the data source. Defaults to ``.
|
|
220
286
|
*/
|
|
221
287
|
username?: pulumi.Input<string>;
|
|
222
288
|
}
|
package/dataSource.js
CHANGED
|
@@ -5,6 +5,84 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.DataSource = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/datasources/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/data_source/)
|
|
11
|
+
*
|
|
12
|
+
* The required arguments for this resource vary depending on the type of data
|
|
13
|
+
* source selected (via the 'type' argument).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* <!--Start PulumiCodeChooser -->
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
21
|
+
*
|
|
22
|
+
* const arbitrary_data = new grafana.DataSource("arbitrary-data", {
|
|
23
|
+
* type: "stackdriver",
|
|
24
|
+
* jsonDataEncoded: JSON.stringify({
|
|
25
|
+
* tokenUri: "https://oauth2.googleapis.com/token",
|
|
26
|
+
* authenticationType: "jwt",
|
|
27
|
+
* defaultProject: "default-project",
|
|
28
|
+
* clientEmail: "client-email@default-project.iam.gserviceaccount.com",
|
|
29
|
+
* }),
|
|
30
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
31
|
+
* privateKey: `-----BEGIN PRIVATE KEY-----
|
|
32
|
+
* private-key
|
|
33
|
+
* -----END PRIVATE KEY-----
|
|
34
|
+
* `,
|
|
35
|
+
* }),
|
|
36
|
+
* });
|
|
37
|
+
* const influxdb = new grafana.DataSource("influxdb", {
|
|
38
|
+
* type: "influxdb",
|
|
39
|
+
* url: "http://influxdb.example.net:8086/",
|
|
40
|
+
* basicAuthEnabled: true,
|
|
41
|
+
* basicAuthUsername: "username",
|
|
42
|
+
* databaseName: "dbname",
|
|
43
|
+
* jsonDataEncoded: JSON.stringify({
|
|
44
|
+
* authType: "default",
|
|
45
|
+
* basicAuthPassword: "mypassword",
|
|
46
|
+
* }),
|
|
47
|
+
* });
|
|
48
|
+
* const cloudwatch = new grafana.DataSource("cloudwatch", {
|
|
49
|
+
* type: "cloudwatch",
|
|
50
|
+
* jsonDataEncoded: JSON.stringify({
|
|
51
|
+
* defaultRegion: "us-east-1",
|
|
52
|
+
* authType: "keys",
|
|
53
|
+
* }),
|
|
54
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
55
|
+
* accessKey: "123",
|
|
56
|
+
* secretKey: "456",
|
|
57
|
+
* }),
|
|
58
|
+
* });
|
|
59
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
60
|
+
* type: "prometheus",
|
|
61
|
+
* url: "https://my-instances.com",
|
|
62
|
+
* basicAuthEnabled: true,
|
|
63
|
+
* basicAuthUsername: "username",
|
|
64
|
+
* jsonDataEncoded: JSON.stringify({
|
|
65
|
+
* httpMethod: "POST",
|
|
66
|
+
* prometheusType: "Mimir",
|
|
67
|
+
* prometheusVersion: "2.4.0",
|
|
68
|
+
* }),
|
|
69
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
70
|
+
* basicAuthPassword: "password",
|
|
71
|
+
* }),
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
* <!--End PulumiCodeChooser -->
|
|
75
|
+
*
|
|
76
|
+
* ## Import
|
|
77
|
+
*
|
|
78
|
+
* ```sh
|
|
79
|
+
* $ pulumi import grafana:index/dataSource:DataSource name "{{ uid }}"
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* ```sh
|
|
83
|
+
* $ pulumi import grafana:index/dataSource:DataSource name "{{ orgID }}:{{ uid }}"
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
8
86
|
class DataSource extends pulumi.CustomResource {
|
|
9
87
|
/**
|
|
10
88
|
* Get an existing DataSource resource's state with the given name, ID, and optional extra
|
package/dataSource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSource.js","sourceRoot":"","sources":["../dataSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;
|
|
1
|
+
{"version":3,"file":"dataSource.js","sourceRoot":"","sources":["../dataSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,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