Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const example = new edgecenter.RmonCheckDns("example", {
name: "dns-example",
enabled: true,
place: "country",
entities: [
1,
2,
],
ip: "example.com",
resolver: "8.8.8.8",
recordType: "a",
});
import pulumi
import pulumi_edgecenter as edgecenter
example = edgecenter.RmonCheckDns("example",
name="dns-example",
enabled=True,
place="country",
entities=[
1,
2,
],
ip="example.com",
resolver="8.8.8.8",
record_type="a")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgecenter.NewRmonCheckDns(ctx, "example", &edgecenter.RmonCheckDnsArgs{
Name: pulumi.String("dns-example"),
Enabled: pulumi.Bool(true),
Place: pulumi.String("country"),
Entities: pulumi.Float64Array{
pulumi.Float64(1),
pulumi.Float64(2),
},
Ip: pulumi.String("example.com"),
Resolver: pulumi.String("8.8.8.8"),
RecordType: pulumi.String("a"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;
return await Deployment.RunAsync(() =>
{
var example = new Edgecenter.RmonCheckDns("example", new()
{
Name = "dns-example",
Enabled = true,
Place = "country",
Entities = new[]
{
1,
2,
},
Ip = "example.com",
Resolver = "8.8.8.8",
RecordType = "a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.RmonCheckDns;
import com.pulumi.edgecenter.RmonCheckDnsArgs;
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 example = new RmonCheckDns("example", RmonCheckDnsArgs.builder()
.name("dns-example")
.enabled(true)
.place("country")
.entities(
1.0,
2.0)
.ip("example.com")
.resolver("8.8.8.8")
.recordType("a")
.build());
}
}
resources:
example:
type: edgecenter:RmonCheckDns
properties:
name: dns-example
enabled: true
place: country
entities:
- 1
- 2
ip: example.com
resolver: 8.8.8.8
recordType: a
Create RmonCheckDns Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RmonCheckDns(name: string, args: RmonCheckDnsArgs, opts?: CustomResourceOptions);@overload
def RmonCheckDns(resource_name: str,
args: RmonCheckDnsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RmonCheckDns(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip: Optional[str] = None,
resolver: Optional[str] = None,
record_type: Optional[str] = None,
place: Optional[str] = None,
enabled: Optional[bool] = None,
entities: Optional[Sequence[float]] = None,
pd_channel_id: Optional[float] = None,
description: Optional[str] = None,
mm_channel_id: Optional[float] = None,
name: Optional[str] = None,
check_group: Optional[str] = None,
email_channel_id: Optional[float] = None,
port: Optional[float] = None,
interval: Optional[float] = None,
check_timeout: Optional[float] = None,
retries: Optional[float] = None,
rmon_check_dns_id: Optional[str] = None,
runbook: Optional[str] = None,
slack_channel_id: Optional[float] = None,
telegram_channel_id: Optional[float] = None)func NewRmonCheckDns(ctx *Context, name string, args RmonCheckDnsArgs, opts ...ResourceOption) (*RmonCheckDns, error)public RmonCheckDns(string name, RmonCheckDnsArgs args, CustomResourceOptions? opts = null)
public RmonCheckDns(String name, RmonCheckDnsArgs args)
public RmonCheckDns(String name, RmonCheckDnsArgs args, CustomResourceOptions options)
type: edgecenter:RmonCheckDns
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 RmonCheckDnsArgs
- 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 RmonCheckDnsArgs
- 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 RmonCheckDnsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RmonCheckDnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RmonCheckDnsArgs
- 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 rmonCheckDnsResource = new Edgecenter.RmonCheckDns("rmonCheckDnsResource", new()
{
Ip = "string",
Resolver = "string",
RecordType = "string",
Place = "string",
Enabled = false,
Entities = new[]
{
0,
},
PdChannelId = 0,
Description = "string",
MmChannelId = 0,
Name = "string",
CheckGroup = "string",
EmailChannelId = 0,
Port = 0,
Interval = 0,
CheckTimeout = 0,
Retries = 0,
RmonCheckDnsId = "string",
Runbook = "string",
SlackChannelId = 0,
TelegramChannelId = 0,
});
example, err := edgecenter.NewRmonCheckDns(ctx, "rmonCheckDnsResource", &edgecenter.RmonCheckDnsArgs{
Ip: pulumi.String("string"),
Resolver: pulumi.String("string"),
RecordType: pulumi.String("string"),
Place: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Entities: pulumi.Float64Array{
pulumi.Float64(0),
},
PdChannelId: pulumi.Float64(0),
Description: pulumi.String("string"),
MmChannelId: pulumi.Float64(0),
Name: pulumi.String("string"),
CheckGroup: pulumi.String("string"),
EmailChannelId: pulumi.Float64(0),
Port: pulumi.Float64(0),
Interval: pulumi.Float64(0),
CheckTimeout: pulumi.Float64(0),
Retries: pulumi.Float64(0),
RmonCheckDnsId: pulumi.String("string"),
Runbook: pulumi.String("string"),
SlackChannelId: pulumi.Float64(0),
TelegramChannelId: pulumi.Float64(0),
})
var rmonCheckDnsResource = new RmonCheckDns("rmonCheckDnsResource", RmonCheckDnsArgs.builder()
.ip("string")
.resolver("string")
.recordType("string")
.place("string")
.enabled(false)
.entities(0.0)
.pdChannelId(0.0)
.description("string")
.mmChannelId(0.0)
.name("string")
.checkGroup("string")
.emailChannelId(0.0)
.port(0.0)
.interval(0.0)
.checkTimeout(0.0)
.retries(0.0)
.rmonCheckDnsId("string")
.runbook("string")
.slackChannelId(0.0)
.telegramChannelId(0.0)
.build());
rmon_check_dns_resource = edgecenter.RmonCheckDns("rmonCheckDnsResource",
ip="string",
resolver="string",
record_type="string",
place="string",
enabled=False,
entities=[0],
pd_channel_id=0,
description="string",
mm_channel_id=0,
name="string",
check_group="string",
email_channel_id=0,
port=0,
interval=0,
check_timeout=0,
retries=0,
rmon_check_dns_id="string",
runbook="string",
slack_channel_id=0,
telegram_channel_id=0)
const rmonCheckDnsResource = new edgecenter.RmonCheckDns("rmonCheckDnsResource", {
ip: "string",
resolver: "string",
recordType: "string",
place: "string",
enabled: false,
entities: [0],
pdChannelId: 0,
description: "string",
mmChannelId: 0,
name: "string",
checkGroup: "string",
emailChannelId: 0,
port: 0,
interval: 0,
checkTimeout: 0,
retries: 0,
rmonCheckDnsId: "string",
runbook: "string",
slackChannelId: 0,
telegramChannelId: 0,
});
type: edgecenter:RmonCheckDns
properties:
checkGroup: string
checkTimeout: 0
description: string
emailChannelId: 0
enabled: false
entities:
- 0
interval: 0
ip: string
mmChannelId: 0
name: string
pdChannelId: 0
place: string
port: 0
recordType: string
resolver: string
retries: 0
rmonCheckDnsId: string
runbook: string
slackChannelId: 0
telegramChannelId: 0
RmonCheckDns 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 RmonCheckDns resource accepts the following input properties:
- Enabled bool
- Enabled state of the Check DNS.
- Entities List<double>
- List of entities where check must be created.
- Ip string
- IP address or domain name for check.
- Place string
- Place scope for Check DNS.
- Record
Type string - DNS record type.
- Resolver string
- DNS server where resolve DNS query.
- Check
Group string - Name of the check group for group DNS checks.
- Check
Timeout double - Answer timeout in seconds.
- Description string
- Description of the Check DNS.
- Email
Channel doubleId - Email channel ID (optional)
- Interval double
- Interval in seconds between checks.
- Mm
Channel doubleId - Mattermost channel ID for alerts.
- Name string
- Name of the Check DNS.
- Pd
Channel doubleId - PagerDuty channel ID for alerts.
- Port double
- DNS server port.
- Retries double
- Number of retries before check is marked down.
- Rmon
Check stringDns Id - The ID of this resource.
- Runbook string
- Runbook URL for alerts.
- Slack
Channel doubleId - Slack channel ID for alerts.
- Telegram
Channel doubleId - Telegram channel ID for alerts.
- Enabled bool
- Enabled state of the Check DNS.
- Entities []float64
- List of entities where check must be created.
- Ip string
- IP address or domain name for check.
- Place string
- Place scope for Check DNS.
- Record
Type string - DNS record type.
- Resolver string
- DNS server where resolve DNS query.
- Check
Group string - Name of the check group for group DNS checks.
- Check
Timeout float64 - Answer timeout in seconds.
- Description string
- Description of the Check DNS.
- Email
Channel float64Id - Email channel ID (optional)
- Interval float64
- Interval in seconds between checks.
- Mm
Channel float64Id - Mattermost channel ID for alerts.
- Name string
- Name of the Check DNS.
- Pd
Channel float64Id - PagerDuty channel ID for alerts.
- Port float64
- DNS server port.
- Retries float64
- Number of retries before check is marked down.
- Rmon
Check stringDns Id - The ID of this resource.
- Runbook string
- Runbook URL for alerts.
- Slack
Channel float64Id - Slack channel ID for alerts.
- Telegram
Channel float64Id - Telegram channel ID for alerts.
- enabled Boolean
- Enabled state of the Check DNS.
- entities List<Double>
- List of entities where check must be created.
- ip String
- IP address or domain name for check.
- place String
- Place scope for Check DNS.
- record
Type String - DNS record type.
- resolver String
- DNS server where resolve DNS query.
- check
Group String - Name of the check group for group DNS checks.
- check
Timeout Double - Answer timeout in seconds.
- description String
- Description of the Check DNS.
- email
Channel DoubleId - Email channel ID (optional)
- interval Double
- Interval in seconds between checks.
- mm
Channel DoubleId - Mattermost channel ID for alerts.
- name String
- Name of the Check DNS.
- pd
Channel DoubleId - PagerDuty channel ID for alerts.
- port Double
- DNS server port.
- retries Double
- Number of retries before check is marked down.
- rmon
Check StringDns Id - The ID of this resource.
- runbook String
- Runbook URL for alerts.
- slack
Channel DoubleId - Slack channel ID for alerts.
- telegram
Channel DoubleId - Telegram channel ID for alerts.
- enabled boolean
- Enabled state of the Check DNS.
- entities number[]
- List of entities where check must be created.
- ip string
- IP address or domain name for check.
- place string
- Place scope for Check DNS.
- record
Type string - DNS record type.
- resolver string
- DNS server where resolve DNS query.
- check
Group string - Name of the check group for group DNS checks.
- check
Timeout number - Answer timeout in seconds.
- description string
- Description of the Check DNS.
- email
Channel numberId - Email channel ID (optional)
- interval number
- Interval in seconds between checks.
- mm
Channel numberId - Mattermost channel ID for alerts.
- name string
- Name of the Check DNS.
- pd
Channel numberId - PagerDuty channel ID for alerts.
- port number
- DNS server port.
- retries number
- Number of retries before check is marked down.
- rmon
Check stringDns Id - The ID of this resource.
- runbook string
- Runbook URL for alerts.
- slack
Channel numberId - Slack channel ID for alerts.
- telegram
Channel numberId - Telegram channel ID for alerts.
- enabled bool
- Enabled state of the Check DNS.
- entities Sequence[float]
- List of entities where check must be created.
- ip str
- IP address or domain name for check.
- place str
- Place scope for Check DNS.
- record_
type str - DNS record type.
- resolver str
- DNS server where resolve DNS query.
- check_
group str - Name of the check group for group DNS checks.
- check_
timeout float - Answer timeout in seconds.
- description str
- Description of the Check DNS.
- email_
channel_ floatid - Email channel ID (optional)
- interval float
- Interval in seconds between checks.
- mm_
channel_ floatid - Mattermost channel ID for alerts.
- name str
- Name of the Check DNS.
- pd_
channel_ floatid - PagerDuty channel ID for alerts.
- port float
- DNS server port.
- retries float
- Number of retries before check is marked down.
- rmon_
check_ strdns_ id - The ID of this resource.
- runbook str
- Runbook URL for alerts.
- slack_
channel_ floatid - Slack channel ID for alerts.
- telegram_
channel_ floatid - Telegram channel ID for alerts.
- enabled Boolean
- Enabled state of the Check DNS.
- entities List<Number>
- List of entities where check must be created.
- ip String
- IP address or domain name for check.
- place String
- Place scope for Check DNS.
- record
Type String - DNS record type.
- resolver String
- DNS server where resolve DNS query.
- check
Group String - Name of the check group for group DNS checks.
- check
Timeout Number - Answer timeout in seconds.
- description String
- Description of the Check DNS.
- email
Channel NumberId - Email channel ID (optional)
- interval Number
- Interval in seconds between checks.
- mm
Channel NumberId - Mattermost channel ID for alerts.
- name String
- Name of the Check DNS.
- pd
Channel NumberId - PagerDuty channel ID for alerts.
- port Number
- DNS server port.
- retries Number
- Number of retries before check is marked down.
- rmon
Check StringDns Id - The ID of this resource.
- runbook String
- Runbook URL for alerts.
- slack
Channel NumberId - Slack channel ID for alerts.
- telegram
Channel NumberId - Telegram channel ID for alerts.
Outputs
All input properties are implicitly available as output properties. Additionally, the RmonCheckDns 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 RmonCheckDns Resource
Get an existing RmonCheckDns 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?: RmonCheckDnsState, opts?: CustomResourceOptions): RmonCheckDns@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
check_group: Optional[str] = None,
check_timeout: Optional[float] = None,
description: Optional[str] = None,
email_channel_id: Optional[float] = None,
enabled: Optional[bool] = None,
entities: Optional[Sequence[float]] = None,
interval: Optional[float] = None,
ip: Optional[str] = None,
mm_channel_id: Optional[float] = None,
name: Optional[str] = None,
pd_channel_id: Optional[float] = None,
place: Optional[str] = None,
port: Optional[float] = None,
record_type: Optional[str] = None,
resolver: Optional[str] = None,
retries: Optional[float] = None,
rmon_check_dns_id: Optional[str] = None,
runbook: Optional[str] = None,
slack_channel_id: Optional[float] = None,
telegram_channel_id: Optional[float] = None) -> RmonCheckDnsfunc GetRmonCheckDns(ctx *Context, name string, id IDInput, state *RmonCheckDnsState, opts ...ResourceOption) (*RmonCheckDns, error)public static RmonCheckDns Get(string name, Input<string> id, RmonCheckDnsState? state, CustomResourceOptions? opts = null)public static RmonCheckDns get(String name, Output<String> id, RmonCheckDnsState state, CustomResourceOptions options)resources: _: type: edgecenter:RmonCheckDns 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.
- Check
Group string - Name of the check group for group DNS checks.
- Check
Timeout double - Answer timeout in seconds.
- Description string
- Description of the Check DNS.
- Email
Channel doubleId - Email channel ID (optional)
- Enabled bool
- Enabled state of the Check DNS.
- Entities List<double>
- List of entities where check must be created.
- Interval double
- Interval in seconds between checks.
- Ip string
- IP address or domain name for check.
- Mm
Channel doubleId - Mattermost channel ID for alerts.
- Name string
- Name of the Check DNS.
- Pd
Channel doubleId - PagerDuty channel ID for alerts.
- Place string
- Place scope for Check DNS.
- Port double
- DNS server port.
- Record
Type string - DNS record type.
- Resolver string
- DNS server where resolve DNS query.
- Retries double
- Number of retries before check is marked down.
- Rmon
Check stringDns Id - The ID of this resource.
- Runbook string
- Runbook URL for alerts.
- Slack
Channel doubleId - Slack channel ID for alerts.
- Telegram
Channel doubleId - Telegram channel ID for alerts.
- Check
Group string - Name of the check group for group DNS checks.
- Check
Timeout float64 - Answer timeout in seconds.
- Description string
- Description of the Check DNS.
- Email
Channel float64Id - Email channel ID (optional)
- Enabled bool
- Enabled state of the Check DNS.
- Entities []float64
- List of entities where check must be created.
- Interval float64
- Interval in seconds between checks.
- Ip string
- IP address or domain name for check.
- Mm
Channel float64Id - Mattermost channel ID for alerts.
- Name string
- Name of the Check DNS.
- Pd
Channel float64Id - PagerDuty channel ID for alerts.
- Place string
- Place scope for Check DNS.
- Port float64
- DNS server port.
- Record
Type string - DNS record type.
- Resolver string
- DNS server where resolve DNS query.
- Retries float64
- Number of retries before check is marked down.
- Rmon
Check stringDns Id - The ID of this resource.
- Runbook string
- Runbook URL for alerts.
- Slack
Channel float64Id - Slack channel ID for alerts.
- Telegram
Channel float64Id - Telegram channel ID for alerts.
- check
Group String - Name of the check group for group DNS checks.
- check
Timeout Double - Answer timeout in seconds.
- description String
- Description of the Check DNS.
- email
Channel DoubleId - Email channel ID (optional)
- enabled Boolean
- Enabled state of the Check DNS.
- entities List<Double>
- List of entities where check must be created.
- interval Double
- Interval in seconds between checks.
- ip String
- IP address or domain name for check.
- mm
Channel DoubleId - Mattermost channel ID for alerts.
- name String
- Name of the Check DNS.
- pd
Channel DoubleId - PagerDuty channel ID for alerts.
- place String
- Place scope for Check DNS.
- port Double
- DNS server port.
- record
Type String - DNS record type.
- resolver String
- DNS server where resolve DNS query.
- retries Double
- Number of retries before check is marked down.
- rmon
Check StringDns Id - The ID of this resource.
- runbook String
- Runbook URL for alerts.
- slack
Channel DoubleId - Slack channel ID for alerts.
- telegram
Channel DoubleId - Telegram channel ID for alerts.
- check
Group string - Name of the check group for group DNS checks.
- check
Timeout number - Answer timeout in seconds.
- description string
- Description of the Check DNS.
- email
Channel numberId - Email channel ID (optional)
- enabled boolean
- Enabled state of the Check DNS.
- entities number[]
- List of entities where check must be created.
- interval number
- Interval in seconds between checks.
- ip string
- IP address or domain name for check.
- mm
Channel numberId - Mattermost channel ID for alerts.
- name string
- Name of the Check DNS.
- pd
Channel numberId - PagerDuty channel ID for alerts.
- place string
- Place scope for Check DNS.
- port number
- DNS server port.
- record
Type string - DNS record type.
- resolver string
- DNS server where resolve DNS query.
- retries number
- Number of retries before check is marked down.
- rmon
Check stringDns Id - The ID of this resource.
- runbook string
- Runbook URL for alerts.
- slack
Channel numberId - Slack channel ID for alerts.
- telegram
Channel numberId - Telegram channel ID for alerts.
- check_
group str - Name of the check group for group DNS checks.
- check_
timeout float - Answer timeout in seconds.
- description str
- Description of the Check DNS.
- email_
channel_ floatid - Email channel ID (optional)
- enabled bool
- Enabled state of the Check DNS.
- entities Sequence[float]
- List of entities where check must be created.
- interval float
- Interval in seconds between checks.
- ip str
- IP address or domain name for check.
- mm_
channel_ floatid - Mattermost channel ID for alerts.
- name str
- Name of the Check DNS.
- pd_
channel_ floatid - PagerDuty channel ID for alerts.
- place str
- Place scope for Check DNS.
- port float
- DNS server port.
- record_
type str - DNS record type.
- resolver str
- DNS server where resolve DNS query.
- retries float
- Number of retries before check is marked down.
- rmon_
check_ strdns_ id - The ID of this resource.
- runbook str
- Runbook URL for alerts.
- slack_
channel_ floatid - Slack channel ID for alerts.
- telegram_
channel_ floatid - Telegram channel ID for alerts.
- check
Group String - Name of the check group for group DNS checks.
- check
Timeout Number - Answer timeout in seconds.
- description String
- Description of the Check DNS.
- email
Channel NumberId - Email channel ID (optional)
- enabled Boolean
- Enabled state of the Check DNS.
- entities List<Number>
- List of entities where check must be created.
- interval Number
- Interval in seconds between checks.
- ip String
- IP address or domain name for check.
- mm
Channel NumberId - Mattermost channel ID for alerts.
- name String
- Name of the Check DNS.
- pd
Channel NumberId - PagerDuty channel ID for alerts.
- place String
- Place scope for Check DNS.
- port Number
- DNS server port.
- record
Type String - DNS record type.
- resolver String
- DNS server where resolve DNS query.
- retries Number
- Number of retries before check is marked down.
- rmon
Check StringDns Id - The ID of this resource.
- runbook String
- Runbook URL for alerts.
- slack
Channel NumberId - Slack channel ID for alerts.
- telegram
Channel NumberId - Telegram channel ID for alerts.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenterTerraform Provider.
