1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MonitorGrafanaVersionUpgrade
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.MonitorGrafanaVersionUpgrade

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a monitor grafana_version_upgrade

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const grafanaVersionUpgrade = new tencentcloud.MonitorGrafanaVersionUpgrade("grafanaVersionUpgrade", {
        alias: "v8.2.7",
        instanceId: "grafana-dp2hnnfa",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    grafana_version_upgrade = tencentcloud.MonitorGrafanaVersionUpgrade("grafanaVersionUpgrade",
        alias="v8.2.7",
        instance_id="grafana-dp2hnnfa")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewMonitorGrafanaVersionUpgrade(ctx, "grafanaVersionUpgrade", &tencentcloud.MonitorGrafanaVersionUpgradeArgs{
    			Alias:      pulumi.String("v8.2.7"),
    			InstanceId: pulumi.String("grafana-dp2hnnfa"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var grafanaVersionUpgrade = new Tencentcloud.MonitorGrafanaVersionUpgrade("grafanaVersionUpgrade", new()
        {
            Alias = "v8.2.7",
            InstanceId = "grafana-dp2hnnfa",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MonitorGrafanaVersionUpgrade;
    import com.pulumi.tencentcloud.MonitorGrafanaVersionUpgradeArgs;
    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 grafanaVersionUpgrade = new MonitorGrafanaVersionUpgrade("grafanaVersionUpgrade", MonitorGrafanaVersionUpgradeArgs.builder()
                .alias("v8.2.7")
                .instanceId("grafana-dp2hnnfa")
                .build());
    
        }
    }
    
    resources:
      grafanaVersionUpgrade:
        type: tencentcloud:MonitorGrafanaVersionUpgrade
        properties:
          alias: v8.2.7
          instanceId: grafana-dp2hnnfa
    

    Create MonitorGrafanaVersionUpgrade Resource

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

    Constructor syntax

    new MonitorGrafanaVersionUpgrade(name: string, args: MonitorGrafanaVersionUpgradeArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorGrafanaVersionUpgrade(resource_name: str,
                                     args: MonitorGrafanaVersionUpgradeArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorGrafanaVersionUpgrade(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     alias: Optional[str] = None,
                                     instance_id: Optional[str] = None,
                                     monitor_grafana_version_upgrade_id: Optional[str] = None)
    func NewMonitorGrafanaVersionUpgrade(ctx *Context, name string, args MonitorGrafanaVersionUpgradeArgs, opts ...ResourceOption) (*MonitorGrafanaVersionUpgrade, error)
    public MonitorGrafanaVersionUpgrade(string name, MonitorGrafanaVersionUpgradeArgs args, CustomResourceOptions? opts = null)
    public MonitorGrafanaVersionUpgrade(String name, MonitorGrafanaVersionUpgradeArgs args)
    public MonitorGrafanaVersionUpgrade(String name, MonitorGrafanaVersionUpgradeArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MonitorGrafanaVersionUpgrade
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MonitorGrafanaVersionUpgradeArgs
    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 MonitorGrafanaVersionUpgradeArgs
    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 MonitorGrafanaVersionUpgradeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorGrafanaVersionUpgradeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorGrafanaVersionUpgradeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MonitorGrafanaVersionUpgrade 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 MonitorGrafanaVersionUpgrade resource accepts the following input properties:

    Alias string
    Version alias.
    InstanceId string
    Grafana instance ID.
    MonitorGrafanaVersionUpgradeId string
    ID of the resource.
    Alias string
    Version alias.
    InstanceId string
    Grafana instance ID.
    MonitorGrafanaVersionUpgradeId string
    ID of the resource.
    alias String
    Version alias.
    instanceId String
    Grafana instance ID.
    monitorGrafanaVersionUpgradeId String
    ID of the resource.
    alias string
    Version alias.
    instanceId string
    Grafana instance ID.
    monitorGrafanaVersionUpgradeId string
    ID of the resource.
    alias str
    Version alias.
    instance_id str
    Grafana instance ID.
    monitor_grafana_version_upgrade_id str
    ID of the resource.
    alias String
    Version alias.
    instanceId String
    Grafana instance ID.
    monitorGrafanaVersionUpgradeId String
    ID of the resource.

    Outputs

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

    Get an existing MonitorGrafanaVersionUpgrade 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?: MonitorGrafanaVersionUpgradeState, opts?: CustomResourceOptions): MonitorGrafanaVersionUpgrade
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alias: Optional[str] = None,
            instance_id: Optional[str] = None,
            monitor_grafana_version_upgrade_id: Optional[str] = None) -> MonitorGrafanaVersionUpgrade
    func GetMonitorGrafanaVersionUpgrade(ctx *Context, name string, id IDInput, state *MonitorGrafanaVersionUpgradeState, opts ...ResourceOption) (*MonitorGrafanaVersionUpgrade, error)
    public static MonitorGrafanaVersionUpgrade Get(string name, Input<string> id, MonitorGrafanaVersionUpgradeState? state, CustomResourceOptions? opts = null)
    public static MonitorGrafanaVersionUpgrade get(String name, Output<String> id, MonitorGrafanaVersionUpgradeState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MonitorGrafanaVersionUpgrade    get:      id: ${id}
    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:
    Alias string
    Version alias.
    InstanceId string
    Grafana instance ID.
    MonitorGrafanaVersionUpgradeId string
    ID of the resource.
    Alias string
    Version alias.
    InstanceId string
    Grafana instance ID.
    MonitorGrafanaVersionUpgradeId string
    ID of the resource.
    alias String
    Version alias.
    instanceId String
    Grafana instance ID.
    monitorGrafanaVersionUpgradeId String
    ID of the resource.
    alias string
    Version alias.
    instanceId string
    Grafana instance ID.
    monitorGrafanaVersionUpgradeId string
    ID of the resource.
    alias str
    Version alias.
    instance_id str
    Grafana instance ID.
    monitor_grafana_version_upgrade_id str
    ID of the resource.
    alias String
    Version alias.
    instanceId String
    Grafana instance ID.
    monitorGrafanaVersionUpgradeId String
    ID of the resource.

    Import

    monitor grafana_version_upgrade can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/monitorGrafanaVersionUpgrade:MonitorGrafanaVersionUpgrade grafana_version_upgrade instance_id
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack