@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/annotation.d.ts
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/annotate-visualizations/)
|
|
4
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/annotations/)
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
12
|
+
*
|
|
13
|
+
* const test = new grafana.Annotation("test", {text: "basic text"});
|
|
14
|
+
* ```
|
|
15
|
+
* <!--End PulumiCodeChooser -->
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import grafana:index/annotation:Annotation name "{{ id }}"
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import grafana:index/annotation:Annotation name "{{ orgID }}:{{ id }}"
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
2
27
|
export declare class Annotation extends pulumi.CustomResource {
|
|
3
28
|
/**
|
|
4
29
|
* Get an existing Annotation resource's state with the given name, ID, and optional extra
|
|
@@ -16,7 +41,7 @@ export declare class Annotation extends pulumi.CustomResource {
|
|
|
16
41
|
*/
|
|
17
42
|
static isInstance(obj: any): obj is Annotation;
|
|
18
43
|
/**
|
|
19
|
-
* The ID of the dashboard on which to create the annotation. Deprecated: Use
|
|
44
|
+
* The ID of the dashboard on which to create the annotation. Deprecated: Use dashboardUid instead.
|
|
20
45
|
*
|
|
21
46
|
* @deprecated Use dashboardUid instead.
|
|
22
47
|
*/
|
|
@@ -63,7 +88,7 @@ export declare class Annotation extends pulumi.CustomResource {
|
|
|
63
88
|
*/
|
|
64
89
|
export interface AnnotationState {
|
|
65
90
|
/**
|
|
66
|
-
* The ID of the dashboard on which to create the annotation. Deprecated: Use
|
|
91
|
+
* The ID of the dashboard on which to create the annotation. Deprecated: Use dashboardUid instead.
|
|
67
92
|
*
|
|
68
93
|
* @deprecated Use dashboardUid instead.
|
|
69
94
|
*/
|
|
@@ -102,7 +127,7 @@ export interface AnnotationState {
|
|
|
102
127
|
*/
|
|
103
128
|
export interface AnnotationArgs {
|
|
104
129
|
/**
|
|
105
|
-
* The ID of the dashboard on which to create the annotation. Deprecated: Use
|
|
130
|
+
* The ID of the dashboard on which to create the annotation. Deprecated: Use dashboardUid instead.
|
|
106
131
|
*
|
|
107
132
|
* @deprecated Use dashboardUid instead.
|
|
108
133
|
*/
|
package/annotation.js
CHANGED
|
@@ -5,6 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Annotation = 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/build-dashboards/annotate-visualizations/)
|
|
10
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/annotations/)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const test = new grafana.Annotation("test", {text: "basic text"});
|
|
20
|
+
* ```
|
|
21
|
+
* <!--End PulumiCodeChooser -->
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import grafana:index/annotation:Annotation name "{{ id }}"
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import grafana:index/annotation:Annotation name "{{ orgID }}:{{ id }}"
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
8
33
|
class Annotation extends pulumi.CustomResource {
|
|
9
34
|
/**
|
|
10
35
|
* Get an existing Annotation resource's state with the given name, ID, and optional extra
|
package/annotation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.js","sourceRoot":"","sources":["../annotation.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;IA6CD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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AK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApGL,gCAqGC;AAvFG,gBAAgB;AACO,uBAAY,GAAG,qCAAqC,CAAC"}
|
package/apiKey.d.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* <!--Start PulumiCodeChooser -->
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
9
|
+
*
|
|
10
|
+
* const foo = new grafana.ApiKey("foo", {role: "Viewer"});
|
|
11
|
+
* const bar = new grafana.ApiKey("bar", {
|
|
12
|
+
* role: "Admin",
|
|
13
|
+
* secondsToLive: 30,
|
|
14
|
+
* });
|
|
15
|
+
* export const apiKeyFooKeyOnly = foo.key;
|
|
16
|
+
* export const apiKeyBar = bar;
|
|
17
|
+
* ```
|
|
18
|
+
* <!--End PulumiCodeChooser -->
|
|
19
|
+
*/
|
|
2
20
|
export declare class ApiKey extends pulumi.CustomResource {
|
|
3
21
|
/**
|
|
4
22
|
* Get an existing ApiKey resource's state with the given name, ID, and optional extra
|
package/apiKey.js
CHANGED
|
@@ -5,6 +5,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ApiKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
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 foo = new grafana.ApiKey("foo", {role: "Viewer"});
|
|
17
|
+
* const bar = new grafana.ApiKey("bar", {
|
|
18
|
+
* role: "Admin",
|
|
19
|
+
* secondsToLive: 30,
|
|
20
|
+
* });
|
|
21
|
+
* export const apiKeyFooKeyOnly = foo.key;
|
|
22
|
+
* export const apiKeyBar = bar;
|
|
23
|
+
* ```
|
|
24
|
+
* <!--End PulumiCodeChooser -->
|
|
25
|
+
*/
|
|
8
26
|
class ApiKey extends pulumi.CustomResource {
|
|
9
27
|
/**
|
|
10
28
|
* Get an existing ApiKey resource's state with the given name, ID, and optional extra
|
package/apiKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAoBD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,KAA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AS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAzEL,wBA0EC;AA5DG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
|
package/cloudAccessPolicy.d.ts
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
6
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-an-access-policy)
|
|
7
|
+
*
|
|
8
|
+
* Required access policy scopes:
|
|
9
|
+
*
|
|
10
|
+
* * accesspolicies:read
|
|
11
|
+
* * accesspolicies:write
|
|
12
|
+
* * accesspolicies:delete
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as grafana from "@pulumi/grafana";
|
|
20
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
21
|
+
*
|
|
22
|
+
* const current = grafana.getCloudOrganization({
|
|
23
|
+
* slug: "<your org slug>",
|
|
24
|
+
* });
|
|
25
|
+
* const testCloudAccessPolicy = new grafana.CloudAccessPolicy("testCloudAccessPolicy", {
|
|
26
|
+
* region: "us",
|
|
27
|
+
* displayName: "My Policy",
|
|
28
|
+
* scopes: [
|
|
29
|
+
* "metrics:read",
|
|
30
|
+
* "logs:read",
|
|
31
|
+
* ],
|
|
32
|
+
* realms: [{
|
|
33
|
+
* type: "org",
|
|
34
|
+
* identifier: current.then(current => current.id),
|
|
35
|
+
* labelPolicies: [{
|
|
36
|
+
* selector: "{namespace=\"default\"}",
|
|
37
|
+
* }],
|
|
38
|
+
* }],
|
|
39
|
+
* });
|
|
40
|
+
* const testCloudAccessPolicyToken = new grafana.CloudAccessPolicyToken("testCloudAccessPolicyToken", {
|
|
41
|
+
* region: "us",
|
|
42
|
+
* accessPolicyId: testCloudAccessPolicy.policyId,
|
|
43
|
+
* displayName: "My Policy Token",
|
|
44
|
+
* expiresAt: "2023-01-01T00:00:00Z",
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
* <!--End PulumiCodeChooser -->
|
|
48
|
+
*
|
|
49
|
+
* ## Import
|
|
50
|
+
*
|
|
51
|
+
* ```sh
|
|
52
|
+
* $ pulumi import grafana:index/cloudAccessPolicy:CloudAccessPolicy name "{{ region }}:{{ policyId }}"
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
4
55
|
export declare class CloudAccessPolicy extends pulumi.CustomResource {
|
|
5
56
|
/**
|
|
6
57
|
* Get an existing CloudAccessPolicy resource's state with the given name, ID, and optional extra
|
|
@@ -35,14 +86,11 @@ export declare class CloudAccessPolicy extends pulumi.CustomResource {
|
|
|
35
86
|
readonly policyId: pulumi.Output<string>;
|
|
36
87
|
readonly realms: pulumi.Output<outputs.CloudAccessPolicyRealm[]>;
|
|
37
88
|
/**
|
|
38
|
-
* Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of
|
|
39
|
-
* available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
89
|
+
* Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
40
90
|
*/
|
|
41
91
|
readonly region: pulumi.Output<string>;
|
|
42
92
|
/**
|
|
43
|
-
* Scopes of the access policy. See
|
|
44
|
-
* https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for
|
|
45
|
-
* possible values.
|
|
93
|
+
* Scopes of the access policy. See https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
|
|
46
94
|
*/
|
|
47
95
|
readonly scopes: pulumi.Output<string[]>;
|
|
48
96
|
/**
|
|
@@ -80,14 +128,11 @@ export interface CloudAccessPolicyState {
|
|
|
80
128
|
policyId?: pulumi.Input<string>;
|
|
81
129
|
realms?: pulumi.Input<pulumi.Input<inputs.CloudAccessPolicyRealm>[]>;
|
|
82
130
|
/**
|
|
83
|
-
* Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of
|
|
84
|
-
* available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
131
|
+
* Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
85
132
|
*/
|
|
86
133
|
region?: pulumi.Input<string>;
|
|
87
134
|
/**
|
|
88
|
-
* Scopes of the access policy. See
|
|
89
|
-
* https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for
|
|
90
|
-
* possible values.
|
|
135
|
+
* Scopes of the access policy. See https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
|
|
91
136
|
*/
|
|
92
137
|
scopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
93
138
|
/**
|
|
@@ -109,14 +154,11 @@ export interface CloudAccessPolicyArgs {
|
|
|
109
154
|
name?: pulumi.Input<string>;
|
|
110
155
|
realms: pulumi.Input<pulumi.Input<inputs.CloudAccessPolicyRealm>[]>;
|
|
111
156
|
/**
|
|
112
|
-
* Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of
|
|
113
|
-
* available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
157
|
+
* Region where the API is deployed. Generally where the stack is deployed. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
114
158
|
*/
|
|
115
159
|
region: pulumi.Input<string>;
|
|
116
160
|
/**
|
|
117
|
-
* Scopes of the access policy. See
|
|
118
|
-
* https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for
|
|
119
|
-
* possible values.
|
|
161
|
+
* Scopes of the access policy. See https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/#scopes for possible values.
|
|
120
162
|
*/
|
|
121
163
|
scopes: pulumi.Input<pulumi.Input<string>[]>;
|
|
122
164
|
}
|
package/cloudAccessPolicy.js
CHANGED
|
@@ -5,6 +5,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.CloudAccessPolicy = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
10
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-an-access-policy)
|
|
11
|
+
*
|
|
12
|
+
* Required access policy scopes:
|
|
13
|
+
*
|
|
14
|
+
* * accesspolicies:read
|
|
15
|
+
* * accesspolicies:write
|
|
16
|
+
* * accesspolicies:delete
|
|
17
|
+
*
|
|
18
|
+
* ## Example Usage
|
|
19
|
+
*
|
|
20
|
+
* <!--Start PulumiCodeChooser -->
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as grafana from "@pulumi/grafana";
|
|
24
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
25
|
+
*
|
|
26
|
+
* const current = grafana.getCloudOrganization({
|
|
27
|
+
* slug: "<your org slug>",
|
|
28
|
+
* });
|
|
29
|
+
* const testCloudAccessPolicy = new grafana.CloudAccessPolicy("testCloudAccessPolicy", {
|
|
30
|
+
* region: "us",
|
|
31
|
+
* displayName: "My Policy",
|
|
32
|
+
* scopes: [
|
|
33
|
+
* "metrics:read",
|
|
34
|
+
* "logs:read",
|
|
35
|
+
* ],
|
|
36
|
+
* realms: [{
|
|
37
|
+
* type: "org",
|
|
38
|
+
* identifier: current.then(current => current.id),
|
|
39
|
+
* labelPolicies: [{
|
|
40
|
+
* selector: "{namespace=\"default\"}",
|
|
41
|
+
* }],
|
|
42
|
+
* }],
|
|
43
|
+
* });
|
|
44
|
+
* const testCloudAccessPolicyToken = new grafana.CloudAccessPolicyToken("testCloudAccessPolicyToken", {
|
|
45
|
+
* region: "us",
|
|
46
|
+
* accessPolicyId: testCloudAccessPolicy.policyId,
|
|
47
|
+
* displayName: "My Policy Token",
|
|
48
|
+
* expiresAt: "2023-01-01T00:00:00Z",
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
* <!--End PulumiCodeChooser -->
|
|
52
|
+
*
|
|
53
|
+
* ## Import
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import grafana:index/cloudAccessPolicy:CloudAccessPolicy name "{{ region }}:{{ policyId }}"
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
8
59
|
class CloudAccessPolicy extends pulumi.CustomResource {
|
|
9
60
|
/**
|
|
10
61
|
* Get an existing CloudAccessPolicy resource's state with the given name, ID, and optional extra
|
package/cloudAccessPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudAccessPolicy.js","sourceRoot":"","sources":["../cloudAccessPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;
|
|
1
|
+
{"version":3,"file":"cloudAccessPolicy.js","sourceRoot":"","sources":["../cloudAccessPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;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AM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AArGL,8CAsGC;AAxFG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
4
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-a-token)
|
|
5
|
+
*
|
|
6
|
+
* Required access policy scopes:
|
|
7
|
+
*
|
|
8
|
+
* * accesspolicies:read
|
|
9
|
+
* * accesspolicies:write
|
|
10
|
+
* * accesspolicies:delete
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as grafana from "@pulumi/grafana";
|
|
18
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
19
|
+
*
|
|
20
|
+
* const current = grafana.getCloudOrganization({
|
|
21
|
+
* slug: "<your org slug>",
|
|
22
|
+
* });
|
|
23
|
+
* const testCloudAccessPolicy = new grafana.CloudAccessPolicy("testCloudAccessPolicy", {
|
|
24
|
+
* region: "us",
|
|
25
|
+
* displayName: "My Policy",
|
|
26
|
+
* scopes: [
|
|
27
|
+
* "metrics:read",
|
|
28
|
+
* "logs:read",
|
|
29
|
+
* ],
|
|
30
|
+
* realms: [{
|
|
31
|
+
* type: "org",
|
|
32
|
+
* identifier: current.then(current => current.id),
|
|
33
|
+
* labelPolicies: [{
|
|
34
|
+
* selector: "{namespace=\"default\"}",
|
|
35
|
+
* }],
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* const testCloudAccessPolicyToken = new grafana.CloudAccessPolicyToken("testCloudAccessPolicyToken", {
|
|
39
|
+
* region: "us",
|
|
40
|
+
* accessPolicyId: testCloudAccessPolicy.policyId,
|
|
41
|
+
* displayName: "My Policy Token",
|
|
42
|
+
* expiresAt: "2023-01-01T00:00:00Z",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
* <!--End PulumiCodeChooser -->
|
|
46
|
+
*
|
|
47
|
+
* ## Import
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import grafana:index/cloudAccessPolicyToken:CloudAccessPolicyToken name "{{ region }}:{{ tokenId }}"
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
2
53
|
export declare class CloudAccessPolicyToken extends pulumi.CustomResource {
|
|
3
54
|
/**
|
|
4
55
|
* Get an existing CloudAccessPolicyToken resource's state with the given name, ID, and optional extra
|
|
@@ -36,9 +87,7 @@ export declare class CloudAccessPolicyToken extends pulumi.CustomResource {
|
|
|
36
87
|
*/
|
|
37
88
|
readonly name: pulumi.Output<string>;
|
|
38
89
|
/**
|
|
39
|
-
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the
|
|
40
|
-
* list of available regions:
|
|
41
|
-
* https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
90
|
+
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
42
91
|
*/
|
|
43
92
|
readonly region: pulumi.Output<string>;
|
|
44
93
|
readonly token: pulumi.Output<string>;
|
|
@@ -80,9 +129,7 @@ export interface CloudAccessPolicyTokenState {
|
|
|
80
129
|
*/
|
|
81
130
|
name?: pulumi.Input<string>;
|
|
82
131
|
/**
|
|
83
|
-
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the
|
|
84
|
-
* list of available regions:
|
|
85
|
-
* https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
132
|
+
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
86
133
|
*/
|
|
87
134
|
region?: pulumi.Input<string>;
|
|
88
135
|
token?: pulumi.Input<string>;
|
|
@@ -112,9 +159,7 @@ export interface CloudAccessPolicyTokenArgs {
|
|
|
112
159
|
*/
|
|
113
160
|
name?: pulumi.Input<string>;
|
|
114
161
|
/**
|
|
115
|
-
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the
|
|
116
|
-
* list of available regions:
|
|
117
|
-
* https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
162
|
+
* Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
|
|
118
163
|
*/
|
|
119
164
|
region: pulumi.Input<string>;
|
|
120
165
|
}
|
|
@@ -5,6 +5,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.CloudAccessPolicyToken = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/)
|
|
10
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#create-a-token)
|
|
11
|
+
*
|
|
12
|
+
* Required access policy scopes:
|
|
13
|
+
*
|
|
14
|
+
* * accesspolicies:read
|
|
15
|
+
* * accesspolicies:write
|
|
16
|
+
* * accesspolicies:delete
|
|
17
|
+
*
|
|
18
|
+
* ## Example Usage
|
|
19
|
+
*
|
|
20
|
+
* <!--Start PulumiCodeChooser -->
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as grafana from "@pulumi/grafana";
|
|
24
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
25
|
+
*
|
|
26
|
+
* const current = grafana.getCloudOrganization({
|
|
27
|
+
* slug: "<your org slug>",
|
|
28
|
+
* });
|
|
29
|
+
* const testCloudAccessPolicy = new grafana.CloudAccessPolicy("testCloudAccessPolicy", {
|
|
30
|
+
* region: "us",
|
|
31
|
+
* displayName: "My Policy",
|
|
32
|
+
* scopes: [
|
|
33
|
+
* "metrics:read",
|
|
34
|
+
* "logs:read",
|
|
35
|
+
* ],
|
|
36
|
+
* realms: [{
|
|
37
|
+
* type: "org",
|
|
38
|
+
* identifier: current.then(current => current.id),
|
|
39
|
+
* labelPolicies: [{
|
|
40
|
+
* selector: "{namespace=\"default\"}",
|
|
41
|
+
* }],
|
|
42
|
+
* }],
|
|
43
|
+
* });
|
|
44
|
+
* const testCloudAccessPolicyToken = new grafana.CloudAccessPolicyToken("testCloudAccessPolicyToken", {
|
|
45
|
+
* region: "us",
|
|
46
|
+
* accessPolicyId: testCloudAccessPolicy.policyId,
|
|
47
|
+
* displayName: "My Policy Token",
|
|
48
|
+
* expiresAt: "2023-01-01T00:00:00Z",
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
* <!--End PulumiCodeChooser -->
|
|
52
|
+
*
|
|
53
|
+
* ## Import
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import grafana:index/cloudAccessPolicyToken:CloudAccessPolicyToken name "{{ region }}:{{ tokenId }}"
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
8
59
|
class CloudAccessPolicyToken extends pulumi.CustomResource {
|
|
9
60
|
/**
|
|
10
61
|
* Get an existing CloudAccessPolicyToken resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudAccessPolicyToken.js","sourceRoot":"","sources":["../cloudAccessPolicyToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;
|
|
1
|
+
{"version":3,"file":"cloudAccessPolicyToken.js","sourceRoot":"","sources":["../cloudAccessPolicyToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CA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S,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AApGL,wDAqGC;AAvFG,gBAAgB;AACO,mCAAY,GAAG,6DAA6D,CAAC"}
|
package/cloudApiKey.d.ts
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource is deprecated and will be removed in a future release. Please use grafana.CloudAccessPolicy instead.
|
|
4
|
+
*
|
|
5
|
+
* Manages a single API key on the Grafana Cloud portal (on the organization level)
|
|
6
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#api-keys)
|
|
7
|
+
*
|
|
8
|
+
* Required access policy scopes:
|
|
9
|
+
*
|
|
10
|
+
* * api-keys:read
|
|
11
|
+
* * api-keys:write
|
|
12
|
+
* * api-keys:delete
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
20
|
+
*
|
|
21
|
+
* const test = new grafana.CloudApiKey("test", {
|
|
22
|
+
* cloudOrgSlug: "myorg",
|
|
23
|
+
* role: "Admin",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
* <!--End PulumiCodeChooser -->
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import grafana:index/cloudApiKey:CloudApiKey name "{{ orgSlug }}:{{ apiKeyName }}"
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
2
34
|
export declare class CloudApiKey extends pulumi.CustomResource {
|
|
3
35
|
/**
|
|
4
36
|
* Get an existing CloudApiKey resource's state with the given name, ID, and optional extra
|
|
@@ -28,8 +60,7 @@ export declare class CloudApiKey extends pulumi.CustomResource {
|
|
|
28
60
|
*/
|
|
29
61
|
readonly name: pulumi.Output<string>;
|
|
30
62
|
/**
|
|
31
|
-
* Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See
|
|
32
|
-
* https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
|
|
63
|
+
* Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
|
|
33
64
|
*/
|
|
34
65
|
readonly role: pulumi.Output<string>;
|
|
35
66
|
/**
|
|
@@ -58,8 +89,7 @@ export interface CloudApiKeyState {
|
|
|
58
89
|
*/
|
|
59
90
|
name?: pulumi.Input<string>;
|
|
60
91
|
/**
|
|
61
|
-
* Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See
|
|
62
|
-
* https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
|
|
92
|
+
* Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
|
|
63
93
|
*/
|
|
64
94
|
role?: pulumi.Input<string>;
|
|
65
95
|
}
|
|
@@ -76,8 +106,7 @@ export interface CloudApiKeyArgs {
|
|
|
76
106
|
*/
|
|
77
107
|
name?: pulumi.Input<string>;
|
|
78
108
|
/**
|
|
79
|
-
* Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See
|
|
80
|
-
* https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
|
|
109
|
+
* Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
|
|
81
110
|
*/
|
|
82
111
|
role: pulumi.Input<string>;
|
|
83
112
|
}
|
package/cloudApiKey.js
CHANGED
|
@@ -5,6 +5,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.CloudApiKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource is deprecated and will be removed in a future release. Please use grafana.CloudAccessPolicy instead.
|
|
10
|
+
*
|
|
11
|
+
* Manages a single API key on the Grafana Cloud portal (on the organization level)
|
|
12
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#api-keys)
|
|
13
|
+
*
|
|
14
|
+
* Required access policy scopes:
|
|
15
|
+
*
|
|
16
|
+
* * api-keys:read
|
|
17
|
+
* * api-keys:write
|
|
18
|
+
* * api-keys:delete
|
|
19
|
+
*
|
|
20
|
+
* ## Example Usage
|
|
21
|
+
*
|
|
22
|
+
* <!--Start PulumiCodeChooser -->
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
26
|
+
*
|
|
27
|
+
* const test = new grafana.CloudApiKey("test", {
|
|
28
|
+
* cloudOrgSlug: "myorg",
|
|
29
|
+
* role: "Admin",
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
* <!--End PulumiCodeChooser -->
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import grafana:index/cloudApiKey:CloudApiKey name "{{ orgSlug }}:{{ apiKeyName }}"
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
8
40
|
class CloudApiKey extends pulumi.CustomResource {
|
|
9
41
|
/**
|
|
10
42
|
* Get an existing CloudApiKey resource's state with the given name, ID, and optional extra
|
package/cloudApiKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudApiKey.js","sourceRoot":"","sources":["../cloudApiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;
|
|
1
|
+
{"version":3,"file":"cloudApiKey.js","sourceRoot":"","sources":["../cloudApiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,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GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA/EL,kCAgFC;AAlEG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
package/cloudOrgMember.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages the membership of a user in an organization.
|
|
4
|
+
*
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import grafana:index/cloudOrgMember:CloudOrgMember name "{{ orgSlugOrID }}:{{ usernameOrID }}"
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
2
11
|
export declare class CloudOrgMember extends pulumi.CustomResource {
|
|
3
12
|
/**
|
|
4
13
|
* Get an existing CloudOrgMember resource's state with the given name, ID, and optional extra
|