routeros.ToolNetwatch
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const test = new routeros.ToolNetwatch("test", {
host: "8.8.8.8",
interval: "30s",
thrMax: "400ms",
type: "icmp",
upScript: ":log info \"Ping to 8.8.8.8 successful\"",
});
import pulumi
import pulumi_routeros as routeros
test = routeros.ToolNetwatch("test",
host="8.8.8.8",
interval="30s",
thr_max="400ms",
type="icmp",
up_script=":log info \"Ping to 8.8.8.8 successful\"")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := routeros.NewToolNetwatch(ctx, "test", &routeros.ToolNetwatchArgs{
Host: pulumi.String("8.8.8.8"),
Interval: pulumi.String("30s"),
ThrMax: pulumi.String("400ms"),
Type: pulumi.String("icmp"),
UpScript: pulumi.String(":log info \"Ping to 8.8.8.8 successful\""),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var test = new Routeros.ToolNetwatch("test", new()
{
Host = "8.8.8.8",
Interval = "30s",
ThrMax = "400ms",
Type = "icmp",
UpScript = ":log info \"Ping to 8.8.8.8 successful\"",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.ToolNetwatch;
import com.pulumi.routeros.ToolNetwatchArgs;
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 test = new ToolNetwatch("test", ToolNetwatchArgs.builder()
.host("8.8.8.8")
.interval("30s")
.thrMax("400ms")
.type("icmp")
.upScript(":log info \"Ping to 8.8.8.8 successful\"")
.build());
}
}
resources:
test:
type: routeros:ToolNetwatch
properties:
host: 8.8.8.8
interval: 30s
thrMax: 400ms
type: icmp
upScript: :log info "Ping to 8.8.8.8 successful"
Create ToolNetwatch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ToolNetwatch(name: string, args: ToolNetwatchArgs, opts?: CustomResourceOptions);
@overload
def ToolNetwatch(resource_name: str,
args: ToolNetwatchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ToolNetwatch(resource_name: str,
opts: Optional[ResourceOptions] = None,
host: Optional[str] = None,
port: Optional[float] = None,
src_address: Optional[str] = None,
accept_icmp_time_exceeded: Optional[bool] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
dns_server: Optional[str] = None,
down_script: Optional[str] = None,
___path_: Optional[str] = None,
http_code_max: Optional[float] = None,
http_code_min: Optional[float] = None,
start_delay: Optional[str] = None,
name: Optional[str] = None,
packet_count: Optional[float] = None,
packet_interval: Optional[str] = None,
packet_size: Optional[float] = None,
___id_: Optional[float] = None,
___skip_: Optional[str] = None,
record_type: Optional[str] = None,
interval: Optional[str] = None,
startup_delay: Optional[str] = None,
test_script: Optional[str] = None,
thr_avg: Optional[str] = None,
thr_http_time: Optional[str] = None,
thr_jitter: Optional[str] = None,
thr_loss_count: Optional[float] = None,
thr_loss_percent: Optional[float] = None,
thr_max: Optional[str] = None,
thr_stdev: Optional[str] = None,
thr_tcp_conn_time: Optional[str] = None,
timeout: Optional[str] = None,
tool_netwatch_id: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
up_script: Optional[str] = None)
func NewToolNetwatch(ctx *Context, name string, args ToolNetwatchArgs, opts ...ResourceOption) (*ToolNetwatch, error)
public ToolNetwatch(string name, ToolNetwatchArgs args, CustomResourceOptions? opts = null)
public ToolNetwatch(String name, ToolNetwatchArgs args)
public ToolNetwatch(String name, ToolNetwatchArgs args, CustomResourceOptions options)
type: routeros:ToolNetwatch
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 ToolNetwatchArgs
- 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 ToolNetwatchArgs
- 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 ToolNetwatchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ToolNetwatchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ToolNetwatchArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ToolNetwatch 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 ToolNetwatch resource accepts the following input properties:
- Host string
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- Accept
Icmp boolTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - Comment string
- Disabled bool
- Dns
Server string - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - Down
Script string - Script to execute on the event of probe state change
OK
->fail
. - Http
Code doubleMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- Http
Code doubleMin - OK/fail criteria for HTTP response code.
- Interval string
- The time interval between probe tests.
- Name string
- Task name.
- Packet
Count double - Total count of ICMP packets to send out within a single test.
- Packet
Interval string - The time between ICMP-request packet send.
- Packet
Size double - The total size of the IP ICMP packet.
- Port double
- TCP port (for both tcp-conn and http-get probes)
- Record
Type string - Record type that will be used for DNS probe.
- Src
Address string - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - Start
Delay string - Time to wait before starting probe (on add, enable, or system start).
- Startup
Delay string - Time to wait until starting Netwatch probe after system startup.
- Test
Script string - Script to execute at the end of every probe test.
- Thr
Avg string - Fail threshold for rtt-avg.
- Thr
Http stringTime - Fail threshold for http-resp-time.
- Thr
Jitter string - Fail threshold for rtt-jitter.
- Thr
Loss doubleCount - Fail threshold for loss-count.
- Thr
Loss doublePercent - Fail threshold for loss-percent.
- Thr
Max string - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- Thr
Stdev string - Fail threshold for rtt-stdev.
- Thr
Tcp stringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- Timeout string
- Max time limit to wait for a response.
- Tool
Netwatch stringId - Ttl double
- Manually set time to live value for ICMP packet.
- Type string
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- Up
Script string - Script to execute on the event of probe state change
fail
->OK
. - ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- Host string
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- Accept
Icmp boolTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - Comment string
- Disabled bool
- Dns
Server string - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - Down
Script string - Script to execute on the event of probe state change
OK
->fail
. - Http
Code float64Max - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- Http
Code float64Min - OK/fail criteria for HTTP response code.
- Interval string
- The time interval between probe tests.
- Name string
- Task name.
- Packet
Count float64 - Total count of ICMP packets to send out within a single test.
- Packet
Interval string - The time between ICMP-request packet send.
- Packet
Size float64 - The total size of the IP ICMP packet.
- Port float64
- TCP port (for both tcp-conn and http-get probes)
- Record
Type string - Record type that will be used for DNS probe.
- Src
Address string - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - Start
Delay string - Time to wait before starting probe (on add, enable, or system start).
- Startup
Delay string - Time to wait until starting Netwatch probe after system startup.
- Test
Script string - Script to execute at the end of every probe test.
- Thr
Avg string - Fail threshold for rtt-avg.
- Thr
Http stringTime - Fail threshold for http-resp-time.
- Thr
Jitter string - Fail threshold for rtt-jitter.
- Thr
Loss float64Count - Fail threshold for loss-count.
- Thr
Loss float64Percent - Fail threshold for loss-percent.
- Thr
Max string - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- Thr
Stdev string - Fail threshold for rtt-stdev.
- Thr
Tcp stringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- Timeout string
- Max time limit to wait for a response.
- Tool
Netwatch stringId - Ttl float64
- Manually set time to live value for ICMP packet.
- Type string
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- Up
Script string - Script to execute on the event of probe state change
fail
->OK
. - ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- host String
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept
Icmp BooleanTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment String
- disabled Boolean
- dns
Server String - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down
Script String - Script to execute on the event of probe state change
OK
->fail
. - http
Code DoubleMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http
Code DoubleMin - OK/fail criteria for HTTP response code.
- interval String
- The time interval between probe tests.
- name String
- Task name.
- packet
Count Double - Total count of ICMP packets to send out within a single test.
- packet
Interval String - The time between ICMP-request packet send.
- packet
Size Double - The total size of the IP ICMP packet.
- port Double
- TCP port (for both tcp-conn and http-get probes)
- record
Type String - Record type that will be used for DNS probe.
- src
Address String - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start
Delay String - Time to wait before starting probe (on add, enable, or system start).
- startup
Delay String - Time to wait until starting Netwatch probe after system startup.
- test
Script String - Script to execute at the end of every probe test.
- thr
Avg String - Fail threshold for rtt-avg.
- thr
Http StringTime - Fail threshold for http-resp-time.
- thr
Jitter String - Fail threshold for rtt-jitter.
- thr
Loss DoubleCount - Fail threshold for loss-count.
- thr
Loss DoublePercent - Fail threshold for loss-percent.
- thr
Max String - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr
Stdev String - Fail threshold for rtt-stdev.
- thr
Tcp StringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout String
- Max time limit to wait for a response.
- tool
Netwatch StringId - ttl Double
- Manually set time to live value for ICMP packet.
- type String
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up
Script String - Script to execute on the event of probe state change
fail
->OK
.
- host string
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept
Icmp booleanTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment string
- disabled boolean
- dns
Server string - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down
Script string - Script to execute on the event of probe state change
OK
->fail
. - http
Code numberMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http
Code numberMin - OK/fail criteria for HTTP response code.
- interval string
- The time interval between probe tests.
- name string
- Task name.
- packet
Count number - Total count of ICMP packets to send out within a single test.
- packet
Interval string - The time between ICMP-request packet send.
- packet
Size number - The total size of the IP ICMP packet.
- port number
- TCP port (for both tcp-conn and http-get probes)
- record
Type string - Record type that will be used for DNS probe.
- src
Address string - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start
Delay string - Time to wait before starting probe (on add, enable, or system start).
- startup
Delay string - Time to wait until starting Netwatch probe after system startup.
- test
Script string - Script to execute at the end of every probe test.
- thr
Avg string - Fail threshold for rtt-avg.
- thr
Http stringTime - Fail threshold for http-resp-time.
- thr
Jitter string - Fail threshold for rtt-jitter.
- thr
Loss numberCount - Fail threshold for loss-count.
- thr
Loss numberPercent - Fail threshold for loss-percent.
- thr
Max string - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr
Stdev string - Fail threshold for rtt-stdev.
- thr
Tcp stringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout string
- Max time limit to wait for a response.
- tool
Netwatch stringId - ttl number
- Manually set time to live value for ICMP packet.
- type string
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up
Script string - Script to execute on the event of probe state change
fail
->OK
.
- host str
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ str - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept_
icmp_ booltime_ exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment str
- disabled bool
- dns_
server str - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down_
script str - Script to execute on the event of probe state change
OK
->fail
. - http_
code_ floatmax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http_
code_ floatmin - OK/fail criteria for HTTP response code.
- interval str
- The time interval between probe tests.
- name str
- Task name.
- packet_
count float - Total count of ICMP packets to send out within a single test.
- packet_
interval str - The time between ICMP-request packet send.
- packet_
size float - The total size of the IP ICMP packet.
- port float
- TCP port (for both tcp-conn and http-get probes)
- record_
type str - Record type that will be used for DNS probe.
- src_
address str - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start_
delay str - Time to wait before starting probe (on add, enable, or system start).
- startup_
delay str - Time to wait until starting Netwatch probe after system startup.
- test_
script str - Script to execute at the end of every probe test.
- thr_
avg str - Fail threshold for rtt-avg.
- thr_
http_ strtime - Fail threshold for http-resp-time.
- thr_
jitter str - Fail threshold for rtt-jitter.
- thr_
loss_ floatcount - Fail threshold for loss-count.
- thr_
loss_ floatpercent - Fail threshold for loss-percent.
- thr_
max str - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr_
stdev str - Fail threshold for rtt-stdev.
- thr_
tcp_ strconn_ time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout str
- Max time limit to wait for a response.
- tool_
netwatch_ strid - ttl float
- Manually set time to live value for ICMP packet.
- type str
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up_
script str - Script to execute on the event of probe state change
fail
->OK
.
- host String
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept
Icmp BooleanTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment String
- disabled Boolean
- dns
Server String - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down
Script String - Script to execute on the event of probe state change
OK
->fail
. - http
Code NumberMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http
Code NumberMin - OK/fail criteria for HTTP response code.
- interval String
- The time interval between probe tests.
- name String
- Task name.
- packet
Count Number - Total count of ICMP packets to send out within a single test.
- packet
Interval String - The time between ICMP-request packet send.
- packet
Size Number - The total size of the IP ICMP packet.
- port Number
- TCP port (for both tcp-conn and http-get probes)
- record
Type String - Record type that will be used for DNS probe.
- src
Address String - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start
Delay String - Time to wait before starting probe (on add, enable, or system start).
- startup
Delay String - Time to wait until starting Netwatch probe after system startup.
- test
Script String - Script to execute at the end of every probe test.
- thr
Avg String - Fail threshold for rtt-avg.
- thr
Http StringTime - Fail threshold for http-resp-time.
- thr
Jitter String - Fail threshold for rtt-jitter.
- thr
Loss NumberCount - Fail threshold for loss-count.
- thr
Loss NumberPercent - Fail threshold for loss-percent.
- thr
Max String - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr
Stdev String - Fail threshold for rtt-stdev.
- thr
Tcp StringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout String
- Max time limit to wait for a response.
- tool
Netwatch StringId - ttl Number
- Manually set time to live value for ICMP packet.
- type String
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up
Script String - Script to execute on the event of probe state change
fail
->OK
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ToolNetwatch 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 ToolNetwatch Resource
Get an existing ToolNetwatch 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?: ToolNetwatchState, opts?: CustomResourceOptions): ToolNetwatch
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___skip_: Optional[str] = None,
accept_icmp_time_exceeded: Optional[bool] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
dns_server: Optional[str] = None,
down_script: Optional[str] = None,
host: Optional[str] = None,
http_code_max: Optional[float] = None,
http_code_min: Optional[float] = None,
interval: Optional[str] = None,
name: Optional[str] = None,
packet_count: Optional[float] = None,
packet_interval: Optional[str] = None,
packet_size: Optional[float] = None,
port: Optional[float] = None,
record_type: Optional[str] = None,
src_address: Optional[str] = None,
start_delay: Optional[str] = None,
startup_delay: Optional[str] = None,
test_script: Optional[str] = None,
thr_avg: Optional[str] = None,
thr_http_time: Optional[str] = None,
thr_jitter: Optional[str] = None,
thr_loss_count: Optional[float] = None,
thr_loss_percent: Optional[float] = None,
thr_max: Optional[str] = None,
thr_stdev: Optional[str] = None,
thr_tcp_conn_time: Optional[str] = None,
timeout: Optional[str] = None,
tool_netwatch_id: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
up_script: Optional[str] = None) -> ToolNetwatch
func GetToolNetwatch(ctx *Context, name string, id IDInput, state *ToolNetwatchState, opts ...ResourceOption) (*ToolNetwatch, error)
public static ToolNetwatch Get(string name, Input<string> id, ToolNetwatchState? state, CustomResourceOptions? opts = null)
public static ToolNetwatch get(String name, Output<String> id, ToolNetwatchState state, CustomResourceOptions options)
resources: _: type: routeros:ToolNetwatch 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.
- Accept
Icmp boolTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - Comment string
- Disabled bool
- Dns
Server string - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - Down
Script string - Script to execute on the event of probe state change
OK
->fail
. - Host string
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- Http
Code doubleMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- Http
Code doubleMin - OK/fail criteria for HTTP response code.
- Interval string
- The time interval between probe tests.
- Name string
- Task name.
- Packet
Count double - Total count of ICMP packets to send out within a single test.
- Packet
Interval string - The time between ICMP-request packet send.
- Packet
Size double - The total size of the IP ICMP packet.
- Port double
- TCP port (for both tcp-conn and http-get probes)
- Record
Type string - Record type that will be used for DNS probe.
- Src
Address string - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - Start
Delay string - Time to wait before starting probe (on add, enable, or system start).
- Startup
Delay string - Time to wait until starting Netwatch probe after system startup.
- Test
Script string - Script to execute at the end of every probe test.
- Thr
Avg string - Fail threshold for rtt-avg.
- Thr
Http stringTime - Fail threshold for http-resp-time.
- Thr
Jitter string - Fail threshold for rtt-jitter.
- Thr
Loss doubleCount - Fail threshold for loss-count.
- Thr
Loss doublePercent - Fail threshold for loss-percent.
- Thr
Max string - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- Thr
Stdev string - Fail threshold for rtt-stdev.
- Thr
Tcp stringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- Timeout string
- Max time limit to wait for a response.
- Tool
Netwatch stringId - Ttl double
- Manually set time to live value for ICMP packet.
- Type string
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- Up
Script string - Script to execute on the event of probe state change
fail
->OK
. - ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- Accept
Icmp boolTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - Comment string
- Disabled bool
- Dns
Server string - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - Down
Script string - Script to execute on the event of probe state change
OK
->fail
. - Host string
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- Http
Code float64Max - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- Http
Code float64Min - OK/fail criteria for HTTP response code.
- Interval string
- The time interval between probe tests.
- Name string
- Task name.
- Packet
Count float64 - Total count of ICMP packets to send out within a single test.
- Packet
Interval string - The time between ICMP-request packet send.
- Packet
Size float64 - The total size of the IP ICMP packet.
- Port float64
- TCP port (for both tcp-conn and http-get probes)
- Record
Type string - Record type that will be used for DNS probe.
- Src
Address string - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - Start
Delay string - Time to wait before starting probe (on add, enable, or system start).
- Startup
Delay string - Time to wait until starting Netwatch probe after system startup.
- Test
Script string - Script to execute at the end of every probe test.
- Thr
Avg string - Fail threshold for rtt-avg.
- Thr
Http stringTime - Fail threshold for http-resp-time.
- Thr
Jitter string - Fail threshold for rtt-jitter.
- Thr
Loss float64Count - Fail threshold for loss-count.
- Thr
Loss float64Percent - Fail threshold for loss-percent.
- Thr
Max string - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- Thr
Stdev string - Fail threshold for rtt-stdev.
- Thr
Tcp stringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- Timeout string
- Max time limit to wait for a response.
- Tool
Netwatch stringId - Ttl float64
- Manually set time to live value for ICMP packet.
- Type string
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- Up
Script string - Script to execute on the event of probe state change
fail
->OK
. - ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept
Icmp BooleanTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment String
- disabled Boolean
- dns
Server String - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down
Script String - Script to execute on the event of probe state change
OK
->fail
. - host String
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- http
Code DoubleMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http
Code DoubleMin - OK/fail criteria for HTTP response code.
- interval String
- The time interval between probe tests.
- name String
- Task name.
- packet
Count Double - Total count of ICMP packets to send out within a single test.
- packet
Interval String - The time between ICMP-request packet send.
- packet
Size Double - The total size of the IP ICMP packet.
- port Double
- TCP port (for both tcp-conn and http-get probes)
- record
Type String - Record type that will be used for DNS probe.
- src
Address String - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start
Delay String - Time to wait before starting probe (on add, enable, or system start).
- startup
Delay String - Time to wait until starting Netwatch probe after system startup.
- test
Script String - Script to execute at the end of every probe test.
- thr
Avg String - Fail threshold for rtt-avg.
- thr
Http StringTime - Fail threshold for http-resp-time.
- thr
Jitter String - Fail threshold for rtt-jitter.
- thr
Loss DoubleCount - Fail threshold for loss-count.
- thr
Loss DoublePercent - Fail threshold for loss-percent.
- thr
Max String - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr
Stdev String - Fail threshold for rtt-stdev.
- thr
Tcp StringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout String
- Max time limit to wait for a response.
- tool
Netwatch StringId - ttl Double
- Manually set time to live value for ICMP packet.
- type String
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up
Script String - Script to execute on the event of probe state change
fail
->OK
.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept
Icmp booleanTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment string
- disabled boolean
- dns
Server string - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down
Script string - Script to execute on the event of probe state change
OK
->fail
. - host string
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- http
Code numberMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http
Code numberMin - OK/fail criteria for HTTP response code.
- interval string
- The time interval between probe tests.
- name string
- Task name.
- packet
Count number - Total count of ICMP packets to send out within a single test.
- packet
Interval string - The time between ICMP-request packet send.
- packet
Size number - The total size of the IP ICMP packet.
- port number
- TCP port (for both tcp-conn and http-get probes)
- record
Type string - Record type that will be used for DNS probe.
- src
Address string - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start
Delay string - Time to wait before starting probe (on add, enable, or system start).
- startup
Delay string - Time to wait until starting Netwatch probe after system startup.
- test
Script string - Script to execute at the end of every probe test.
- thr
Avg string - Fail threshold for rtt-avg.
- thr
Http stringTime - Fail threshold for http-resp-time.
- thr
Jitter string - Fail threshold for rtt-jitter.
- thr
Loss numberCount - Fail threshold for loss-count.
- thr
Loss numberPercent - Fail threshold for loss-percent.
- thr
Max string - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr
Stdev string - Fail threshold for rtt-stdev.
- thr
Tcp stringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout string
- Max time limit to wait for a response.
- tool
Netwatch stringId - ttl number
- Manually set time to live value for ICMP packet.
- type string
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up
Script string - Script to execute on the event of probe state change
fail
->OK
.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ str - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept_
icmp_ booltime_ exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment str
- disabled bool
- dns_
server str - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down_
script str - Script to execute on the event of probe state change
OK
->fail
. - host str
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- http_
code_ floatmax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http_
code_ floatmin - OK/fail criteria for HTTP response code.
- interval str
- The time interval between probe tests.
- name str
- Task name.
- packet_
count float - Total count of ICMP packets to send out within a single test.
- packet_
interval str - The time between ICMP-request packet send.
- packet_
size float - The total size of the IP ICMP packet.
- port float
- TCP port (for both tcp-conn and http-get probes)
- record_
type str - Record type that will be used for DNS probe.
- src_
address str - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start_
delay str - Time to wait before starting probe (on add, enable, or system start).
- startup_
delay str - Time to wait until starting Netwatch probe after system startup.
- test_
script str - Script to execute at the end of every probe test.
- thr_
avg str - Fail threshold for rtt-avg.
- thr_
http_ strtime - Fail threshold for http-resp-time.
- thr_
jitter str - Fail threshold for rtt-jitter.
- thr_
loss_ floatcount - Fail threshold for loss-count.
- thr_
loss_ floatpercent - Fail threshold for loss-percent.
- thr_
max str - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr_
stdev str - Fail threshold for rtt-stdev.
- thr_
tcp_ strconn_ time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout str
- Max time limit to wait for a response.
- tool_
netwatch_ strid - ttl float
- Manually set time to live value for ICMP packet.
- type str
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up_
script str - Script to execute on the event of probe state change
fail
->OK
.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- accept
Icmp BooleanTime Exceeded - If the ICMP
time exceeded
message should be considered a valid response. - comment String
- disabled Boolean
- dns
Server String - The DNS server that the probe should send its requests to, if not specified it will use the value from
/ip dns
. - down
Script String - Script to execute on the event of probe state change
OK
->fail
. - host String
- The IP address of the server to be probed. Formats: * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
- http
Code NumberMax - Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See mozilla-http-status or rfc7231.
- http
Code NumberMin - OK/fail criteria for HTTP response code.
- interval String
- The time interval between probe tests.
- name String
- Task name.
- packet
Count Number - Total count of ICMP packets to send out within a single test.
- packet
Interval String - The time between ICMP-request packet send.
- packet
Size Number - The total size of the IP ICMP packet.
- port Number
- TCP port (for both tcp-conn and http-get probes)
- record
Type String - Record type that will be used for DNS probe.
- src
Address String - Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the
host will be considered as
down
. - start
Delay String - Time to wait before starting probe (on add, enable, or system start).
- startup
Delay String - Time to wait until starting Netwatch probe after system startup.
- test
Script String - Script to execute at the end of every probe test.
- thr
Avg String - Fail threshold for rtt-avg.
- thr
Http StringTime - Fail threshold for http-resp-time.
- thr
Jitter String - Fail threshold for rtt-jitter.
- thr
Loss NumberCount - Fail threshold for loss-count.
- thr
Loss NumberPercent - Fail threshold for loss-percent.
- thr
Max String - Fail threshold for rtt-max (a value above thr-max is a probe fail).
- thr
Stdev String - Fail threshold for rtt-stdev.
- thr
Tcp StringConn Time - Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds.
- timeout String
- Max time limit to wait for a response.
- tool
Netwatch StringId - ttl Number
- Manually set time to live value for ICMP packet.
- type String
- Type of the probe: * icmp - (ping-style) series of ICMP request-response with statistics * tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port * http-get - do an HTTP Get request and test for a range of correct replies * simple - simplified ICMP probe, with fewer options than ICMP type, used for backward compatibility with the older Netwatch version
- up
Script String - Script to execute on the event of probe state change
fail
->OK
.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/tool/netwatch get [print show-ids]]
$ pulumi import routeros:index/toolNetwatch:ToolNetwatch test *3
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.