@pulumiverse/grafana 0.2.1-alpha.1709570924
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +54 -0
- package/annotation.d.ts +151 -0
- package/annotation.js +79 -0
- package/annotation.js.map +1 -0
- package/apiKey.d.ts +77 -0
- package/apiKey.js +80 -0
- package/apiKey.js.map +1 -0
- package/cloudAccessPolicy.d.ts +156 -0
- package/cloudAccessPolicy.js +115 -0
- package/cloudAccessPolicy.js.map +1 -0
- package/cloudAccessPolicyToken.d.ts +151 -0
- package/cloudAccessPolicyToken.js +108 -0
- package/cloudAccessPolicyToken.js.map +1 -0
- package/cloudApiKey.d.ts +102 -0
- package/cloudApiKey.js +85 -0
- package/cloudApiKey.js.map +1 -0
- package/cloudPluginInstallation.d.ts +96 -0
- package/cloudPluginInstallation.js +86 -0
- package/cloudPluginInstallation.js.map +1 -0
- package/cloudStack.d.ts +291 -0
- package/cloudStack.js +142 -0
- package/cloudStack.js.map +1 -0
- package/cloudStackApiKey.d.ts +52 -0
- package/cloudStackApiKey.js +67 -0
- package/cloudStackApiKey.js.map +1 -0
- package/cloudStackServiceAccount.d.ts +97 -0
- package/cloudStackServiceAccount.js +80 -0
- package/cloudStackServiceAccount.js.map +1 -0
- package/cloudStackServiceAccountToken.d.ts +78 -0
- package/cloudStackServiceAccountToken.js +93 -0
- package/cloudStackServiceAccountToken.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +89 -0
- package/config/vars.js +131 -0
- package/config/vars.js.map +1 -0
- package/contactPoint.d.ts +310 -0
- package/contactPoint.js +119 -0
- package/contactPoint.js.map +1 -0
- package/dashboard.d.ts +154 -0
- package/dashboard.js +94 -0
- package/dashboard.js.map +1 -0
- package/dashboardPermission.d.ts +131 -0
- package/dashboardPermission.js +97 -0
- package/dashboardPermission.js.map +1 -0
- package/dataSource.d.ts +294 -0
- package/dataSource.js +164 -0
- package/dataSource.js.map +1 -0
- package/dataSourcePermission.d.ts +124 -0
- package/dataSourcePermission.js +109 -0
- package/dataSourcePermission.js.map +1 -0
- package/folder.d.ts +127 -0
- package/folder.js +95 -0
- package/folder.js.map +1 -0
- package/folderPermission.d.ts +106 -0
- package/folderPermission.js +91 -0
- package/folderPermission.js.map +1 -0
- package/getCloudIps.d.ts +56 -0
- package/getCloudIps.js +41 -0
- package/getCloudIps.js.map +1 -0
- package/getCloudOrganization.d.ts +37 -0
- package/getCloudOrganization.js +21 -0
- package/getCloudOrganization.js.map +1 -0
- package/getCloudStack.d.ts +130 -0
- package/getCloudStack.js +25 -0
- package/getCloudStack.js.map +1 -0
- package/getDashboard.d.ts +134 -0
- package/getDashboard.js +81 -0
- package/getDashboard.js.map +1 -0
- package/getDashboards.d.ts +74 -0
- package/getDashboards.js +36 -0
- package/getDashboards.js.map +1 -0
- package/getDataSource.d.ts +156 -0
- package/getDataSource.js +95 -0
- package/getDataSource.js.map +1 -0
- package/getFolder.d.ts +82 -0
- package/getFolder.js +59 -0
- package/getFolder.js.map +1 -0
- package/getFolders.d.ts +61 -0
- package/getFolders.js +61 -0
- package/getFolders.js.map +1 -0
- package/getLibraryPanel.d.ts +108 -0
- package/getLibraryPanel.js +28 -0
- package/getLibraryPanel.js.map +1 -0
- package/getOnCallSlackChannel.d.ts +66 -0
- package/getOnCallSlackChannel.js +47 -0
- package/getOnCallSlackChannel.js.map +1 -0
- package/getOncallAction.d.ts +46 -0
- package/getOncallAction.js +31 -0
- package/getOncallAction.js.map +1 -0
- package/getOncallEscalationChain.d.ts +62 -0
- package/getOncallEscalationChain.js +47 -0
- package/getOncallEscalationChain.js.map +1 -0
- package/getOncallOutgoingWebhook.d.ts +62 -0
- package/getOncallOutgoingWebhook.js +47 -0
- package/getOncallOutgoingWebhook.js.map +1 -0
- package/getOncallSchedule.d.ts +68 -0
- package/getOncallSchedule.js +49 -0
- package/getOncallSchedule.js.map +1 -0
- package/getOncallTeam.d.ts +60 -0
- package/getOncallTeam.js +43 -0
- package/getOncallTeam.js.map +1 -0
- package/getOncallUser.d.ts +70 -0
- package/getOncallUser.js +47 -0
- package/getOncallUser.js.map +1 -0
- package/getOncallUserGroup.d.ts +54 -0
- package/getOncallUserGroup.js +47 -0
- package/getOncallUserGroup.js.map +1 -0
- package/getOrganization.d.ts +94 -0
- package/getOrganization.js +67 -0
- package/getOrganization.js.map +1 -0
- package/getOrganizationPreferences.d.ts +62 -0
- package/getOrganizationPreferences.js +43 -0
- package/getOrganizationPreferences.js.map +1 -0
- package/getRole.d.ts +147 -0
- package/getRole.js +95 -0
- package/getRole.js.map +1 -0
- package/getSlos.d.ts +31 -0
- package/getSlos.js +31 -0
- package/getSlos.js.map +1 -0
- package/getSyntheticMonitoringProbe.d.ts +88 -0
- package/getSyntheticMonitoringProbe.js +47 -0
- package/getSyntheticMonitoringProbe.js.map +1 -0
- package/getSyntheticMonitoringProbes.d.ts +64 -0
- package/getSyntheticMonitoringProbes.js +44 -0
- package/getSyntheticMonitoringProbes.js.map +1 -0
- package/getTeam.d.ts +83 -0
- package/getTeam.js +67 -0
- package/getTeam.js.map +1 -0
- package/getUser.d.ts +128 -0
- package/getUser.js +84 -0
- package/getUser.js.map +1 -0
- package/getUsers.d.ts +61 -0
- package/getUsers.js +61 -0
- package/getUsers.js.map +1 -0
- package/index.d.ts +228 -0
- package/index.js +353 -0
- package/index.js.map +1 -0
- package/libraryPanel.d.ts +193 -0
- package/libraryPanel.js +103 -0
- package/libraryPanel.js.map +1 -0
- package/machineLearningHoliday.d.ts +103 -0
- package/machineLearningHoliday.js +62 -0
- package/machineLearningHoliday.js.map +1 -0
- package/machineLearningJob.d.ts +201 -0
- package/machineLearningJob.js +83 -0
- package/machineLearningJob.js.map +1 -0
- package/machineLearningOutlierDetector.d.ts +159 -0
- package/machineLearningOutlierDetector.js +84 -0
- package/machineLearningOutlierDetector.js.map +1 -0
- package/messageTemplate.d.ts +86 -0
- package/messageTemplate.js +80 -0
- package/messageTemplate.js.map +1 -0
- package/muteTiming.d.ts +106 -0
- package/muteTiming.js +95 -0
- package/muteTiming.js.map +1 -0
- package/notificationPolicy.d.ts +186 -0
- package/notificationPolicy.js +141 -0
- package/notificationPolicy.js.map +1 -0
- package/oncallEscalation.d.ts +227 -0
- package/oncallEscalation.js +124 -0
- package/oncallEscalation.js.map +1 -0
- package/oncallEscalationChain.d.ts +80 -0
- package/oncallEscalationChain.js +71 -0
- package/oncallEscalationChain.js.map +1 -0
- package/oncallIntegration.d.ts +116 -0
- package/oncallIntegration.js +75 -0
- package/oncallIntegration.js.map +1 -0
- package/oncallOnCallShift.d.ts +237 -0
- package/oncallOnCallShift.js +97 -0
- package/oncallOnCallShift.js.map +1 -0
- package/oncallOutgoingWebhook.d.ts +152 -0
- package/oncallOutgoingWebhook.js +88 -0
- package/oncallOutgoingWebhook.js.map +1 -0
- package/oncallRoute.d.ts +175 -0
- package/oncallRoute.js +116 -0
- package/oncallRoute.js.map +1 -0
- package/oncallSchedule.d.ts +187 -0
- package/oncallSchedule.js +109 -0
- package/oncallSchedule.js.map +1 -0
- package/organization.d.ts +193 -0
- package/organization.js +96 -0
- package/organization.js.map +1 -0
- package/organizationPreference.d.ts +125 -0
- package/organizationPreference.js +76 -0
- package/organizationPreference.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +29 -0
- package/package.json.dev +29 -0
- package/playlist.d.ts +72 -0
- package/playlist.js +65 -0
- package/playlist.js.map +1 -0
- package/provider.d.ts +166 -0
- package/provider.js +64 -0
- package/provider.js.map +1 -0
- package/report.d.ts +241 -0
- package/report.js +110 -0
- package/report.js.map +1 -0
- package/role.d.ts +210 -0
- package/role.js +109 -0
- package/role.js.map +1 -0
- package/roleAssignment.d.ts +131 -0
- package/roleAssignment.js +95 -0
- package/roleAssignment.js.map +1 -0
- package/ruleGroup.d.ts +203 -0
- package/ruleGroup.js +174 -0
- package/ruleGroup.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/serviceAccount.d.ts +102 -0
- package/serviceAccount.js +73 -0
- package/serviceAccount.js.map +1 -0
- package/serviceAccountPermission.d.ts +110 -0
- package/serviceAccountPermission.js +95 -0
- package/serviceAccountPermission.js.map +1 -0
- package/serviceAccountToken.d.ts +72 -0
- package/serviceAccountToken.js +85 -0
- package/serviceAccountToken.js.map +1 -0
- package/slo.d.ts +131 -0
- package/slo.js +77 -0
- package/slo.js.map +1 -0
- package/syntheticMonitoringCheck.d.ts +555 -0
- package/syntheticMonitoringCheck.js +464 -0
- package/syntheticMonitoringCheck.js.map +1 -0
- package/syntheticMonitoringInstallation.d.ts +112 -0
- package/syntheticMonitoringInstallation.js +95 -0
- package/syntheticMonitoringInstallation.js.map +1 -0
- package/syntheticMonitoringProbe.d.ts +164 -0
- package/syntheticMonitoringProbe.js +108 -0
- package/syntheticMonitoringProbe.js.map +1 -0
- package/team.d.ts +165 -0
- package/team.js +89 -0
- package/team.js.map +1 -0
- package/teamExternalGroup.d.ts +84 -0
- package/teamExternalGroup.js +81 -0
- package/teamExternalGroup.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1914 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2011 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +132 -0
- package/user.js +95 -0
- package/user.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumi/grafana";
|
|
10
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
11
|
+
*
|
|
12
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
13
|
+
* type: "prometheus",
|
|
14
|
+
* uid: "prometheus-ds-test-uid",
|
|
15
|
+
* url: "https://my-instance.com",
|
|
16
|
+
* basicAuthEnabled: true,
|
|
17
|
+
* basicAuthUsername: "username",
|
|
18
|
+
* jsonDataEncoded: JSON.stringify({
|
|
19
|
+
* httpMethod: "POST",
|
|
20
|
+
* prometheusType: "Mimir",
|
|
21
|
+
* prometheusVersion: "2.4.0",
|
|
22
|
+
* }),
|
|
23
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
24
|
+
* basicAuthPassword: "password",
|
|
25
|
+
* }),
|
|
26
|
+
* });
|
|
27
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
28
|
+
* name: prometheus.name,
|
|
29
|
+
* });
|
|
30
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
31
|
+
* id: prometheus.id,
|
|
32
|
+
* });
|
|
33
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
34
|
+
* uid: prometheus.uid,
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function getDataSource(args?: GetDataSourceArgs, opts?: pulumi.InvokeOptions): Promise<GetDataSourceResult>;
|
|
39
|
+
/**
|
|
40
|
+
* A collection of arguments for invoking getDataSource.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetDataSourceArgs {
|
|
43
|
+
/**
|
|
44
|
+
* The ID of this resource.
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
50
|
+
*/
|
|
51
|
+
orgId?: string;
|
|
52
|
+
uid?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A collection of values returned by getDataSource.
|
|
56
|
+
*/
|
|
57
|
+
export interface GetDataSourceResult {
|
|
58
|
+
/**
|
|
59
|
+
* The method by which Grafana will access the data source: `proxy` or `direct`.
|
|
60
|
+
*/
|
|
61
|
+
readonly accessMode: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to enable basic auth for the data source.
|
|
64
|
+
*/
|
|
65
|
+
readonly basicAuthEnabled: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Basic auth username.
|
|
68
|
+
*/
|
|
69
|
+
readonly basicAuthUsername: string;
|
|
70
|
+
/**
|
|
71
|
+
* (Required by some data source types) The name of the database to use on the selected data source server.
|
|
72
|
+
*/
|
|
73
|
+
readonly databaseName: string;
|
|
74
|
+
/**
|
|
75
|
+
* The ID of this resource.
|
|
76
|
+
*/
|
|
77
|
+
readonly id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Whether to set the data source as default. This should only be `true` to a single data source.
|
|
80
|
+
*/
|
|
81
|
+
readonly isDefault: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* 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.
|
|
84
|
+
*/
|
|
85
|
+
readonly jsonDataEncoded: string;
|
|
86
|
+
readonly name: string;
|
|
87
|
+
/**
|
|
88
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
89
|
+
*/
|
|
90
|
+
readonly orgId?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The data source type. Must be one of the supported data source keywords.
|
|
93
|
+
*/
|
|
94
|
+
readonly type: string;
|
|
95
|
+
readonly uid: string;
|
|
96
|
+
/**
|
|
97
|
+
* The URL for the data source. The type of URL required varies depending on the chosen data source type.
|
|
98
|
+
*/
|
|
99
|
+
readonly url: string;
|
|
100
|
+
/**
|
|
101
|
+
* (Required by some data source types) The username to use to authenticate to the data source.
|
|
102
|
+
*/
|
|
103
|
+
readonly username: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get details about a Grafana Datasource querying by either name, uid or ID
|
|
107
|
+
*
|
|
108
|
+
* ## Example Usage
|
|
109
|
+
*
|
|
110
|
+
* ```typescript
|
|
111
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
112
|
+
* import * as grafana from "@pulumi/grafana";
|
|
113
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
114
|
+
*
|
|
115
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
116
|
+
* type: "prometheus",
|
|
117
|
+
* uid: "prometheus-ds-test-uid",
|
|
118
|
+
* url: "https://my-instance.com",
|
|
119
|
+
* basicAuthEnabled: true,
|
|
120
|
+
* basicAuthUsername: "username",
|
|
121
|
+
* jsonDataEncoded: JSON.stringify({
|
|
122
|
+
* httpMethod: "POST",
|
|
123
|
+
* prometheusType: "Mimir",
|
|
124
|
+
* prometheusVersion: "2.4.0",
|
|
125
|
+
* }),
|
|
126
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
127
|
+
* basicAuthPassword: "password",
|
|
128
|
+
* }),
|
|
129
|
+
* });
|
|
130
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
131
|
+
* name: prometheus.name,
|
|
132
|
+
* });
|
|
133
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
134
|
+
* id: prometheus.id,
|
|
135
|
+
* });
|
|
136
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
137
|
+
* uid: prometheus.uid,
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare function getDataSourceOutput(args?: GetDataSourceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDataSourceResult>;
|
|
142
|
+
/**
|
|
143
|
+
* A collection of arguments for invoking getDataSource.
|
|
144
|
+
*/
|
|
145
|
+
export interface GetDataSourceOutputArgs {
|
|
146
|
+
/**
|
|
147
|
+
* The ID of this resource.
|
|
148
|
+
*/
|
|
149
|
+
id?: pulumi.Input<string>;
|
|
150
|
+
name?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
153
|
+
*/
|
|
154
|
+
orgId?: pulumi.Input<string>;
|
|
155
|
+
uid?: pulumi.Input<string>;
|
|
156
|
+
}
|
package/getDataSource.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getDataSourceOutput = exports.getDataSource = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
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
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as grafana from "@pulumi/grafana";
|
|
16
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
+
*
|
|
18
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
19
|
+
* type: "prometheus",
|
|
20
|
+
* uid: "prometheus-ds-test-uid",
|
|
21
|
+
* url: "https://my-instance.com",
|
|
22
|
+
* basicAuthEnabled: true,
|
|
23
|
+
* basicAuthUsername: "username",
|
|
24
|
+
* jsonDataEncoded: JSON.stringify({
|
|
25
|
+
* httpMethod: "POST",
|
|
26
|
+
* prometheusType: "Mimir",
|
|
27
|
+
* prometheusVersion: "2.4.0",
|
|
28
|
+
* }),
|
|
29
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
30
|
+
* basicAuthPassword: "password",
|
|
31
|
+
* }),
|
|
32
|
+
* });
|
|
33
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
34
|
+
* name: prometheus.name,
|
|
35
|
+
* });
|
|
36
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
37
|
+
* id: prometheus.id,
|
|
38
|
+
* });
|
|
39
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
40
|
+
* uid: prometheus.uid,
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
function getDataSource(args, opts) {
|
|
45
|
+
args = args || {};
|
|
46
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
47
|
+
return pulumi.runtime.invoke("grafana:index/getDataSource:getDataSource", {
|
|
48
|
+
"id": args.id,
|
|
49
|
+
"name": args.name,
|
|
50
|
+
"orgId": args.orgId,
|
|
51
|
+
"uid": args.uid,
|
|
52
|
+
}, opts);
|
|
53
|
+
}
|
|
54
|
+
exports.getDataSource = getDataSource;
|
|
55
|
+
/**
|
|
56
|
+
* Get details about a Grafana Datasource querying by either name, uid or ID
|
|
57
|
+
*
|
|
58
|
+
* ## Example Usage
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as grafana from "@pulumi/grafana";
|
|
63
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
64
|
+
*
|
|
65
|
+
* const prometheus = new grafana.DataSource("prometheus", {
|
|
66
|
+
* type: "prometheus",
|
|
67
|
+
* uid: "prometheus-ds-test-uid",
|
|
68
|
+
* url: "https://my-instance.com",
|
|
69
|
+
* basicAuthEnabled: true,
|
|
70
|
+
* basicAuthUsername: "username",
|
|
71
|
+
* jsonDataEncoded: JSON.stringify({
|
|
72
|
+
* httpMethod: "POST",
|
|
73
|
+
* prometheusType: "Mimir",
|
|
74
|
+
* prometheusVersion: "2.4.0",
|
|
75
|
+
* }),
|
|
76
|
+
* secureJsonDataEncoded: JSON.stringify({
|
|
77
|
+
* basicAuthPassword: "password",
|
|
78
|
+
* }),
|
|
79
|
+
* });
|
|
80
|
+
* const fromName = grafana.getDataSourceOutput({
|
|
81
|
+
* name: prometheus.name,
|
|
82
|
+
* });
|
|
83
|
+
* const fromId = grafana.getDataSourceOutput({
|
|
84
|
+
* id: prometheus.id,
|
|
85
|
+
* });
|
|
86
|
+
* const fromUid = grafana.getDataSourceOutput({
|
|
87
|
+
* uid: prometheus.uid,
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
function getDataSourceOutput(args, opts) {
|
|
92
|
+
return pulumi.output(args).apply((a) => getDataSource(a, opts));
|
|
93
|
+
}
|
|
94
|
+
exports.getDataSourceOutput = getDataSourceOutput;
|
|
95
|
+
//# sourceMappingURL=getDataSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDataSource.js","sourceRoot":"","sources":["../getDataSource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;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;AAqED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;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/getFolder.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
4
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as grafana from "@pulumi/grafana";
|
|
11
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
12
|
+
*
|
|
13
|
+
* const test = new grafana.Folder("test", {
|
|
14
|
+
* title: "test-folder",
|
|
15
|
+
* uid: "test-ds-folder-uid",
|
|
16
|
+
* });
|
|
17
|
+
* const fromTitle = grafana.getFolderOutput({
|
|
18
|
+
* title: test.title,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function getFolder(args: GetFolderArgs, opts?: pulumi.InvokeOptions): Promise<GetFolderResult>;
|
|
23
|
+
/**
|
|
24
|
+
* A collection of arguments for invoking getFolder.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetFolderArgs {
|
|
27
|
+
/**
|
|
28
|
+
* The name of the Grafana folder.
|
|
29
|
+
*/
|
|
30
|
+
title: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A collection of values returned by getFolder.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetFolderResult {
|
|
36
|
+
/**
|
|
37
|
+
* The numerical ID of the Grafana folder.
|
|
38
|
+
*/
|
|
39
|
+
readonly id: number;
|
|
40
|
+
/**
|
|
41
|
+
* The name of the Grafana folder.
|
|
42
|
+
*/
|
|
43
|
+
readonly title: string;
|
|
44
|
+
/**
|
|
45
|
+
* The uid of the Grafana folder.
|
|
46
|
+
*/
|
|
47
|
+
readonly uid: string;
|
|
48
|
+
/**
|
|
49
|
+
* The full URL of the folder.
|
|
50
|
+
*/
|
|
51
|
+
readonly url: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
55
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
56
|
+
*
|
|
57
|
+
* ## Example Usage
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as grafana from "@pulumi/grafana";
|
|
62
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
63
|
+
*
|
|
64
|
+
* const test = new grafana.Folder("test", {
|
|
65
|
+
* title: "test-folder",
|
|
66
|
+
* uid: "test-ds-folder-uid",
|
|
67
|
+
* });
|
|
68
|
+
* const fromTitle = grafana.getFolderOutput({
|
|
69
|
+
* title: test.title,
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getFolderOutput(args: GetFolderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFolderResult>;
|
|
74
|
+
/**
|
|
75
|
+
* A collection of arguments for invoking getFolder.
|
|
76
|
+
*/
|
|
77
|
+
export interface GetFolderOutputArgs {
|
|
78
|
+
/**
|
|
79
|
+
* The name of the Grafana folder.
|
|
80
|
+
*/
|
|
81
|
+
title: pulumi.Input<string>;
|
|
82
|
+
}
|
package/getFolder.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getFolderOutput = exports.getFolder = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as grafana from "@pulumi/grafana";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const test = new grafana.Folder("test", {
|
|
20
|
+
* title: "test-folder",
|
|
21
|
+
* uid: "test-ds-folder-uid",
|
|
22
|
+
* });
|
|
23
|
+
* const fromTitle = grafana.getFolderOutput({
|
|
24
|
+
* title: test.title,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
function getFolder(args, opts) {
|
|
29
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
30
|
+
return pulumi.runtime.invoke("grafana:index/getFolder:getFolder", {
|
|
31
|
+
"title": args.title,
|
|
32
|
+
}, opts);
|
|
33
|
+
}
|
|
34
|
+
exports.getFolder = getFolder;
|
|
35
|
+
/**
|
|
36
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
37
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as grafana from "@pulumi/grafana";
|
|
44
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
45
|
+
*
|
|
46
|
+
* const test = new grafana.Folder("test", {
|
|
47
|
+
* title: "test-folder",
|
|
48
|
+
* uid: "test-ds-folder-uid",
|
|
49
|
+
* });
|
|
50
|
+
* const fromTitle = grafana.getFolderOutput({
|
|
51
|
+
* title: test.title,
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
function getFolderOutput(args, opts) {
|
|
56
|
+
return pulumi.output(args).apply((a) => getFolder(a, opts));
|
|
57
|
+
}
|
|
58
|
+
exports.getFolderOutput = getFolderOutput;
|
|
59
|
+
//# sourceMappingURL=getFolder.js.map
|
package/getFolder.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFolder.js","sourceRoot":"","sources":["../getFolder.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8BAMC;AAiCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/getFolders.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
5
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as grafana from "@pulumi/grafana";
|
|
12
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
13
|
+
*
|
|
14
|
+
* const testA = new grafana.Folder("testA", {
|
|
15
|
+
* title: "test-folder-a",
|
|
16
|
+
* uid: "test-ds-folder-uid-a",
|
|
17
|
+
* });
|
|
18
|
+
* const testB = new grafana.Folder("testB", {
|
|
19
|
+
* title: "test-folder-b",
|
|
20
|
+
* uid: "test-ds-folder-uid-b",
|
|
21
|
+
* });
|
|
22
|
+
* const test = grafana.getFolders({});
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function getFolders(opts?: pulumi.InvokeOptions): Promise<GetFoldersResult>;
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getFolders.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetFoldersResult {
|
|
30
|
+
/**
|
|
31
|
+
* The Grafana instance's folders.
|
|
32
|
+
*/
|
|
33
|
+
readonly folders: outputs.GetFoldersFolder[];
|
|
34
|
+
/**
|
|
35
|
+
* The provider-assigned unique ID for this managed resource.
|
|
36
|
+
*/
|
|
37
|
+
readonly id: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
41
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
42
|
+
*
|
|
43
|
+
* ## Example Usage
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as grafana from "@pulumi/grafana";
|
|
48
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
49
|
+
*
|
|
50
|
+
* const testA = new grafana.Folder("testA", {
|
|
51
|
+
* title: "test-folder-a",
|
|
52
|
+
* uid: "test-ds-folder-uid-a",
|
|
53
|
+
* });
|
|
54
|
+
* const testB = new grafana.Folder("testB", {
|
|
55
|
+
* title: "test-folder-b",
|
|
56
|
+
* uid: "test-ds-folder-uid-b",
|
|
57
|
+
* });
|
|
58
|
+
* const test = grafana.getFolders({});
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function getFoldersOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetFoldersResult>;
|
package/getFolders.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getFoldersOutput = exports.getFolders = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as grafana from "@pulumi/grafana";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const testA = new grafana.Folder("testA", {
|
|
20
|
+
* title: "test-folder-a",
|
|
21
|
+
* uid: "test-ds-folder-uid-a",
|
|
22
|
+
* });
|
|
23
|
+
* const testB = new grafana.Folder("testB", {
|
|
24
|
+
* title: "test-folder-b",
|
|
25
|
+
* uid: "test-ds-folder-uid-b",
|
|
26
|
+
* });
|
|
27
|
+
* const test = grafana.getFolders({});
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function getFolders(opts) {
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invoke("grafana:index/getFolders:getFolders", {}, opts);
|
|
33
|
+
}
|
|
34
|
+
exports.getFolders = getFolders;
|
|
35
|
+
/**
|
|
36
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/manage-dashboards/)
|
|
37
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/folder/)
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as grafana from "@pulumi/grafana";
|
|
44
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
45
|
+
*
|
|
46
|
+
* const testA = new grafana.Folder("testA", {
|
|
47
|
+
* title: "test-folder-a",
|
|
48
|
+
* uid: "test-ds-folder-uid-a",
|
|
49
|
+
* });
|
|
50
|
+
* const testB = new grafana.Folder("testB", {
|
|
51
|
+
* title: "test-folder-b",
|
|
52
|
+
* uid: "test-ds-folder-uid-b",
|
|
53
|
+
* });
|
|
54
|
+
* const test = grafana.getFolders({});
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
function getFoldersOutput(opts) {
|
|
58
|
+
return pulumi.output(getFolders(opts));
|
|
59
|
+
}
|
|
60
|
+
exports.getFoldersOutput = getFoldersOutput;
|
|
61
|
+
//# sourceMappingURL=getFolders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFolders.js","sourceRoot":"","sources":["../getFolders.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,UAAU,CAAC,IAA2B;IAElD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE,EACnE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gCAKC;AAeD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B;IACxD,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;AAC1C,CAAC;AAFD,4CAEC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Data source for retrieving a single library panel by name or uid.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getLibraryPanel(args?: GetLibraryPanelArgs, opts?: pulumi.InvokeOptions): Promise<GetLibraryPanelResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of arguments for invoking getLibraryPanel.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetLibraryPanelArgs {
|
|
10
|
+
/**
|
|
11
|
+
* Name of the library panel.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
16
|
+
*/
|
|
17
|
+
orgId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier (UID) of the library panel.
|
|
20
|
+
*/
|
|
21
|
+
uid?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A collection of values returned by getLibraryPanel.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetLibraryPanelResult {
|
|
27
|
+
/**
|
|
28
|
+
* Timestamp when the library panel was created.
|
|
29
|
+
*/
|
|
30
|
+
readonly created: string;
|
|
31
|
+
/**
|
|
32
|
+
* Numerical IDs of Grafana dashboards containing the library panel.
|
|
33
|
+
*/
|
|
34
|
+
readonly dashboardIds: number[];
|
|
35
|
+
/**
|
|
36
|
+
* Description of the library panel.
|
|
37
|
+
*/
|
|
38
|
+
readonly description: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the folder where the library panel is stored.
|
|
41
|
+
*/
|
|
42
|
+
readonly folderId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Name of the folder containing the library panel.
|
|
45
|
+
*/
|
|
46
|
+
readonly folderName: string;
|
|
47
|
+
/**
|
|
48
|
+
* Unique ID (UID) of the folder containing the library panel.
|
|
49
|
+
*/
|
|
50
|
+
readonly folderUid: string;
|
|
51
|
+
/**
|
|
52
|
+
* The provider-assigned unique ID for this managed resource.
|
|
53
|
+
*/
|
|
54
|
+
readonly id: string;
|
|
55
|
+
/**
|
|
56
|
+
* The JSON model for the library panel.
|
|
57
|
+
*/
|
|
58
|
+
readonly modelJson: string;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the library panel.
|
|
61
|
+
*/
|
|
62
|
+
readonly name?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
65
|
+
*/
|
|
66
|
+
readonly orgId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The numeric ID of the library panel computed by Grafana.
|
|
69
|
+
*/
|
|
70
|
+
readonly panelId: number;
|
|
71
|
+
/**
|
|
72
|
+
* Type of the library panel (eg. text).
|
|
73
|
+
*/
|
|
74
|
+
readonly type: string;
|
|
75
|
+
/**
|
|
76
|
+
* The unique identifier (UID) of the library panel.
|
|
77
|
+
*/
|
|
78
|
+
readonly uid?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Timestamp when the library panel was last modified.
|
|
81
|
+
*/
|
|
82
|
+
readonly updated: string;
|
|
83
|
+
/**
|
|
84
|
+
* Version of the library panel.
|
|
85
|
+
*/
|
|
86
|
+
readonly version: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Data source for retrieving a single library panel by name or uid.
|
|
90
|
+
*/
|
|
91
|
+
export declare function getLibraryPanelOutput(args?: GetLibraryPanelOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLibraryPanelResult>;
|
|
92
|
+
/**
|
|
93
|
+
* A collection of arguments for invoking getLibraryPanel.
|
|
94
|
+
*/
|
|
95
|
+
export interface GetLibraryPanelOutputArgs {
|
|
96
|
+
/**
|
|
97
|
+
* Name of the library panel.
|
|
98
|
+
*/
|
|
99
|
+
name?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
102
|
+
*/
|
|
103
|
+
orgId?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The unique identifier (UID) of the library panel.
|
|
106
|
+
*/
|
|
107
|
+
uid?: pulumi.Input<string>;
|
|
108
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getLibraryPanelOutput = exports.getLibraryPanel = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source for retrieving a single library panel by name or uid.
|
|
10
|
+
*/
|
|
11
|
+
function getLibraryPanel(args, opts) {
|
|
12
|
+
args = args || {};
|
|
13
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
14
|
+
return pulumi.runtime.invoke("grafana:index/getLibraryPanel:getLibraryPanel", {
|
|
15
|
+
"name": args.name,
|
|
16
|
+
"orgId": args.orgId,
|
|
17
|
+
"uid": args.uid,
|
|
18
|
+
}, opts);
|
|
19
|
+
}
|
|
20
|
+
exports.getLibraryPanel = getLibraryPanel;
|
|
21
|
+
/**
|
|
22
|
+
* Data source for retrieving a single library panel by name or uid.
|
|
23
|
+
*/
|
|
24
|
+
function getLibraryPanelOutput(args, opts) {
|
|
25
|
+
return pulumi.output(args).apply((a) => getLibraryPanel(a, opts));
|
|
26
|
+
}
|
|
27
|
+
exports.getLibraryPanelOutput = getLibraryPanelOutput;
|
|
28
|
+
//# sourceMappingURL=getLibraryPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLibraryPanel.js","sourceRoot":"","sources":["../getLibraryPanel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,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,+CAA+C,EAAE;QAC1E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,KAAK,EAAE,IAAI,CAAC,GAAG;KAClB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AAqFD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|