1. Packages
  2. Grafana Cloud
  3. API Docs
  4. cloud
  5. PluginInstallation
Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse

grafana.cloud.PluginInstallation

Explore with Pulumi AI

Manages Grafana Cloud Plugin Installations.

Required access policy scopes:

  • stack-plugins:read
  • stack-plugins:write
  • stack-plugins:delete

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";

const test = new grafana.cloud.PluginInstallation("test", {
    stackSlug: "stackname",
    slug: "some-plugin",
    version: "1.2.3",
});
Copy
import pulumi
import pulumiverse_grafana as grafana

test = grafana.cloud.PluginInstallation("test",
    stack_slug="stackname",
    slug="some-plugin",
    version="1.2.3")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/cloud"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloud.NewPluginInstallation(ctx, "test", &cloud.PluginInstallationArgs{
			StackSlug: pulumi.String("stackname"),
			Slug:      pulumi.String("some-plugin"),
			Version:   pulumi.String("1.2.3"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;

return await Deployment.RunAsync(() => 
{
    var test = new Grafana.Cloud.PluginInstallation("test", new()
    {
        StackSlug = "stackname",
        Slug = "some-plugin",
        Version = "1.2.3",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.cloud.PluginInstallation;
import com.pulumi.grafana.cloud.PluginInstallationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new PluginInstallation("test", PluginInstallationArgs.builder()
            .stackSlug("stackname")
            .slug("some-plugin")
            .version("1.2.3")
            .build());

    }
}
Copy
resources:
  test:
    type: grafana:cloud:PluginInstallation
    properties:
      stackSlug: stackname
      slug: some-plugin
      version: 1.2.3
Copy

Create PluginInstallation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PluginInstallation(name: string, args: PluginInstallationArgs, opts?: CustomResourceOptions);
@overload
def PluginInstallation(resource_name: str,
                       args: PluginInstallationArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def PluginInstallation(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       slug: Optional[str] = None,
                       stack_slug: Optional[str] = None,
                       version: Optional[str] = None)
func NewPluginInstallation(ctx *Context, name string, args PluginInstallationArgs, opts ...ResourceOption) (*PluginInstallation, error)
public PluginInstallation(string name, PluginInstallationArgs args, CustomResourceOptions? opts = null)
public PluginInstallation(String name, PluginInstallationArgs args)
public PluginInstallation(String name, PluginInstallationArgs args, CustomResourceOptions options)
type: grafana:cloud:PluginInstallation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PluginInstallationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PluginInstallationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PluginInstallationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PluginInstallationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PluginInstallationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var pluginInstallationResource = new Grafana.Cloud.PluginInstallation("pluginInstallationResource", new()
{
    Slug = "string",
    StackSlug = "string",
    Version = "string",
});
Copy
example, err := cloud.NewPluginInstallation(ctx, "pluginInstallationResource", &cloud.PluginInstallationArgs{
	Slug:      pulumi.String("string"),
	StackSlug: pulumi.String("string"),
	Version:   pulumi.String("string"),
})
Copy
var pluginInstallationResource = new PluginInstallation("pluginInstallationResource", PluginInstallationArgs.builder()
    .slug("string")
    .stackSlug("string")
    .version("string")
    .build());
Copy
plugin_installation_resource = grafana.cloud.PluginInstallation("pluginInstallationResource",
    slug="string",
    stack_slug="string",
    version="string")
Copy
const pluginInstallationResource = new grafana.cloud.PluginInstallation("pluginInstallationResource", {
    slug: "string",
    stackSlug: "string",
    version: "string",
});
Copy
type: grafana:cloud:PluginInstallation
properties:
    slug: string
    stackSlug: string
    version: string
Copy

PluginInstallation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PluginInstallation resource accepts the following input properties:

Slug
This property is required.
Changes to this property will trigger replacement.
string
Slug of the plugin to be installed.
StackSlug
This property is required.
Changes to this property will trigger replacement.
string
The stack id to which the plugin should be installed.
Version
This property is required.
Changes to this property will trigger replacement.
string
Version of the plugin to be installed.
Slug
This property is required.
Changes to this property will trigger replacement.
string
Slug of the plugin to be installed.
StackSlug
This property is required.
Changes to this property will trigger replacement.
string
The stack id to which the plugin should be installed.
Version
This property is required.
Changes to this property will trigger replacement.
string
Version of the plugin to be installed.
slug
This property is required.
Changes to this property will trigger replacement.
String
Slug of the plugin to be installed.
stackSlug
This property is required.
Changes to this property will trigger replacement.
String
The stack id to which the plugin should be installed.
version
This property is required.
Changes to this property will trigger replacement.
String
Version of the plugin to be installed.
slug
This property is required.
Changes to this property will trigger replacement.
string
Slug of the plugin to be installed.
stackSlug
This property is required.
Changes to this property will trigger replacement.
string
The stack id to which the plugin should be installed.
version
This property is required.
Changes to this property will trigger replacement.
string
Version of the plugin to be installed.
slug
This property is required.
Changes to this property will trigger replacement.
str
Slug of the plugin to be installed.
stack_slug
This property is required.
Changes to this property will trigger replacement.
str
The stack id to which the plugin should be installed.
version
This property is required.
Changes to this property will trigger replacement.
str
Version of the plugin to be installed.
slug
This property is required.
Changes to this property will trigger replacement.
String
Slug of the plugin to be installed.
stackSlug
This property is required.
Changes to this property will trigger replacement.
String
The stack id to which the plugin should be installed.
version
This property is required.
Changes to this property will trigger replacement.
String
Version of the plugin to be installed.

Outputs

All input properties are implicitly available as output properties. Additionally, the PluginInstallation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing PluginInstallation Resource

Get an existing PluginInstallation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PluginInstallationState, opts?: CustomResourceOptions): PluginInstallation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        slug: Optional[str] = None,
        stack_slug: Optional[str] = None,
        version: Optional[str] = None) -> PluginInstallation
func GetPluginInstallation(ctx *Context, name string, id IDInput, state *PluginInstallationState, opts ...ResourceOption) (*PluginInstallation, error)
public static PluginInstallation Get(string name, Input<string> id, PluginInstallationState? state, CustomResourceOptions? opts = null)
public static PluginInstallation get(String name, Output<String> id, PluginInstallationState state, CustomResourceOptions options)
resources:  _:    type: grafana:cloud:PluginInstallation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Slug Changes to this property will trigger replacement. string
Slug of the plugin to be installed.
StackSlug Changes to this property will trigger replacement. string
The stack id to which the plugin should be installed.
Version Changes to this property will trigger replacement. string
Version of the plugin to be installed.
Slug Changes to this property will trigger replacement. string
Slug of the plugin to be installed.
StackSlug Changes to this property will trigger replacement. string
The stack id to which the plugin should be installed.
Version Changes to this property will trigger replacement. string
Version of the plugin to be installed.
slug Changes to this property will trigger replacement. String
Slug of the plugin to be installed.
stackSlug Changes to this property will trigger replacement. String
The stack id to which the plugin should be installed.
version Changes to this property will trigger replacement. String
Version of the plugin to be installed.
slug Changes to this property will trigger replacement. string
Slug of the plugin to be installed.
stackSlug Changes to this property will trigger replacement. string
The stack id to which the plugin should be installed.
version Changes to this property will trigger replacement. string
Version of the plugin to be installed.
slug Changes to this property will trigger replacement. str
Slug of the plugin to be installed.
stack_slug Changes to this property will trigger replacement. str
The stack id to which the plugin should be installed.
version Changes to this property will trigger replacement. str
Version of the plugin to be installed.
slug Changes to this property will trigger replacement. String
Slug of the plugin to be installed.
stackSlug Changes to this property will trigger replacement. String
The stack id to which the plugin should be installed.
version Changes to this property will trigger replacement. String
Version of the plugin to be installed.

Import

$ pulumi import grafana:cloud/pluginInstallation:PluginInstallation name "{{ stackSlug }}:{{ pluginSlug }}"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
grafana pulumiverse/pulumi-grafana
License
Apache-2.0
Notes
This Pulumi package is based on the grafana Terraform Provider.