Monitor
Manages a V2 monitor resource within OpenStack.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var monitor1 = new OpenStack.LoadBalancer.Monitor("monitor1", new OpenStack.LoadBalancer.MonitorArgs
{
Delay = 20,
MaxRetries = 5,
PoolId = openstack_lb_pool_v2.Pool_1.Id,
Timeout = 10,
Type = "PING",
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
monitor1 = openstack.loadbalancer.Monitor("monitor1",
delay=20,
max_retries=5,
pool_id=openstack_lb_pool_v2["pool_1"]["id"],
timeout=10,
type="PING")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const monitor1 = new openstack.loadbalancer.Monitor("monitor_1", {
delay: 20,
maxRetries: 5,
poolId: openstack_lb_pool_v2_pool_1.id,
timeout: 10,
type: "PING",
});Create a Monitor Resource
new Monitor(name: string, args: MonitorArgs, opts?: CustomResourceOptions);def Monitor(resource_name, opts=None, admin_state_up=None, delay=None, expected_codes=None, http_method=None, max_retries=None, max_retries_down=None, name=None, pool_id=None, region=None, tenant_id=None, timeout=None, type=None, url_path=None, __props__=None);func NewMonitor(ctx *Context, name string, args MonitorArgs, opts ...ResourceOption) (*Monitor, error)public Monitor(string name, MonitorArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Monitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Monitor resource accepts the following input properties:
- Delay int
The time, in seconds, between sending probes to members.
- Max
Retries int Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- Pool
Id string The id of the pool that this monitor will be assigned to.
- Timeout int
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- Type string
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Admin
State boolUp The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Expected
Codes string Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- Http
Method string Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- Max
Retries intDown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- Name string
The Name of the Monitor.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- Tenant
Id string Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- Url
Path string Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- Delay int
The time, in seconds, between sending probes to members.
- Max
Retries int Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- Pool
Id string The id of the pool that this monitor will be assigned to.
- Timeout int
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- Type string
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Admin
State boolUp The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Expected
Codes string Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- Http
Method string Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- Max
Retries intDown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- Name string
The Name of the Monitor.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- Tenant
Id string Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- Url
Path string Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- delay number
The time, in seconds, between sending probes to members.
- max
Retries number Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- pool
Id string The id of the pool that this monitor will be assigned to.
- timeout number
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- type string
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- admin
State booleanUp The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- expected
Codes string Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- http
Method string Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- max
Retries numberDown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- name string
The Name of the Monitor.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- tenant
Id string Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- url
Path string Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- delay float
The time, in seconds, between sending probes to members.
- max_
retries float Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- pool_
id str The id of the pool that this monitor will be assigned to.
- timeout float
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- type str
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- admin_
state_ boolup The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- expected_
codes str Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- http_
method str Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- max_
retries_ floatdown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- name str
The Name of the Monitor.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- tenant_
id str Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- url_
path str Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
Outputs
All input properties are implicitly available as output properties. Additionally, the Monitor resource produces the following output properties:
Look up an Existing Monitor Resource
Get an existing Monitor 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?: MonitorState, opts?: CustomResourceOptions): Monitorstatic get(resource_name, id, opts=None, admin_state_up=None, delay=None, expected_codes=None, http_method=None, max_retries=None, max_retries_down=None, name=None, pool_id=None, region=None, tenant_id=None, timeout=None, type=None, url_path=None, __props__=None);func GetMonitor(ctx *Context, name string, id IDInput, state *MonitorState, opts ...ResourceOption) (*Monitor, error)public static Monitor Get(string name, Input<string> id, MonitorState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Admin
State boolUp The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Delay int
The time, in seconds, between sending probes to members.
- Expected
Codes string Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- Http
Method string Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- Max
Retries int Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- Max
Retries intDown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- Name string
The Name of the Monitor.
- Pool
Id string The id of the pool that this monitor will be assigned to.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- Tenant
Id string Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- Timeout int
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- Type string
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Url
Path string Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- Admin
State boolUp The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Delay int
The time, in seconds, between sending probes to members.
- Expected
Codes string Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- Http
Method string Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- Max
Retries int Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- Max
Retries intDown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- Name string
The Name of the Monitor.
- Pool
Id string The id of the pool that this monitor will be assigned to.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- Tenant
Id string Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- Timeout int
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- Type string
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Url
Path string Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- admin
State booleanUp The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- delay number
The time, in seconds, between sending probes to members.
- expected
Codes string Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- http
Method string Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- max
Retries number Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- max
Retries numberDown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- name string
The Name of the Monitor.
- pool
Id string The id of the pool that this monitor will be assigned to.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- tenant
Id string Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- timeout number
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- type string
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- url
Path string Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- admin_
state_ boolup The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- delay float
The time, in seconds, between sending probes to members.
- expected_
codes str Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like “200”, or a range like “200-202”.
- http_
method str Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to “GET”.
- max_
retries float Number of permissible ping failures before changing the member’s status to INACTIVE. Must be a number between 1 and 10.
- max_
retries_ floatdown Number of permissible ping failures befor changing the member’s status to ERROR. Must be a number between 1 and 10 (supported only in Octavia). Changing this updates the max_retries_down of the existing monitor.
- name str
The Name of the Monitor.
- pool_
id str The id of the pool that this monitor will be assigned to.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new monitor.- tenant_
id str Required for admins. The UUID of the tenant who owns the monitor. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new monitor.
- timeout float
Maximum number of seconds for a monitor to wait for a ping reply before it times out. The value must be less than the delay value.
- type str
The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT (supported only in Octavia), that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- url_
path str Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.