tencentcloud.MonitorGrafanaWhitelistConfig
Explore with Pulumi AI
Provides a resource to create a monitor grafana_whitelist_config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const grafanaWhitelistConfig = new tencentcloud.MonitorGrafanaWhitelistConfig("grafanaWhitelistConfig", {
instanceId: "grafana-dp2hnnfa",
whitelists: [
"10.1.1.1",
"10.1.1.2",
"10.1.1.3",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
grafana_whitelist_config = tencentcloud.MonitorGrafanaWhitelistConfig("grafanaWhitelistConfig",
instance_id="grafana-dp2hnnfa",
whitelists=[
"10.1.1.1",
"10.1.1.2",
"10.1.1.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.NewMonitorGrafanaWhitelistConfig(ctx, "grafanaWhitelistConfig", &tencentcloud.MonitorGrafanaWhitelistConfigArgs{
InstanceId: pulumi.String("grafana-dp2hnnfa"),
Whitelists: pulumi.StringArray{
pulumi.String("10.1.1.1"),
pulumi.String("10.1.1.2"),
pulumi.String("10.1.1.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 grafanaWhitelistConfig = new Tencentcloud.MonitorGrafanaWhitelistConfig("grafanaWhitelistConfig", new()
{
InstanceId = "grafana-dp2hnnfa",
Whitelists = new[]
{
"10.1.1.1",
"10.1.1.2",
"10.1.1.3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MonitorGrafanaWhitelistConfig;
import com.pulumi.tencentcloud.MonitorGrafanaWhitelistConfigArgs;
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 grafanaWhitelistConfig = new MonitorGrafanaWhitelistConfig("grafanaWhitelistConfig", MonitorGrafanaWhitelistConfigArgs.builder()
.instanceId("grafana-dp2hnnfa")
.whitelists(
"10.1.1.1",
"10.1.1.2",
"10.1.1.3")
.build());
}
}
resources:
grafanaWhitelistConfig:
type: tencentcloud:MonitorGrafanaWhitelistConfig
properties:
instanceId: grafana-dp2hnnfa
whitelists:
- 10.1.1.1
- 10.1.1.2
- 10.1.1.3
Create MonitorGrafanaWhitelistConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorGrafanaWhitelistConfig(name: string, args: MonitorGrafanaWhitelistConfigArgs, opts?: CustomResourceOptions);
@overload
def MonitorGrafanaWhitelistConfig(resource_name: str,
args: MonitorGrafanaWhitelistConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorGrafanaWhitelistConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
monitor_grafana_whitelist_config_id: Optional[str] = None,
whitelists: Optional[Sequence[str]] = None)
func NewMonitorGrafanaWhitelistConfig(ctx *Context, name string, args MonitorGrafanaWhitelistConfigArgs, opts ...ResourceOption) (*MonitorGrafanaWhitelistConfig, error)
public MonitorGrafanaWhitelistConfig(string name, MonitorGrafanaWhitelistConfigArgs args, CustomResourceOptions? opts = null)
public MonitorGrafanaWhitelistConfig(String name, MonitorGrafanaWhitelistConfigArgs args)
public MonitorGrafanaWhitelistConfig(String name, MonitorGrafanaWhitelistConfigArgs args, CustomResourceOptions options)
type: tencentcloud:MonitorGrafanaWhitelistConfig
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 MonitorGrafanaWhitelistConfigArgs
- 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 MonitorGrafanaWhitelistConfigArgs
- 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 MonitorGrafanaWhitelistConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorGrafanaWhitelistConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorGrafanaWhitelistConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MonitorGrafanaWhitelistConfig 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 MonitorGrafanaWhitelistConfig resource accepts the following input properties:
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringWhitelist Config Id - ID of the resource.
- Whitelists List<string>
- The addresses in the whitelist.
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringWhitelist Config Id - ID of the resource.
- Whitelists []string
- The addresses in the whitelist.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringWhitelist Config Id - ID of the resource.
- whitelists List<String>
- The addresses in the whitelist.
- instance
Id string - Grafana instance ID.
- monitor
Grafana stringWhitelist Config Id - ID of the resource.
- whitelists string[]
- The addresses in the whitelist.
- instance_
id str - Grafana instance ID.
- monitor_
grafana_ strwhitelist_ config_ id - ID of the resource.
- whitelists Sequence[str]
- The addresses in the whitelist.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringWhitelist Config Id - ID of the resource.
- whitelists List<String>
- The addresses in the whitelist.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorGrafanaWhitelistConfig 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 MonitorGrafanaWhitelistConfig Resource
Get an existing MonitorGrafanaWhitelistConfig 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?: MonitorGrafanaWhitelistConfigState, opts?: CustomResourceOptions): MonitorGrafanaWhitelistConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
monitor_grafana_whitelist_config_id: Optional[str] = None,
whitelists: Optional[Sequence[str]] = None) -> MonitorGrafanaWhitelistConfig
func GetMonitorGrafanaWhitelistConfig(ctx *Context, name string, id IDInput, state *MonitorGrafanaWhitelistConfigState, opts ...ResourceOption) (*MonitorGrafanaWhitelistConfig, error)
public static MonitorGrafanaWhitelistConfig Get(string name, Input<string> id, MonitorGrafanaWhitelistConfigState? state, CustomResourceOptions? opts = null)
public static MonitorGrafanaWhitelistConfig get(String name, Output<String> id, MonitorGrafanaWhitelistConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MonitorGrafanaWhitelistConfig 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 stringWhitelist Config Id - ID of the resource.
- Whitelists List<string>
- The addresses in the whitelist.
- Instance
Id string - Grafana instance ID.
- Monitor
Grafana stringWhitelist Config Id - ID of the resource.
- Whitelists []string
- The addresses in the whitelist.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringWhitelist Config Id - ID of the resource.
- whitelists List<String>
- The addresses in the whitelist.
- instance
Id string - Grafana instance ID.
- monitor
Grafana stringWhitelist Config Id - ID of the resource.
- whitelists string[]
- The addresses in the whitelist.
- instance_
id str - Grafana instance ID.
- monitor_
grafana_ strwhitelist_ config_ id - ID of the resource.
- whitelists Sequence[str]
- The addresses in the whitelist.
- instance
Id String - Grafana instance ID.
- monitor
Grafana StringWhitelist Config Id - ID of the resource.
- whitelists List<String>
- The addresses in the whitelist.
Import
monitor grafana_whitelist_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/monitorGrafanaWhitelistConfig:MonitorGrafanaWhitelistConfig grafana_whitelist_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.