@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
package/cloudApiKey.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
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.CloudApiKey = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a single API key on the Grafana Cloud portal (on the organization level)
|
|
10
|
+
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#api-keys)
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
17
|
+
*
|
|
18
|
+
* const test = new grafana.CloudApiKey("test", {
|
|
19
|
+
* cloudOrgSlug: "myorg",
|
|
20
|
+
* role: "Admin",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import grafana:index/cloudApiKey:CloudApiKey resource_name "{{org-name}}-{{api_key_name}}"
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class CloudApiKey extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing CloudApiKey resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new CloudApiKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of CloudApiKey. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === CloudApiKey.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["cloudOrgSlug"] = state ? state.cloudOrgSlug : undefined;
|
|
59
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
60
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
61
|
+
resourceInputs["role"] = state ? state.role : undefined;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if ((!args || args.cloudOrgSlug === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'cloudOrgSlug'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.role === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'role'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["cloudOrgSlug"] = args ? args.cloudOrgSlug : undefined;
|
|
72
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
73
|
+
resourceInputs["role"] = args ? args.role : undefined;
|
|
74
|
+
resourceInputs["key"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
|
+
const secretOpts = { additionalSecretOutputs: ["key"] };
|
|
78
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
79
|
+
super(CloudApiKey.__pulumiType, name, resourceInputs, opts);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.CloudApiKey = CloudApiKey;
|
|
83
|
+
/** @internal */
|
|
84
|
+
CloudApiKey.__pulumiType = 'grafana:index/cloudApiKey:CloudApiKey';
|
|
85
|
+
//# sourceMappingURL=cloudApiKey.js.map
|
|
@@ -0,0 +1 @@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@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages Grafana Cloud Plugin Installations.
|
|
4
|
+
*
|
|
5
|
+
* * [Plugin Catalog](https://grafana.com/grafana/plugins/)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
12
|
+
*
|
|
13
|
+
* const test = new grafana.CloudPluginInstallation("test", {
|
|
14
|
+
* slug: "some-plugin",
|
|
15
|
+
* stackSlug: "stackname",
|
|
16
|
+
* version: "1.2.3",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import grafana:index/cloudPluginInstallation:CloudPluginInstallation plugin_name {{stack_slug}}_{{plugin_slug}}
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class CloudPluginInstallation extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing CloudPluginInstallation resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CloudPluginInstallationState, opts?: pulumi.CustomResourceOptions): CloudPluginInstallation;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of CloudPluginInstallation. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is CloudPluginInstallation;
|
|
42
|
+
/**
|
|
43
|
+
* Slug of the plugin to be installed.
|
|
44
|
+
*/
|
|
45
|
+
readonly slug: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The stack id to which the plugin should be installed.
|
|
48
|
+
*/
|
|
49
|
+
readonly stackSlug: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Version of the plugin to be installed.
|
|
52
|
+
*/
|
|
53
|
+
readonly version: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a CloudPluginInstallation resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: CloudPluginInstallationArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Input properties used for looking up and filtering CloudPluginInstallation resources.
|
|
65
|
+
*/
|
|
66
|
+
export interface CloudPluginInstallationState {
|
|
67
|
+
/**
|
|
68
|
+
* Slug of the plugin to be installed.
|
|
69
|
+
*/
|
|
70
|
+
slug?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The stack id to which the plugin should be installed.
|
|
73
|
+
*/
|
|
74
|
+
stackSlug?: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Version of the plugin to be installed.
|
|
77
|
+
*/
|
|
78
|
+
version?: pulumi.Input<string>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The set of arguments for constructing a CloudPluginInstallation resource.
|
|
82
|
+
*/
|
|
83
|
+
export interface CloudPluginInstallationArgs {
|
|
84
|
+
/**
|
|
85
|
+
* Slug of the plugin to be installed.
|
|
86
|
+
*/
|
|
87
|
+
slug: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The stack id to which the plugin should be installed.
|
|
90
|
+
*/
|
|
91
|
+
stackSlug: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Version of the plugin to be installed.
|
|
94
|
+
*/
|
|
95
|
+
version: pulumi.Input<string>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.CloudPluginInstallation = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages Grafana Cloud Plugin Installations.
|
|
10
|
+
*
|
|
11
|
+
* * [Plugin Catalog](https://grafana.com/grafana/plugins/)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
18
|
+
*
|
|
19
|
+
* const test = new grafana.CloudPluginInstallation("test", {
|
|
20
|
+
* slug: "some-plugin",
|
|
21
|
+
* stackSlug: "stackname",
|
|
22
|
+
* version: "1.2.3",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import grafana:index/cloudPluginInstallation:CloudPluginInstallation plugin_name {{stack_slug}}_{{plugin_slug}}
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class CloudPluginInstallation extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing CloudPluginInstallation resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new CloudPluginInstallation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of CloudPluginInstallation. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === CloudPluginInstallation.__pulumiType;
|
|
54
|
+
}
|
|
55
|
+
constructor(name, argsOrState, opts) {
|
|
56
|
+
let resourceInputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (opts.id) {
|
|
59
|
+
const state = argsOrState;
|
|
60
|
+
resourceInputs["slug"] = state ? state.slug : undefined;
|
|
61
|
+
resourceInputs["stackSlug"] = state ? state.stackSlug : undefined;
|
|
62
|
+
resourceInputs["version"] = state ? state.version : undefined;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const args = argsOrState;
|
|
66
|
+
if ((!args || args.slug === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'slug'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.stackSlug === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'stackSlug'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.version === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'version'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["slug"] = args ? args.slug : undefined;
|
|
76
|
+
resourceInputs["stackSlug"] = args ? args.stackSlug : undefined;
|
|
77
|
+
resourceInputs["version"] = args ? args.version : undefined;
|
|
78
|
+
}
|
|
79
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
super(CloudPluginInstallation.__pulumiType, name, resourceInputs, opts);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.CloudPluginInstallation = CloudPluginInstallation;
|
|
84
|
+
/** @internal */
|
|
85
|
+
CloudPluginInstallation.__pulumiType = 'grafana:index/cloudPluginInstallation:CloudPluginInstallation';
|
|
86
|
+
//# sourceMappingURL=cloudPluginInstallation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudPluginInstallation.js","sourceRoot":"","sources":["../cloudPluginInstallation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,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AAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AA1EL,0DA2EC;AA7DG,gBAAgB;AACO,oCAAY,GAAG,+DAA+D,CAAC"}
|
package/cloudStack.d.ts
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#stacks/)
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
10
|
+
*
|
|
11
|
+
* const test = new grafana.CloudStack("test", {
|
|
12
|
+
* description: "Test Grafana Cloud Stack",
|
|
13
|
+
* regionSlug: "eu",
|
|
14
|
+
* slug: "gcloudstacktest",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import grafana:index/cloudStack:CloudStack stack_name {{stack_id}} // import by numerical ID
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import grafana:index/cloudStack:CloudStack stack_name {{stack_slug}} // or import by slug
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class CloudStack extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing CloudStack resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CloudStackState, opts?: pulumi.CustomResourceOptions): CloudStack;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of CloudStack. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is CloudStack;
|
|
44
|
+
/**
|
|
45
|
+
* Name of the Alertmanager instance configured for this stack.
|
|
46
|
+
*/
|
|
47
|
+
readonly alertmanagerName: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Status of the Alertmanager instance configured for this stack.
|
|
50
|
+
*/
|
|
51
|
+
readonly alertmanagerStatus: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Base URL of the Alertmanager instance configured for this stack.
|
|
54
|
+
*/
|
|
55
|
+
readonly alertmanagerUrl: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* User ID of the Alertmanager instance configured for this stack.
|
|
58
|
+
*/
|
|
59
|
+
readonly alertmanagerUserId: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* Description of stack.
|
|
62
|
+
*/
|
|
63
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
64
|
+
readonly graphiteName: pulumi.Output<string>;
|
|
65
|
+
readonly graphiteStatus: pulumi.Output<string>;
|
|
66
|
+
readonly graphiteUrl: pulumi.Output<string>;
|
|
67
|
+
readonly graphiteUserId: pulumi.Output<number>;
|
|
68
|
+
readonly logsName: pulumi.Output<string>;
|
|
69
|
+
readonly logsStatus: pulumi.Output<string>;
|
|
70
|
+
readonly logsUrl: pulumi.Output<string>;
|
|
71
|
+
readonly logsUserId: pulumi.Output<number>;
|
|
72
|
+
/**
|
|
73
|
+
* Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”).
|
|
74
|
+
*/
|
|
75
|
+
readonly name: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Organization id to assign to this stack.
|
|
78
|
+
*/
|
|
79
|
+
readonly orgId: pulumi.Output<number>;
|
|
80
|
+
/**
|
|
81
|
+
* Organization name to assign to this stack.
|
|
82
|
+
*/
|
|
83
|
+
readonly orgName: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Organization slug to assign to this stack.
|
|
86
|
+
*/
|
|
87
|
+
readonly orgSlug: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Prometheus name for this instance.
|
|
90
|
+
*/
|
|
91
|
+
readonly prometheusName: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
|
|
94
|
+
*/
|
|
95
|
+
readonly prometheusRemoteEndpoint: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Use this URL to send prometheus metrics to Grafana cloud
|
|
98
|
+
*/
|
|
99
|
+
readonly prometheusRemoteWriteEndpoint: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Prometheus status for this instance.
|
|
102
|
+
*/
|
|
103
|
+
readonly prometheusStatus: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Prometheus url for this instance.
|
|
106
|
+
*/
|
|
107
|
+
readonly prometheusUrl: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Prometheus user ID. Used for e.g. remote_write.
|
|
110
|
+
*/
|
|
111
|
+
readonly prometheusUserId: pulumi.Output<number>;
|
|
112
|
+
/**
|
|
113
|
+
* Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. 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
|
+
*/
|
|
115
|
+
readonly regionSlug: pulumi.Output<string | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance
|
|
118
|
+
* available at “https://\n\n.grafana.net".
|
|
119
|
+
*/
|
|
120
|
+
readonly slug: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Status of the stack.
|
|
123
|
+
*/
|
|
124
|
+
readonly status: pulumi.Output<string>;
|
|
125
|
+
readonly tracesName: pulumi.Output<string>;
|
|
126
|
+
readonly tracesStatus: pulumi.Output<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL.
|
|
129
|
+
*/
|
|
130
|
+
readonly tracesUrl: pulumi.Output<string>;
|
|
131
|
+
readonly tracesUserId: pulumi.Output<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
|
|
134
|
+
*/
|
|
135
|
+
readonly url: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
|
|
138
|
+
*/
|
|
139
|
+
readonly waitForReadiness: pulumi.Output<boolean | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* How long to wait for readiness (if enabled). Defaults to `5m0s`.
|
|
142
|
+
*/
|
|
143
|
+
readonly waitForReadinessTimeout: pulumi.Output<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Create a CloudStack resource with the given unique name, arguments, and options.
|
|
146
|
+
*
|
|
147
|
+
* @param name The _unique_ name of the resource.
|
|
148
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
149
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
150
|
+
*/
|
|
151
|
+
constructor(name: string, args: CloudStackArgs, opts?: pulumi.CustomResourceOptions);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Input properties used for looking up and filtering CloudStack resources.
|
|
155
|
+
*/
|
|
156
|
+
export interface CloudStackState {
|
|
157
|
+
/**
|
|
158
|
+
* Name of the Alertmanager instance configured for this stack.
|
|
159
|
+
*/
|
|
160
|
+
alertmanagerName?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Status of the Alertmanager instance configured for this stack.
|
|
163
|
+
*/
|
|
164
|
+
alertmanagerStatus?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Base URL of the Alertmanager instance configured for this stack.
|
|
167
|
+
*/
|
|
168
|
+
alertmanagerUrl?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* User ID of the Alertmanager instance configured for this stack.
|
|
171
|
+
*/
|
|
172
|
+
alertmanagerUserId?: pulumi.Input<number>;
|
|
173
|
+
/**
|
|
174
|
+
* Description of stack.
|
|
175
|
+
*/
|
|
176
|
+
description?: pulumi.Input<string>;
|
|
177
|
+
graphiteName?: pulumi.Input<string>;
|
|
178
|
+
graphiteStatus?: pulumi.Input<string>;
|
|
179
|
+
graphiteUrl?: pulumi.Input<string>;
|
|
180
|
+
graphiteUserId?: pulumi.Input<number>;
|
|
181
|
+
logsName?: pulumi.Input<string>;
|
|
182
|
+
logsStatus?: pulumi.Input<string>;
|
|
183
|
+
logsUrl?: pulumi.Input<string>;
|
|
184
|
+
logsUserId?: pulumi.Input<number>;
|
|
185
|
+
/**
|
|
186
|
+
* Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”).
|
|
187
|
+
*/
|
|
188
|
+
name?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Organization id to assign to this stack.
|
|
191
|
+
*/
|
|
192
|
+
orgId?: pulumi.Input<number>;
|
|
193
|
+
/**
|
|
194
|
+
* Organization name to assign to this stack.
|
|
195
|
+
*/
|
|
196
|
+
orgName?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Organization slug to assign to this stack.
|
|
199
|
+
*/
|
|
200
|
+
orgSlug?: pulumi.Input<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Prometheus name for this instance.
|
|
203
|
+
*/
|
|
204
|
+
prometheusName?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
|
|
207
|
+
*/
|
|
208
|
+
prometheusRemoteEndpoint?: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* Use this URL to send prometheus metrics to Grafana cloud
|
|
211
|
+
*/
|
|
212
|
+
prometheusRemoteWriteEndpoint?: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* Prometheus status for this instance.
|
|
215
|
+
*/
|
|
216
|
+
prometheusStatus?: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* Prometheus url for this instance.
|
|
219
|
+
*/
|
|
220
|
+
prometheusUrl?: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* Prometheus user ID. Used for e.g. remote_write.
|
|
223
|
+
*/
|
|
224
|
+
prometheusUserId?: pulumi.Input<number>;
|
|
225
|
+
/**
|
|
226
|
+
* Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. 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.
|
|
227
|
+
*/
|
|
228
|
+
regionSlug?: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance
|
|
231
|
+
* available at “https://\n\n.grafana.net".
|
|
232
|
+
*/
|
|
233
|
+
slug?: pulumi.Input<string>;
|
|
234
|
+
/**
|
|
235
|
+
* Status of the stack.
|
|
236
|
+
*/
|
|
237
|
+
status?: pulumi.Input<string>;
|
|
238
|
+
tracesName?: pulumi.Input<string>;
|
|
239
|
+
tracesStatus?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL.
|
|
242
|
+
*/
|
|
243
|
+
tracesUrl?: pulumi.Input<string>;
|
|
244
|
+
tracesUserId?: pulumi.Input<number>;
|
|
245
|
+
/**
|
|
246
|
+
* Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
|
|
247
|
+
*/
|
|
248
|
+
url?: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
|
|
251
|
+
*/
|
|
252
|
+
waitForReadiness?: pulumi.Input<boolean>;
|
|
253
|
+
/**
|
|
254
|
+
* How long to wait for readiness (if enabled). Defaults to `5m0s`.
|
|
255
|
+
*/
|
|
256
|
+
waitForReadinessTimeout?: pulumi.Input<string>;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* The set of arguments for constructing a CloudStack resource.
|
|
260
|
+
*/
|
|
261
|
+
export interface CloudStackArgs {
|
|
262
|
+
/**
|
|
263
|
+
* Description of stack.
|
|
264
|
+
*/
|
|
265
|
+
description?: pulumi.Input<string>;
|
|
266
|
+
/**
|
|
267
|
+
* Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”).
|
|
268
|
+
*/
|
|
269
|
+
name?: pulumi.Input<string>;
|
|
270
|
+
/**
|
|
271
|
+
* Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. 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.
|
|
272
|
+
*/
|
|
273
|
+
regionSlug?: pulumi.Input<string>;
|
|
274
|
+
/**
|
|
275
|
+
* Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance
|
|
276
|
+
* available at “https://\n\n.grafana.net".
|
|
277
|
+
*/
|
|
278
|
+
slug: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
|
|
281
|
+
*/
|
|
282
|
+
url?: pulumi.Input<string>;
|
|
283
|
+
/**
|
|
284
|
+
* Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
|
|
285
|
+
*/
|
|
286
|
+
waitForReadiness?: pulumi.Input<boolean>;
|
|
287
|
+
/**
|
|
288
|
+
* How long to wait for readiness (if enabled). Defaults to `5m0s`.
|
|
289
|
+
*/
|
|
290
|
+
waitForReadinessTimeout?: pulumi.Input<string>;
|
|
291
|
+
}
|