Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const example = new edgecenter.RmonCheckPing("example", {
name: "ping-example",
enabled: true,
place: "country",
entities: [1],
ip: "1.1.1.1",
checkTimeout: 2,
});
import pulumi
import pulumi_edgecenter as edgecenter
example = edgecenter.RmonCheckPing("example",
name="ping-example",
enabled=True,
place="country",
entities=[1],
ip="1.1.1.1",
check_timeout=2)
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.NewRmonCheckPing(ctx, "example", &edgecenter.RmonCheckPingArgs{
Name: pulumi.String("ping-example"),
Enabled: pulumi.Bool(true),
Place: pulumi.String("country"),
Entities: pulumi.Float64Array{
pulumi.Float64(1),
},
Ip: pulumi.String("1.1.1.1"),
CheckTimeout: pulumi.Float64(2),
})
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.RmonCheckPing("example", new()
{
Name = "ping-example",
Enabled = true,
Place = "country",
Entities = new[]
{
1,
},
Ip = "1.1.1.1",
CheckTimeout = 2,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.RmonCheckPing;
import com.pulumi.edgecenter.RmonCheckPingArgs;
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 RmonCheckPing("example", RmonCheckPingArgs.builder()
.name("ping-example")
.enabled(true)
.place("country")
.entities(1.0)
.ip("1.1.1.1")
.checkTimeout(2.0)
.build());
}
}
resources:
example:
type: edgecenter:RmonCheckPing
properties:
name: ping-example
enabled: true
place: country
entities:
- 1
ip: 1.1.1.1
checkTimeout: 2
Create RmonCheckPing Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RmonCheckPing(name: string, args: RmonCheckPingArgs, opts?: CustomResourceOptions);@overload
def RmonCheckPing(resource_name: str,
args: RmonCheckPingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RmonCheckPing(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
check_timeout: Optional[float] = None,
place: Optional[str] = None,
ip: Optional[str] = None,
entities: Optional[Sequence[float]] = None,
email_channel_id: Optional[float] = None,
pd_channel_id: Optional[float] = None,
interval: Optional[float] = None,
description: Optional[str] = None,
mm_channel_id: Optional[float] = None,
name: Optional[str] = None,
packet_size: Optional[float] = None,
check_group: Optional[str] = None,
count_packets: Optional[float] = None,
retries: Optional[float] = None,
rmon_check_ping_id: Optional[str] = None,
runbook: Optional[str] = None,
slack_channel_id: Optional[float] = None,
telegram_channel_id: Optional[float] = None)func NewRmonCheckPing(ctx *Context, name string, args RmonCheckPingArgs, opts ...ResourceOption) (*RmonCheckPing, error)public RmonCheckPing(string name, RmonCheckPingArgs args, CustomResourceOptions? opts = null)
public RmonCheckPing(String name, RmonCheckPingArgs args)
public RmonCheckPing(String name, RmonCheckPingArgs args, CustomResourceOptions options)
type: edgecenter:RmonCheckPing
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 RmonCheckPingArgs
- 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 RmonCheckPingArgs
- 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 RmonCheckPingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RmonCheckPingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RmonCheckPingArgs
- 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 rmonCheckPingResource = new Edgecenter.RmonCheckPing("rmonCheckPingResource", new()
{
Enabled = false,
CheckTimeout = 0,
Place = "string",
Ip = "string",
Entities = new[]
{
0,
},
EmailChannelId = 0,
PdChannelId = 0,
Interval = 0,
Description = "string",
MmChannelId = 0,
Name = "string",
PacketSize = 0,
CheckGroup = "string",
CountPackets = 0,
Retries = 0,
RmonCheckPingId = "string",
Runbook = "string",
SlackChannelId = 0,
TelegramChannelId = 0,
});
example, err := edgecenter.NewRmonCheckPing(ctx, "rmonCheckPingResource", &edgecenter.RmonCheckPingArgs{
Enabled: pulumi.Bool(false),
CheckTimeout: pulumi.Float64(0),
Place: pulumi.String("string"),
Ip: pulumi.String("string"),
Entities: pulumi.Float64Array{
pulumi.Float64(0),
},
EmailChannelId: pulumi.Float64(0),
PdChannelId: pulumi.Float64(0),
Interval: pulumi.Float64(0),
Description: pulumi.String("string"),
MmChannelId: pulumi.Float64(0),
Name: pulumi.String("string"),
PacketSize: pulumi.Float64(0),
CheckGroup: pulumi.String("string"),
CountPackets: pulumi.Float64(0),
Retries: pulumi.Float64(0),
RmonCheckPingId: pulumi.String("string"),
Runbook: pulumi.String("string"),
SlackChannelId: pulumi.Float64(0),
TelegramChannelId: pulumi.Float64(0),
})
var rmonCheckPingResource = new RmonCheckPing("rmonCheckPingResource", RmonCheckPingArgs.builder()
.enabled(false)
.checkTimeout(0.0)
.place("string")
.ip("string")
.entities(0.0)
.emailChannelId(0.0)
.pdChannelId(0.0)
.interval(0.0)
.description("string")
.mmChannelId(0.0)
.name("string")
.packetSize(0.0)
.checkGroup("string")
.countPackets(0.0)
.retries(0.0)
.rmonCheckPingId("string")
.runbook("string")
.slackChannelId(0.0)
.telegramChannelId(0.0)
.build());
rmon_check_ping_resource = edgecenter.RmonCheckPing("rmonCheckPingResource",
enabled=False,
check_timeout=0,
place="string",
ip="string",
entities=[0],
email_channel_id=0,
pd_channel_id=0,
interval=0,
description="string",
mm_channel_id=0,
name="string",
packet_size=0,
check_group="string",
count_packets=0,
retries=0,
rmon_check_ping_id="string",
runbook="string",
slack_channel_id=0,
telegram_channel_id=0)
const rmonCheckPingResource = new edgecenter.RmonCheckPing("rmonCheckPingResource", {
enabled: false,
checkTimeout: 0,
place: "string",
ip: "string",
entities: [0],
emailChannelId: 0,
pdChannelId: 0,
interval: 0,
description: "string",
mmChannelId: 0,
name: "string",
packetSize: 0,
checkGroup: "string",
countPackets: 0,
retries: 0,
rmonCheckPingId: "string",
runbook: "string",
slackChannelId: 0,
telegramChannelId: 0,
});
type: edgecenter:RmonCheckPing
properties:
checkGroup: string
checkTimeout: 0
countPackets: 0
description: string
emailChannelId: 0
enabled: false
entities:
- 0
interval: 0
ip: string
mmChannelId: 0
name: string
packetSize: 0
pdChannelId: 0
place: string
retries: 0
rmonCheckPingId: string
runbook: string
slackChannelId: 0
telegramChannelId: 0
RmonCheckPing 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 RmonCheckPing resource accepts the following input properties:
- Check
Timeout double - Answer timeout in seconds.
- Enabled bool
- Enabled state of the Check Ping.
- 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 Ping.
- Check
Group string - Name of the check group for group Ping checks.
- Count
Packets double - Number of packets to send.
- Description string
- Description of the Check Ping.
- 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 Ping.
- Packet
Size double - Packet size
- Pd
Channel doubleId - PagerDuty channel ID for alerts.
- Retries double
- Number of retries before check is marked down.
- Rmon
Check stringPing 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
Timeout float64 - Answer timeout in seconds.
- Enabled bool
- Enabled state of the Check Ping.
- 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 Ping.
- Check
Group string - Name of the check group for group Ping checks.
- Count
Packets float64 - Number of packets to send.
- Description string
- Description of the Check Ping.
- 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 Ping.
- Packet
Size float64 - Packet size
- Pd
Channel float64Id - PagerDuty channel ID for alerts.
- Retries float64
- Number of retries before check is marked down.
- Rmon
Check stringPing 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
Timeout Double - Answer timeout in seconds.
- enabled Boolean
- Enabled state of the Check Ping.
- 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 Ping.
- check
Group String - Name of the check group for group Ping checks.
- count
Packets Double - Number of packets to send.
- description String
- Description of the Check Ping.
- 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 Ping.
- packet
Size Double - Packet size
- pd
Channel DoubleId - PagerDuty channel ID for alerts.
- retries Double
- Number of retries before check is marked down.
- rmon
Check StringPing 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
Timeout number - Answer timeout in seconds.
- enabled boolean
- Enabled state of the Check Ping.
- 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 Ping.
- check
Group string - Name of the check group for group Ping checks.
- count
Packets number - Number of packets to send.
- description string
- Description of the Check Ping.
- 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 Ping.
- packet
Size number - Packet size
- pd
Channel numberId - PagerDuty channel ID for alerts.
- retries number
- Number of retries before check is marked down.
- rmon
Check stringPing 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_
timeout float - Answer timeout in seconds.
- enabled bool
- Enabled state of the Check Ping.
- 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 Ping.
- check_
group str - Name of the check group for group Ping checks.
- count_
packets float - Number of packets to send.
- description str
- Description of the Check Ping.
- 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 Ping.
- packet_
size float - Packet size
- pd_
channel_ floatid - PagerDuty channel ID for alerts.
- retries float
- Number of retries before check is marked down.
- rmon_
check_ strping_ 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
Timeout Number - Answer timeout in seconds.
- enabled Boolean
- Enabled state of the Check Ping.
- 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 Ping.
- check
Group String - Name of the check group for group Ping checks.
- count
Packets Number - Number of packets to send.
- description String
- Description of the Check Ping.
- 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 Ping.
- packet
Size Number - Packet size
- pd
Channel NumberId - PagerDuty channel ID for alerts.
- retries Number
- Number of retries before check is marked down.
- rmon
Check StringPing 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 RmonCheckPing 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 RmonCheckPing Resource
Get an existing RmonCheckPing 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?: RmonCheckPingState, opts?: CustomResourceOptions): RmonCheckPing@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
check_group: Optional[str] = None,
check_timeout: Optional[float] = None,
count_packets: 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,
packet_size: Optional[float] = None,
pd_channel_id: Optional[float] = None,
place: Optional[str] = None,
retries: Optional[float] = None,
rmon_check_ping_id: Optional[str] = None,
runbook: Optional[str] = None,
slack_channel_id: Optional[float] = None,
telegram_channel_id: Optional[float] = None) -> RmonCheckPingfunc GetRmonCheckPing(ctx *Context, name string, id IDInput, state *RmonCheckPingState, opts ...ResourceOption) (*RmonCheckPing, error)public static RmonCheckPing Get(string name, Input<string> id, RmonCheckPingState? state, CustomResourceOptions? opts = null)public static RmonCheckPing get(String name, Output<String> id, RmonCheckPingState state, CustomResourceOptions options)resources: _: type: edgecenter:RmonCheckPing 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 Ping checks.
- Check
Timeout double - Answer timeout in seconds.
- Count
Packets double - Number of packets to send.
- Description string
- Description of the Check Ping.
- Email
Channel doubleId - Email channel ID (optional)
- Enabled bool
- Enabled state of the Check Ping.
- 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 Ping.
- Packet
Size double - Packet size
- Pd
Channel doubleId - PagerDuty channel ID for alerts.
- Place string
- Place scope for Check Ping.
- Retries double
- Number of retries before check is marked down.
- Rmon
Check stringPing 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 Ping checks.
- Check
Timeout float64 - Answer timeout in seconds.
- Count
Packets float64 - Number of packets to send.
- Description string
- Description of the Check Ping.
- Email
Channel float64Id - Email channel ID (optional)
- Enabled bool
- Enabled state of the Check Ping.
- 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 Ping.
- Packet
Size float64 - Packet size
- Pd
Channel float64Id - PagerDuty channel ID for alerts.
- Place string
- Place scope for Check Ping.
- Retries float64
- Number of retries before check is marked down.
- Rmon
Check stringPing 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 Ping checks.
- check
Timeout Double - Answer timeout in seconds.
- count
Packets Double - Number of packets to send.
- description String
- Description of the Check Ping.
- email
Channel DoubleId - Email channel ID (optional)
- enabled Boolean
- Enabled state of the Check Ping.
- 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 Ping.
- packet
Size Double - Packet size
- pd
Channel DoubleId - PagerDuty channel ID for alerts.
- place String
- Place scope for Check Ping.
- retries Double
- Number of retries before check is marked down.
- rmon
Check StringPing 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 Ping checks.
- check
Timeout number - Answer timeout in seconds.
- count
Packets number - Number of packets to send.
- description string
- Description of the Check Ping.
- email
Channel numberId - Email channel ID (optional)
- enabled boolean
- Enabled state of the Check Ping.
- 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 Ping.
- packet
Size number - Packet size
- pd
Channel numberId - PagerDuty channel ID for alerts.
- place string
- Place scope for Check Ping.
- retries number
- Number of retries before check is marked down.
- rmon
Check stringPing 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 Ping checks.
- check_
timeout float - Answer timeout in seconds.
- count_
packets float - Number of packets to send.
- description str
- Description of the Check Ping.
- email_
channel_ floatid - Email channel ID (optional)
- enabled bool
- Enabled state of the Check Ping.
- 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 Ping.
- packet_
size float - Packet size
- pd_
channel_ floatid - PagerDuty channel ID for alerts.
- place str
- Place scope for Check Ping.
- retries float
- Number of retries before check is marked down.
- rmon_
check_ strping_ 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 Ping checks.
- check
Timeout Number - Answer timeout in seconds.
- count
Packets Number - Number of packets to send.
- description String
- Description of the Check Ping.
- email
Channel NumberId - Email channel ID (optional)
- enabled Boolean
- Enabled state of the Check Ping.
- 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 Ping.
- packet
Size Number - Packet size
- pd
Channel NumberId - PagerDuty channel ID for alerts.
- place String
- Place scope for Check Ping.
- retries Number
- Number of retries before check is marked down.
- rmon
Check StringPing 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.
