1. Packages
  2. Grafana Cloud
  3. API Docs
  4. CloudPluginInstallation
Grafana v0.4.0 published on Tuesday, Mar 26, 2024 by pulumiverse

grafana.CloudPluginInstallation

Explore with Pulumi AI

grafana logo
Grafana v0.4.0 published on Tuesday, Mar 26, 2024 by pulumiverse

    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.CloudPluginInstallation("test", {
        slug: "some-plugin",
        stackSlug: "stackname",
        version: "1.2.3",
    });
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    test = grafana.CloudPluginInstallation("test",
        slug="some-plugin",
        stack_slug="stackname",
        version="1.2.3")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := grafana.NewCloudPluginInstallation(ctx, "test", &grafana.CloudPluginInstallationArgs{
    			Slug:      pulumi.String("some-plugin"),
    			StackSlug: pulumi.String("stackname"),
    			Version:   pulumi.String("1.2.3"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Grafana.CloudPluginInstallation("test", new()
        {
            Slug = "some-plugin",
            StackSlug = "stackname",
            Version = "1.2.3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.CloudPluginInstallation;
    import com.pulumi.grafana.CloudPluginInstallationArgs;
    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 CloudPluginInstallation("test", CloudPluginInstallationArgs.builder()        
                .slug("some-plugin")
                .stackSlug("stackname")
                .version("1.2.3")
                .build());
    
        }
    }
    
    resources:
      test:
        type: grafana:CloudPluginInstallation
        properties:
          slug: some-plugin
          stackSlug: stackname
          version: 1.2.3
    

    Create CloudPluginInstallation Resource

    new CloudPluginInstallation(name: string, args: CloudPluginInstallationArgs, opts?: CustomResourceOptions);
    @overload
    def CloudPluginInstallation(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                slug: Optional[str] = None,
                                stack_slug: Optional[str] = None,
                                version: Optional[str] = None)
    @overload
    def CloudPluginInstallation(resource_name: str,
                                args: CloudPluginInstallationArgs,
                                opts: Optional[ResourceOptions] = None)
    func NewCloudPluginInstallation(ctx *Context, name string, args CloudPluginInstallationArgs, opts ...ResourceOption) (*CloudPluginInstallation, error)
    public CloudPluginInstallation(string name, CloudPluginInstallationArgs args, CustomResourceOptions? opts = null)
    public CloudPluginInstallation(String name, CloudPluginInstallationArgs args)
    public CloudPluginInstallation(String name, CloudPluginInstallationArgs args, CustomResourceOptions options)
    
    type: grafana:CloudPluginInstallation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CloudPluginInstallationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CloudPluginInstallationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CloudPluginInstallationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudPluginInstallationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudPluginInstallationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CloudPluginInstallation Resource Properties

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

    Inputs

    The CloudPluginInstallation resource accepts the following input properties:

    Slug string
    Slug of the plugin to be installed.
    StackSlug string
    The stack id to which the plugin should be installed.
    Version string
    Version of the plugin to be installed.
    Slug string
    Slug of the plugin to be installed.
    StackSlug string
    The stack id to which the plugin should be installed.
    Version string
    Version of the plugin to be installed.
    slug String
    Slug of the plugin to be installed.
    stackSlug String
    The stack id to which the plugin should be installed.
    version String
    Version of the plugin to be installed.
    slug string
    Slug of the plugin to be installed.
    stackSlug string
    The stack id to which the plugin should be installed.
    version string
    Version of the plugin to be installed.
    slug str
    Slug of the plugin to be installed.
    stack_slug str
    The stack id to which the plugin should be installed.
    version str
    Version of the plugin to be installed.
    slug String
    Slug of the plugin to be installed.
    stackSlug String
    The stack id to which the plugin should be installed.
    version String
    Version of the plugin to be installed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudPluginInstallation 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 CloudPluginInstallation Resource

    Get an existing CloudPluginInstallation 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?: CloudPluginInstallationState, opts?: CustomResourceOptions): CloudPluginInstallation
    @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) -> CloudPluginInstallation
    func GetCloudPluginInstallation(ctx *Context, name string, id IDInput, state *CloudPluginInstallationState, opts ...ResourceOption) (*CloudPluginInstallation, error)
    public static CloudPluginInstallation Get(string name, Input<string> id, CloudPluginInstallationState? state, CustomResourceOptions? opts = null)
    public static CloudPluginInstallation get(String name, Output<String> id, CloudPluginInstallationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 string
    Slug of the plugin to be installed.
    StackSlug string
    The stack id to which the plugin should be installed.
    Version string
    Version of the plugin to be installed.
    Slug string
    Slug of the plugin to be installed.
    StackSlug string
    The stack id to which the plugin should be installed.
    Version string
    Version of the plugin to be installed.
    slug String
    Slug of the plugin to be installed.
    stackSlug String
    The stack id to which the plugin should be installed.
    version String
    Version of the plugin to be installed.
    slug string
    Slug of the plugin to be installed.
    stackSlug string
    The stack id to which the plugin should be installed.
    version string
    Version of the plugin to be installed.
    slug str
    Slug of the plugin to be installed.
    stack_slug str
    The stack id to which the plugin should be installed.
    version str
    Version of the plugin to be installed.
    slug String
    Slug of the plugin to be installed.
    stackSlug String
    The stack id to which the plugin should be installed.
    version String
    Version of the plugin to be installed.

    Import

    $ pulumi import grafana:index/cloudPluginInstallation:CloudPluginInstallation name "{{ stackSlug }}:{{ pluginSlug }}"
    

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.4.0 published on Tuesday, Mar 26, 2024 by pulumiverse