tencentcloud.MonitorGrafanaDnsConfig
Explore with Pulumi AI
Provides a resource to create a monitor grafana_dns_config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const grafanaDnsConfig = new tencentcloud.MonitorGrafanaDnsConfig("grafanaDnsConfig", {
instanceId: "grafana-dp2hnnfa",
nameServers: [
"10.1.2.1",
"10.1.2.2",
"10.1.2.3",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
grafana_dns_config = tencentcloud.MonitorGrafanaDnsConfig("grafanaDnsConfig",
instance_id="grafana-dp2hnnfa",
name_servers=[
"10.1.2.1",
"10.1.2.2",
"10.1.2.3",
])
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.NewMonitorGrafanaDnsConfig(ctx, "grafanaDnsConfig", &tencentcloud.MonitorGrafanaDnsConfigArgs{
InstanceId: pulumi.String("grafana-dp2hnnfa"),
NameServers: pulumi.StringArray{
pulumi.String("10.1.2.1"),
pulumi.String("10.1.2.2"),
pulumi.String("10.1.2.3"),
},
})
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 grafanaDnsConfig = new Tencentcloud.MonitorGrafanaDnsConfig("grafanaDnsConfig", new()
{
InstanceId = "grafana-dp2hnnfa",
NameServers = new[]
{
"10.1.2.1",
"10.1.2.2",
"10.1.2.3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MonitorGrafanaDnsConfig;
import com.pulumi.tencentcloud.MonitorGrafanaDnsConfigArgs;
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 grafanaDnsConfig = new MonitorGrafanaDnsConfig("grafanaDnsConfig", MonitorGrafanaDnsConfigArgs.builder()
.instanceId("grafana-dp2hnnfa")
.nameServers(
"10.1.2.1",
"10.1.2.2",
"10.1.2.3")
.build());
}
}
resources:
grafanaDnsConfig:
type: tencentcloud:MonitorGrafanaDnsConfig
properties:
instanceId: grafana-dp2hnnfa
nameServers:
- 10.1.2.1
- 10.1.2.2
- 10.1.2.3
Create MonitorGrafanaDnsConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorGrafanaDnsConfig(name: string, args: MonitorGrafanaDnsConfigArgs, opts?: CustomResourceOptions);
@overload
def MonitorGrafanaDnsConfig(resource_name: str,
args: MonitorGrafanaDnsConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorGrafanaDnsConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
monitor_grafana_dns_config_id: Optional[str] = None,
name_servers: Optional[Sequence[str]] = None)
func NewMonitorGrafanaDnsConfig(ctx *Context, name string, args MonitorGrafanaDnsConfigArgs, opts ...ResourceOption) (*MonitorGrafanaDnsConfig, error)
public MonitorGrafanaDnsConfig(string name, MonitorGrafanaDnsConfigArgs args, CustomResourceOptions? opts = null)
public MonitorGrafanaDnsConfig(String name, MonitorGrafanaDnsConfigArgs args)
public MonitorGrafanaDnsConfig(String name, MonitorGrafanaDnsConfigArgs args, CustomResourceOptions options)
type: tencentcloud:MonitorGrafanaDnsConfig
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 MonitorGrafanaDnsConfigArgs
- 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 MonitorGrafanaDnsConfigArgs
- 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 MonitorGrafanaDnsConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorGrafanaDnsConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorGrafanaDnsConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MonitorGrafanaDnsConfig 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 MonitorGrafanaDnsConfig resource accepts the following input properties:
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringDns Config Id - ID of the resource.
- Name
Servers List<string> - DNS nameserver list.
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringDns Config Id - ID of the resource.
- Name
Servers []string - DNS nameserver list.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringDns Config Id - ID of the resource.
- name
Servers List<String> - DNS nameserver list.
- instance
Id string - Grafana instance ID.
- monitor
Grafana stringDns Config Id - ID of the resource.
- name
Servers string[] - DNS nameserver list.
- instance_
id str - Grafana instance ID.
- monitor_
grafana_ strdns_ config_ id - ID of the resource.
- name_
servers Sequence[str] - DNS nameserver list.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringDns Config Id - ID of the resource.
- name
Servers List<String> - DNS nameserver list.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorGrafanaDnsConfig 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 MonitorGrafanaDnsConfig Resource
Get an existing MonitorGrafanaDnsConfig 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?: MonitorGrafanaDnsConfigState, opts?: CustomResourceOptions): MonitorGrafanaDnsConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
monitor_grafana_dns_config_id: Optional[str] = None,
name_servers: Optional[Sequence[str]] = None) -> MonitorGrafanaDnsConfig
func GetMonitorGrafanaDnsConfig(ctx *Context, name string, id IDInput, state *MonitorGrafanaDnsConfigState, opts ...ResourceOption) (*MonitorGrafanaDnsConfig, error)
public static MonitorGrafanaDnsConfig Get(string name, Input<string> id, MonitorGrafanaDnsConfigState? state, CustomResourceOptions? opts = null)
public static MonitorGrafanaDnsConfig get(String name, Output<String> id, MonitorGrafanaDnsConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MonitorGrafanaDnsConfig 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.
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringDns Config Id - ID of the resource.
- Name
Servers List<string> - DNS nameserver list.
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringDns Config Id - ID of the resource.
- Name
Servers []string - DNS nameserver list.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringDns Config Id - ID of the resource.
- name
Servers List<String> - DNS nameserver list.
- instance
Id string - Grafana instance ID.
- monitor
Grafana stringDns Config Id - ID of the resource.
- name
Servers string[] - DNS nameserver list.
- instance_
id str - Grafana instance ID.
- monitor_
grafana_ strdns_ config_ id - ID of the resource.
- name_
servers Sequence[str] - DNS nameserver list.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringDns Config Id - ID of the resource.
- name
Servers List<String> - DNS nameserver list.
Import
monitor grafana_dns_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/monitorGrafanaDnsConfig:MonitorGrafanaDnsConfig grafana_dns_config 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.