@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/getDashboard.d.ts
CHANGED
|
@@ -1,42 +1,156 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
4
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
5
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as grafana from "@pulumi/grafana";
|
|
13
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
14
|
+
*
|
|
15
|
+
* const test = new grafana.Dashboard("test", {configJson: JSON.stringify({
|
|
16
|
+
* id: 12345,
|
|
17
|
+
* uid: "test-ds-dashboard-uid",
|
|
18
|
+
* title: "Production Overview",
|
|
19
|
+
* tags: ["templated"],
|
|
20
|
+
* timezone: "browser",
|
|
21
|
+
* schemaVersion: 16,
|
|
22
|
+
* version: 0,
|
|
23
|
+
* refresh: "25s",
|
|
24
|
+
* })});
|
|
25
|
+
* const fromId = grafana.getDashboardOutput({
|
|
26
|
+
* dashboardId: test.dashboardId,
|
|
27
|
+
* });
|
|
28
|
+
* const fromUid = grafana.getDashboard({
|
|
29
|
+
* uid: "test-ds-dashboard-uid",
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
* <!--End PulumiCodeChooser -->
|
|
33
|
+
*/
|
|
2
34
|
export declare function getDashboard(args?: GetDashboardArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardResult>;
|
|
3
35
|
/**
|
|
4
36
|
* A collection of arguments for invoking getDashboard.
|
|
5
37
|
*/
|
|
6
38
|
export interface GetDashboardArgs {
|
|
39
|
+
/**
|
|
40
|
+
* The numerical ID of the Grafana dashboard. Specify either this or `uid`. Defaults to `-1`.
|
|
41
|
+
*/
|
|
7
42
|
dashboardId?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
45
|
+
*/
|
|
8
46
|
orgId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The uid of the Grafana dashboard. Specify either this or `dashboardId`. Defaults to ``.
|
|
49
|
+
*/
|
|
9
50
|
uid?: string;
|
|
10
51
|
}
|
|
11
52
|
/**
|
|
12
53
|
* A collection of values returned by getDashboard.
|
|
13
54
|
*/
|
|
14
55
|
export interface GetDashboardResult {
|
|
56
|
+
/**
|
|
57
|
+
* The complete dashboard model JSON.
|
|
58
|
+
*/
|
|
15
59
|
readonly configJson: string;
|
|
60
|
+
/**
|
|
61
|
+
* The numerical ID of the Grafana dashboard. Specify either this or `uid`. Defaults to `-1`.
|
|
62
|
+
*/
|
|
16
63
|
readonly dashboardId?: number;
|
|
17
64
|
/**
|
|
65
|
+
* Deprecated. Use `folderUid` instead
|
|
66
|
+
*
|
|
18
67
|
* @deprecated Use `folderUid` instead
|
|
19
68
|
*/
|
|
20
69
|
readonly folder: number;
|
|
70
|
+
/**
|
|
71
|
+
* The UID of the folder where the Grafana dashboard is found.
|
|
72
|
+
*/
|
|
21
73
|
readonly folderUid: string;
|
|
22
74
|
/**
|
|
23
75
|
* The provider-assigned unique ID for this managed resource.
|
|
24
76
|
*/
|
|
25
77
|
readonly id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Whether or not the Grafana dashboard is starred. Starred Dashboards will show up on your own Home Dashboard by default, and are a convenient way to mark Dashboards that you’re interested in.
|
|
80
|
+
*/
|
|
26
81
|
readonly isStarred: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
84
|
+
*/
|
|
27
85
|
readonly orgId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* URL slug of the dashboard (deprecated).
|
|
88
|
+
*/
|
|
28
89
|
readonly slug: string;
|
|
90
|
+
/**
|
|
91
|
+
* The title of the Grafana dashboard.
|
|
92
|
+
*/
|
|
29
93
|
readonly title: string;
|
|
94
|
+
/**
|
|
95
|
+
* The uid of the Grafana dashboard. Specify either this or `dashboardId`. Defaults to ``.
|
|
96
|
+
*/
|
|
30
97
|
readonly uid?: string;
|
|
98
|
+
/**
|
|
99
|
+
* The full URL of the dashboard.
|
|
100
|
+
*/
|
|
31
101
|
readonly url: string;
|
|
102
|
+
/**
|
|
103
|
+
* The numerical version of the Grafana dashboard.
|
|
104
|
+
*/
|
|
32
105
|
readonly version: number;
|
|
33
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
109
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
110
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
111
|
+
*
|
|
112
|
+
* ## Example Usage
|
|
113
|
+
*
|
|
114
|
+
* <!--Start PulumiCodeChooser -->
|
|
115
|
+
* ```typescript
|
|
116
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
117
|
+
* import * as grafana from "@pulumi/grafana";
|
|
118
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
119
|
+
*
|
|
120
|
+
* const test = new grafana.Dashboard("test", {configJson: JSON.stringify({
|
|
121
|
+
* id: 12345,
|
|
122
|
+
* uid: "test-ds-dashboard-uid",
|
|
123
|
+
* title: "Production Overview",
|
|
124
|
+
* tags: ["templated"],
|
|
125
|
+
* timezone: "browser",
|
|
126
|
+
* schemaVersion: 16,
|
|
127
|
+
* version: 0,
|
|
128
|
+
* refresh: "25s",
|
|
129
|
+
* })});
|
|
130
|
+
* const fromId = grafana.getDashboardOutput({
|
|
131
|
+
* dashboardId: test.dashboardId,
|
|
132
|
+
* });
|
|
133
|
+
* const fromUid = grafana.getDashboard({
|
|
134
|
+
* uid: "test-ds-dashboard-uid",
|
|
135
|
+
* });
|
|
136
|
+
* ```
|
|
137
|
+
* <!--End PulumiCodeChooser -->
|
|
138
|
+
*/
|
|
34
139
|
export declare function getDashboardOutput(args?: GetDashboardOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDashboardResult>;
|
|
35
140
|
/**
|
|
36
141
|
* A collection of arguments for invoking getDashboard.
|
|
37
142
|
*/
|
|
38
143
|
export interface GetDashboardOutputArgs {
|
|
144
|
+
/**
|
|
145
|
+
* The numerical ID of the Grafana dashboard. Specify either this or `uid`. Defaults to `-1`.
|
|
146
|
+
*/
|
|
39
147
|
dashboardId?: pulumi.Input<number>;
|
|
148
|
+
/**
|
|
149
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
150
|
+
*/
|
|
40
151
|
orgId?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The uid of the Grafana dashboard. Specify either this or `dashboardId`. Defaults to ``.
|
|
154
|
+
*/
|
|
41
155
|
uid?: pulumi.Input<string>;
|
|
42
156
|
}
|
package/getDashboard.js
CHANGED
|
@@ -5,6 +5,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getDashboardOutput = exports.getDashboard = 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/dashboards/)
|
|
10
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
11
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as grafana from "@pulumi/grafana";
|
|
19
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
20
|
+
*
|
|
21
|
+
* const test = new grafana.Dashboard("test", {configJson: JSON.stringify({
|
|
22
|
+
* id: 12345,
|
|
23
|
+
* uid: "test-ds-dashboard-uid",
|
|
24
|
+
* title: "Production Overview",
|
|
25
|
+
* tags: ["templated"],
|
|
26
|
+
* timezone: "browser",
|
|
27
|
+
* schemaVersion: 16,
|
|
28
|
+
* version: 0,
|
|
29
|
+
* refresh: "25s",
|
|
30
|
+
* })});
|
|
31
|
+
* const fromId = grafana.getDashboardOutput({
|
|
32
|
+
* dashboardId: test.dashboardId,
|
|
33
|
+
* });
|
|
34
|
+
* const fromUid = grafana.getDashboard({
|
|
35
|
+
* uid: "test-ds-dashboard-uid",
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* <!--End PulumiCodeChooser -->
|
|
39
|
+
*/
|
|
8
40
|
function getDashboard(args, opts) {
|
|
9
41
|
args = args || {};
|
|
10
42
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -15,6 +47,38 @@ function getDashboard(args, opts) {
|
|
|
15
47
|
}, opts);
|
|
16
48
|
}
|
|
17
49
|
exports.getDashboard = getDashboard;
|
|
50
|
+
/**
|
|
51
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
52
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
53
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
54
|
+
*
|
|
55
|
+
* ## Example Usage
|
|
56
|
+
*
|
|
57
|
+
* <!--Start PulumiCodeChooser -->
|
|
58
|
+
* ```typescript
|
|
59
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
60
|
+
* import * as grafana from "@pulumi/grafana";
|
|
61
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
62
|
+
*
|
|
63
|
+
* const test = new grafana.Dashboard("test", {configJson: JSON.stringify({
|
|
64
|
+
* id: 12345,
|
|
65
|
+
* uid: "test-ds-dashboard-uid",
|
|
66
|
+
* title: "Production Overview",
|
|
67
|
+
* tags: ["templated"],
|
|
68
|
+
* timezone: "browser",
|
|
69
|
+
* schemaVersion: 16,
|
|
70
|
+
* version: 0,
|
|
71
|
+
* refresh: "25s",
|
|
72
|
+
* })});
|
|
73
|
+
* const fromId = grafana.getDashboardOutput({
|
|
74
|
+
* dashboardId: test.dashboardId,
|
|
75
|
+
* });
|
|
76
|
+
* const fromUid = grafana.getDashboard({
|
|
77
|
+
* uid: "test-ds-dashboard-uid",
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
* <!--End PulumiCodeChooser -->
|
|
81
|
+
*/
|
|
18
82
|
function getDashboardOutput(args, opts) {
|
|
19
83
|
return pulumi.output(args).apply((a) => getDashboard(a, opts));
|
|
20
84
|
}
|
package/getDashboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDashboard.js","sourceRoot":"","sources":["../getDashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,oCASC;
|
|
1
|
+
{"version":3,"file":"getDashboard.js","sourceRoot":"","sources":["../getDashboard.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,oCASC;AA2ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
package/getDashboards.d.ts
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
|
|
5
|
+
*
|
|
6
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
7
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
8
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
9
|
+
*/
|
|
3
10
|
export declare function getDashboards(args?: GetDashboardsArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardsResult>;
|
|
4
11
|
/**
|
|
5
12
|
* A collection of arguments for invoking getDashboards.
|
|
6
13
|
*/
|
|
7
14
|
export interface GetDashboardsArgs {
|
|
8
15
|
/**
|
|
16
|
+
* Deprecated, use `folderUids` instead.
|
|
17
|
+
*
|
|
9
18
|
* @deprecated Use `folderUids` instead.
|
|
10
19
|
*/
|
|
11
20
|
folderIds?: number[];
|
|
21
|
+
/**
|
|
22
|
+
* UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
|
|
23
|
+
*/
|
|
12
24
|
folderUids?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Maximum number of dashboard search results to return. Defaults to `5000`.
|
|
27
|
+
*/
|
|
13
28
|
limit?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
31
|
+
*/
|
|
14
32
|
orgId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
|
|
35
|
+
*/
|
|
15
36
|
tags?: string[];
|
|
16
37
|
}
|
|
17
38
|
/**
|
|
@@ -20,29 +41,64 @@ export interface GetDashboardsArgs {
|
|
|
20
41
|
export interface GetDashboardsResult {
|
|
21
42
|
readonly dashboards: outputs.GetDashboardsDashboard[];
|
|
22
43
|
/**
|
|
44
|
+
* Deprecated, use `folderUids` instead.
|
|
45
|
+
*
|
|
23
46
|
* @deprecated Use `folderUids` instead.
|
|
24
47
|
*/
|
|
25
48
|
readonly folderIds?: number[];
|
|
49
|
+
/**
|
|
50
|
+
* UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
|
|
51
|
+
*/
|
|
26
52
|
readonly folderUids?: string[];
|
|
27
53
|
/**
|
|
28
54
|
* The provider-assigned unique ID for this managed resource.
|
|
29
55
|
*/
|
|
30
56
|
readonly id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Maximum number of dashboard search results to return. Defaults to `5000`.
|
|
59
|
+
*/
|
|
31
60
|
readonly limit?: number;
|
|
61
|
+
/**
|
|
62
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
63
|
+
*/
|
|
32
64
|
readonly orgId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
|
|
67
|
+
*/
|
|
33
68
|
readonly tags?: string[];
|
|
34
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
|
|
72
|
+
*
|
|
73
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
74
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
75
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
76
|
+
*/
|
|
35
77
|
export declare function getDashboardsOutput(args?: GetDashboardsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDashboardsResult>;
|
|
36
78
|
/**
|
|
37
79
|
* A collection of arguments for invoking getDashboards.
|
|
38
80
|
*/
|
|
39
81
|
export interface GetDashboardsOutputArgs {
|
|
40
82
|
/**
|
|
83
|
+
* Deprecated, use `folderUids` instead.
|
|
84
|
+
*
|
|
41
85
|
* @deprecated Use `folderUids` instead.
|
|
42
86
|
*/
|
|
43
87
|
folderIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
88
|
+
/**
|
|
89
|
+
* UIDs of Grafana folders containing dashboards. Specify to filter for dashboards by folder (eg. `["General"]` for General folder), or leave blank to get all dashboards in all folders.
|
|
90
|
+
*/
|
|
44
91
|
folderUids?: pulumi.Input<pulumi.Input<string>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Maximum number of dashboard search results to return. Defaults to `5000`.
|
|
94
|
+
*/
|
|
45
95
|
limit?: pulumi.Input<number>;
|
|
96
|
+
/**
|
|
97
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
98
|
+
*/
|
|
46
99
|
orgId?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* List of string Grafana dashboard tags to search for, eg. `["prod"]`. Used only as search input, i.e., attribute value will remain unchanged.
|
|
102
|
+
*/
|
|
47
103
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
48
104
|
}
|
package/getDashboards.js
CHANGED
|
@@ -5,6 +5,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getDashboardsOutput = exports.getDashboards = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
12
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
13
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
14
|
+
*/
|
|
8
15
|
function getDashboards(args, opts) {
|
|
9
16
|
args = args || {};
|
|
10
17
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -17,6 +24,13 @@ function getDashboards(args, opts) {
|
|
|
17
24
|
}, opts);
|
|
18
25
|
}
|
|
19
26
|
exports.getDashboards = getDashboards;
|
|
27
|
+
/**
|
|
28
|
+
* Datasource for retrieving all dashboards. Specify list of folder IDs to search in for dashboards.
|
|
29
|
+
*
|
|
30
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
31
|
+
* * [Folder/Dashboard Search HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/)
|
|
32
|
+
* * [Dashboard HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/)
|
|
33
|
+
*/
|
|
20
34
|
function getDashboardsOutput(args, opts) {
|
|
21
35
|
return pulumi.output(args).apply((a) => getDashboards(a, opts));
|
|
22
36
|
}
|
package/getDashboards.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDashboards.js","sourceRoot":"","sources":["../getDashboards.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,sCAWC;
|
|
1
|
+
{"version":3,"file":"getDashboards.js","sourceRoot":"","sources":["../getDashboards.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,sCAWC;AA8DD;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,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"}
|
package/getDataSource.d.ts
CHANGED
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get details about a Grafana Datasource querying by either name, uid or ID
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* <!--Start PulumiCodeChooser -->
|
|
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 prometheus = new grafana.DataSource("prometheus", {
|
|
14
|
+
* type: "prometheus",
|
|
15
|
+
* uid: "prometheus-ds-test-uid",
|
|
16
|
+
* url: "https://my-instance.com",
|
|
17
|
+
* basicAuthEnabled: true,
|
|
18
|
+
* basicAuthUsername: "username",
|
|
19
|
+
* jsonDataEncoded: JSON.stringify({
|
|
20
|
+
* httpMethod: "POST",
|
|
21
|
+
* prometheusType: "Mimir",
|
|
22
|
+
* prometheusVersion: "2.4.0",
|
|
23
|
+
* }),
|
|
24
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
25
|
+
* basicAuthPassword: "password",
|
|
26
|
+
* }),
|
|
27
|
+
* });
|
|
28
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
29
|
+
* name: prometheus.name,
|
|
30
|
+
* });
|
|
31
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
32
|
+
* id: prometheus.id,
|
|
33
|
+
* });
|
|
34
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
35
|
+
* uid: prometheus.uid,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
* <!--End PulumiCodeChooser -->
|
|
39
|
+
*/
|
|
2
40
|
export declare function getDataSource(args?: GetDataSourceArgs, opts?: pulumi.InvokeOptions): Promise<GetDataSourceResult>;
|
|
3
41
|
/**
|
|
4
42
|
* A collection of arguments for invoking getDataSource.
|
|
5
43
|
*/
|
|
6
44
|
export interface GetDataSourceArgs {
|
|
7
45
|
/**
|
|
46
|
+
* Deprecated: Use `uid` instead of `id`
|
|
47
|
+
*
|
|
8
48
|
* @deprecated Use `uid` instead of `id`
|
|
9
49
|
*/
|
|
10
50
|
id?: string;
|
|
11
51
|
name?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
54
|
+
*/
|
|
12
55
|
orgId?: string;
|
|
13
56
|
uid?: string;
|
|
14
57
|
}
|
|
@@ -16,33 +59,108 @@ export interface GetDataSourceArgs {
|
|
|
16
59
|
* A collection of values returned by getDataSource.
|
|
17
60
|
*/
|
|
18
61
|
export interface GetDataSourceResult {
|
|
62
|
+
/**
|
|
63
|
+
* The method by which Grafana will access the data source: `proxy` or `direct`.
|
|
64
|
+
*/
|
|
19
65
|
readonly accessMode: string;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to enable basic auth for the data source.
|
|
68
|
+
*/
|
|
20
69
|
readonly basicAuthEnabled: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Basic auth username.
|
|
72
|
+
*/
|
|
21
73
|
readonly basicAuthUsername: string;
|
|
74
|
+
/**
|
|
75
|
+
* (Required by some data source types) The name of the database to use on the selected data source server.
|
|
76
|
+
*/
|
|
22
77
|
readonly databaseName: string;
|
|
23
78
|
/**
|
|
79
|
+
* Deprecated: Use `uid` instead of `id`
|
|
80
|
+
*
|
|
24
81
|
* @deprecated Use `uid` instead of `id`
|
|
25
82
|
*/
|
|
26
83
|
readonly id: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to set the data source as default. This should only be `true` to a single data source.
|
|
86
|
+
*/
|
|
27
87
|
readonly isDefault: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* 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.
|
|
90
|
+
*/
|
|
28
91
|
readonly jsonDataEncoded: string;
|
|
29
92
|
readonly name: string;
|
|
93
|
+
/**
|
|
94
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
95
|
+
*/
|
|
30
96
|
readonly orgId?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The data source type. Must be one of the supported data source keywords.
|
|
99
|
+
*/
|
|
31
100
|
readonly type: string;
|
|
32
101
|
readonly uid: string;
|
|
102
|
+
/**
|
|
103
|
+
* The URL for the data source. The type of URL required varies depending on the chosen data source type.
|
|
104
|
+
*/
|
|
33
105
|
readonly url: string;
|
|
106
|
+
/**
|
|
107
|
+
* (Required by some data source types) The username to use to authenticate to the data source.
|
|
108
|
+
*/
|
|
34
109
|
readonly username: string;
|
|
35
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Get details about a Grafana Datasource querying by either name, uid or ID
|
|
113
|
+
*
|
|
114
|
+
* ## Example Usage
|
|
115
|
+
*
|
|
116
|
+
* <!--Start PulumiCodeChooser -->
|
|
117
|
+
* ```typescript
|
|
118
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
119
|
+
* import * as grafana from "@pulumi/grafana";
|
|
120
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
121
|
+
*
|
|
122
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
123
|
+
* type: "prometheus",
|
|
124
|
+
* uid: "prometheus-ds-test-uid",
|
|
125
|
+
* url: "https://my-instance.com",
|
|
126
|
+
* basicAuthEnabled: true,
|
|
127
|
+
* basicAuthUsername: "username",
|
|
128
|
+
* jsonDataEncoded: JSON.stringify({
|
|
129
|
+
* httpMethod: "POST",
|
|
130
|
+
* prometheusType: "Mimir",
|
|
131
|
+
* prometheusVersion: "2.4.0",
|
|
132
|
+
* }),
|
|
133
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
134
|
+
* basicAuthPassword: "password",
|
|
135
|
+
* }),
|
|
136
|
+
* });
|
|
137
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
138
|
+
* name: prometheus.name,
|
|
139
|
+
* });
|
|
140
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
141
|
+
* id: prometheus.id,
|
|
142
|
+
* });
|
|
143
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
144
|
+
* uid: prometheus.uid,
|
|
145
|
+
* });
|
|
146
|
+
* ```
|
|
147
|
+
* <!--End PulumiCodeChooser -->
|
|
148
|
+
*/
|
|
36
149
|
export declare function getDataSourceOutput(args?: GetDataSourceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDataSourceResult>;
|
|
37
150
|
/**
|
|
38
151
|
* A collection of arguments for invoking getDataSource.
|
|
39
152
|
*/
|
|
40
153
|
export interface GetDataSourceOutputArgs {
|
|
41
154
|
/**
|
|
155
|
+
* Deprecated: Use `uid` instead of `id`
|
|
156
|
+
*
|
|
42
157
|
* @deprecated Use `uid` instead of `id`
|
|
43
158
|
*/
|
|
44
159
|
id?: pulumi.Input<string>;
|
|
45
160
|
name?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
163
|
+
*/
|
|
46
164
|
orgId?: pulumi.Input<string>;
|
|
47
165
|
uid?: pulumi.Input<string>;
|
|
48
166
|
}
|
package/getDataSource.js
CHANGED
|
@@ -5,6 +5,44 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getDataSourceOutput = exports.getDataSource = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Get details about a Grafana Datasource querying by either name, uid or ID
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
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 prometheus = new grafana.DataSource("prometheus", {
|
|
20
|
+
* type: "prometheus",
|
|
21
|
+
* uid: "prometheus-ds-test-uid",
|
|
22
|
+
* url: "https://my-instance.com",
|
|
23
|
+
* basicAuthEnabled: true,
|
|
24
|
+
* basicAuthUsername: "username",
|
|
25
|
+
* jsonDataEncoded: JSON.stringify({
|
|
26
|
+
* httpMethod: "POST",
|
|
27
|
+
* prometheusType: "Mimir",
|
|
28
|
+
* prometheusVersion: "2.4.0",
|
|
29
|
+
* }),
|
|
30
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
31
|
+
* basicAuthPassword: "password",
|
|
32
|
+
* }),
|
|
33
|
+
* });
|
|
34
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
35
|
+
* name: prometheus.name,
|
|
36
|
+
* });
|
|
37
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
38
|
+
* id: prometheus.id,
|
|
39
|
+
* });
|
|
40
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
41
|
+
* uid: prometheus.uid,
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
* <!--End PulumiCodeChooser -->
|
|
45
|
+
*/
|
|
8
46
|
function getDataSource(args, opts) {
|
|
9
47
|
args = args || {};
|
|
10
48
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -16,6 +54,44 @@ function getDataSource(args, opts) {
|
|
|
16
54
|
}, opts);
|
|
17
55
|
}
|
|
18
56
|
exports.getDataSource = getDataSource;
|
|
57
|
+
/**
|
|
58
|
+
* Get details about a Grafana Datasource querying by either name, uid or ID
|
|
59
|
+
*
|
|
60
|
+
* ## Example Usage
|
|
61
|
+
*
|
|
62
|
+
* <!--Start PulumiCodeChooser -->
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as grafana from "@pulumi/grafana";
|
|
66
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
67
|
+
*
|
|
68
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
69
|
+
* type: "prometheus",
|
|
70
|
+
* uid: "prometheus-ds-test-uid",
|
|
71
|
+
* url: "https://my-instance.com",
|
|
72
|
+
* basicAuthEnabled: true,
|
|
73
|
+
* basicAuthUsername: "username",
|
|
74
|
+
* jsonDataEncoded: JSON.stringify({
|
|
75
|
+
* httpMethod: "POST",
|
|
76
|
+
* prometheusType: "Mimir",
|
|
77
|
+
* prometheusVersion: "2.4.0",
|
|
78
|
+
* }),
|
|
79
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
80
|
+
* basicAuthPassword: "password",
|
|
81
|
+
* }),
|
|
82
|
+
* });
|
|
83
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
84
|
+
* name: prometheus.name,
|
|
85
|
+
* });
|
|
86
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
87
|
+
* id: prometheus.id,
|
|
88
|
+
* });
|
|
89
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
90
|
+
* uid: prometheus.uid,
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
* <!--End PulumiCodeChooser -->
|
|
94
|
+
*/
|
|
19
95
|
function getDataSourceOutput(args, opts) {
|
|
20
96
|
return pulumi.output(args).apply((a) => getDataSource(a, opts));
|
|
21
97
|
}
|
package/getDataSource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDataSource.js","sourceRoot":"","sources":["../getDataSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;
|
|
1
|
+
{"version":3,"file":"getDataSource.js","sourceRoot":"","sources":["../getDataSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;AAyED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,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"}
|