1. Packages
  2. OpenStack
  3. API Docs
  4. loadbalancer
  5. Monitor
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.loadbalancer.Monitor

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

    Manages a V2 monitor resource within OpenStack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const monitor1 = new openstack.loadbalancer.Monitor("monitor_1", {
        poolId: pool1.id,
        type: "PING",
        delay: 20,
        timeout: 10,
        maxRetries: 5,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    monitor1 = openstack.loadbalancer.Monitor("monitor_1",
        pool_id=pool1["id"],
        type="PING",
        delay=20,
        timeout=10,
        max_retries=5)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loadbalancer.NewMonitor(ctx, "monitor_1", &loadbalancer.MonitorArgs{
    			PoolId:     pulumi.Any(pool1.Id),
    			Type:       pulumi.String("PING"),
    			Delay:      pulumi.Int(20),
    			Timeout:    pulumi.Int(10),
    			MaxRetries: pulumi.Int(5),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var monitor1 = new OpenStack.LoadBalancer.Monitor("monitor_1", new()
        {
            PoolId = pool1.Id,
            Type = "PING",
            Delay = 20,
            Timeout = 10,
            MaxRetries = 5,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.loadbalancer.Monitor;
    import com.pulumi.openstack.loadbalancer.MonitorArgs;
    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 monitor1 = new Monitor("monitor1", MonitorArgs.builder()        
                .poolId(pool1.id())
                .type("PING")
                .delay(20)
                .timeout(10)
                .maxRetries(5)
                .build());
    
        }
    }
    
    resources:
      monitor1:
        type: openstack:loadbalancer:Monitor
        name: monitor_1
        properties:
          poolId: ${pool1.id}
          type: PING
          delay: 20
          timeout: 10
          maxRetries: 5
    

    Create Monitor Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Monitor(name: string, args: MonitorArgs, opts?: CustomResourceOptions);
    @overload
    def Monitor(resource_name: str,
                args: MonitorArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Monitor(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                pool_id: Optional[str] = None,
                delay: Optional[int] = None,
                type: Optional[str] = None,
                timeout: Optional[int] = None,
                max_retries: Optional[int] = None,
                name: Optional[str] = None,
                admin_state_up: Optional[bool] = None,
                max_retries_down: Optional[int] = None,
                region: Optional[str] = None,
                tenant_id: Optional[str] = None,
                http_method: Optional[str] = None,
                expected_codes: Optional[str] = None,
                url_path: Optional[str] = None)
    func NewMonitor(ctx *Context, name string, args MonitorArgs, opts ...ResourceOption) (*Monitor, error)
    public Monitor(string name, MonitorArgs args, CustomResourceOptions? opts = null)
    public Monitor(String name, MonitorArgs args)
    public Monitor(String name, MonitorArgs args, CustomResourceOptions options)
    
    type: openstack:loadbalancer:Monitor
    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 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.
    args MonitorArgs
    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 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.
    name String
    The unique name of the resource.
    args MonitorArgs
    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 monitorResource = new OpenStack.LoadBalancer.Monitor("monitorResource", new()
    {
        PoolId = "string",
        Delay = 0,
        Type = "string",
        Timeout = 0,
        MaxRetries = 0,
        Name = "string",
        AdminStateUp = false,
        MaxRetriesDown = 0,
        Region = "string",
        TenantId = "string",
        HttpMethod = "string",
        ExpectedCodes = "string",
        UrlPath = "string",
    });
    
    example, err := loadbalancer.NewMonitor(ctx, "monitorResource", &loadbalancer.MonitorArgs{
    	PoolId:         pulumi.String("string"),
    	Delay:          pulumi.Int(0),
    	Type:           pulumi.String("string"),
    	Timeout:        pulumi.Int(0),
    	MaxRetries:     pulumi.Int(0),
    	Name:           pulumi.String("string"),
    	AdminStateUp:   pulumi.Bool(false),
    	MaxRetriesDown: pulumi.Int(0),
    	Region:         pulumi.String("string"),
    	TenantId:       pulumi.String("string"),
    	HttpMethod:     pulumi.String("string"),
    	ExpectedCodes:  pulumi.String("string"),
    	UrlPath:        pulumi.String("string"),
    })
    
    var monitorResource = new Monitor("monitorResource", MonitorArgs.builder()
        .poolId("string")
        .delay(0)
        .type("string")
        .timeout(0)
        .maxRetries(0)
        .name("string")
        .adminStateUp(false)
        .maxRetriesDown(0)
        .region("string")
        .tenantId("string")
        .httpMethod("string")
        .expectedCodes("string")
        .urlPath("string")
        .build());
    
    monitor_resource = openstack.loadbalancer.Monitor("monitorResource",
        pool_id="string",
        delay=0,
        type="string",
        timeout=0,
        max_retries=0,
        name="string",
        admin_state_up=False,
        max_retries_down=0,
        region="string",
        tenant_id="string",
        http_method="string",
        expected_codes="string",
        url_path="string")
    
    const monitorResource = new openstack.loadbalancer.Monitor("monitorResource", {
        poolId: "string",
        delay: 0,
        type: "string",
        timeout: 0,
        maxRetries: 0,
        name: "string",
        adminStateUp: false,
        maxRetriesDown: 0,
        region: "string",
        tenantId: "string",
        httpMethod: "string",
        expectedCodes: "string",
        urlPath: "string",
    });
    
    type: openstack:loadbalancer:Monitor
    properties:
        adminStateUp: false
        delay: 0
        expectedCodes: string
        httpMethod: string
        maxRetries: 0
        maxRetriesDown: 0
        name: string
        poolId: string
        region: string
        tenantId: string
        timeout: 0
        type: string
        urlPath: string
    

    Monitor Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Monitor resource accepts the following input properties:

    Delay int
    The time, in seconds, between sending probes to members.
    MaxRetries int
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    PoolId 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.
    AdminStateUp bool
    The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
    ExpectedCodes 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".
    HttpMethod 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".
    MaxRetriesDown int
    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 region argument of the provider is used. Changing this creates a new monitor.
    TenantId 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.
    UrlPath 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.
    MaxRetries int
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    PoolId 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.
    AdminStateUp bool
    The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
    ExpectedCodes 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".
    HttpMethod 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".
    MaxRetriesDown int
    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 region argument of the provider is used. Changing this creates a new monitor.
    TenantId 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.
    UrlPath string
    Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
    delay Integer
    The time, in seconds, between sending probes to members.
    maxRetries Integer
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    poolId String
    The id of the pool that this monitor will be assigned to.
    timeout Integer
    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.
    adminStateUp Boolean
    The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
    expectedCodes 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".
    httpMethod 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".
    maxRetriesDown Integer
    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 region argument of the provider is used. Changing this creates a new monitor.
    tenantId 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.
    urlPath 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.
    maxRetries number
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    poolId 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.
    adminStateUp boolean
    The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
    expectedCodes 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".
    httpMethod 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".
    maxRetriesDown number
    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 region argument of the provider is used. Changing this creates a new monitor.
    tenantId 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.
    urlPath 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 str
    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 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_up bool
    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_down int
    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 region argument 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.
    delay Number
    The time, in seconds, between sending probes to members.
    maxRetries Number
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    poolId 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.
    adminStateUp Boolean
    The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
    expectedCodes 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".
    httpMethod 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".
    maxRetriesDown Number
    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 region argument of the provider is used. Changing this creates a new monitor.
    tenantId 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.
    urlPath String
    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:

    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 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): Monitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            delay: Optional[int] = None,
            expected_codes: Optional[str] = None,
            http_method: Optional[str] = None,
            max_retries: Optional[int] = None,
            max_retries_down: Optional[int] = None,
            name: Optional[str] = None,
            pool_id: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeout: Optional[int] = None,
            type: Optional[str] = None,
            url_path: Optional[str] = None) -> Monitor
    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)
    public static Monitor get(String name, Output<String> id, MonitorState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AdminStateUp bool
    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.
    ExpectedCodes 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".
    HttpMethod 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".
    MaxRetries int
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    MaxRetriesDown int
    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.
    PoolId 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 region argument of the provider is used. Changing this creates a new monitor.
    TenantId 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.
    UrlPath string
    Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
    AdminStateUp bool
    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.
    ExpectedCodes 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".
    HttpMethod 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".
    MaxRetries int
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    MaxRetriesDown int
    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.
    PoolId 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 region argument of the provider is used. Changing this creates a new monitor.
    TenantId 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.
    UrlPath string
    Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
    adminStateUp Boolean
    The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
    delay Integer
    The time, in seconds, between sending probes to members.
    expectedCodes 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".
    httpMethod 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".
    maxRetries Integer
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    maxRetriesDown Integer
    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.
    poolId 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 region argument of the provider is used. Changing this creates a new monitor.
    tenantId 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 Integer
    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.
    urlPath String
    Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
    adminStateUp boolean
    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.
    expectedCodes 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".
    httpMethod 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".
    maxRetries number
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    maxRetriesDown number
    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.
    poolId 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 region argument of the provider is used. Changing this creates a new monitor.
    tenantId 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.
    urlPath string
    Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
    admin_state_up bool
    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 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 int
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    max_retries_down int
    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 region argument 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 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 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.
    adminStateUp Boolean
    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.
    expectedCodes 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".
    httpMethod 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".
    maxRetries Number
    Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
    maxRetriesDown Number
    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.
    poolId 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 region argument of the provider is used. Changing this creates a new monitor.
    tenantId 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.
    urlPath String
    Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.

    Import

    Load Balancer Pool Monitor can be imported using the Monitor ID, e.g.:

    $ pulumi import openstack:loadbalancer/monitor:Monitor monitor_1 47c26fc3-2403-427a-8c79-1589bd0533c2
    

    In case of using OpenContrail, the import may not work properly. If you face an issue, try to import the monitor providing its parent pool ID:

    $ pulumi import openstack:loadbalancer/monitor:Monitor monitor_1 47c26fc3-2403-427a-8c79-1589bd0533c2/708bc224-0f8c-4981-ac82-97095fe051b6
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi