Show / Hide Table of Contents

Class MonitorV1

Manages a V1 load balancer monitor resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var monitor1 = new OpenStack.LoadBalancer.MonitorV1("monitor1", new OpenStack.LoadBalancer.MonitorV1Args
    {
        AdminStateUp = "true",
        Delay = 30,
        MaxRetries = 3,
        Timeout = 5,
        Type = "PING",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
MonitorV1
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.LoadBalancer
Assembly: Pulumi.OpenStack.dll
Syntax
public class MonitorV1 : CustomResource

Constructors

View Source

MonitorV1(String, MonitorV1Args, CustomResourceOptions)

Create a MonitorV1 resource with the given unique name, arguments, and options.

Declaration
public MonitorV1(string name, MonitorV1Args args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

MonitorV1Args args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AdminStateUp

The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.

Declaration
public Output<string> AdminStateUp { get; }
Property Value
Type Description
Output<System.String>
View Source

Delay

The time, in seconds, between sending probes to members. Changing this creates a new monitor.

Declaration
public Output<int> Delay { get; }
Property Value
Type Description
Output<System.Int32>
View Source

ExpectedCodes

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". Changing this updates the expected_codes of the existing monitor.

Declaration
public Output<string> ExpectedCodes { get; }
Property Value
Type Description
Output<System.String>
View Source

HttpMethod

Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.

Declaration
public Output<string> HttpMethod { get; }
Property Value
Type Description
Output<System.String>
View Source

MaxRetries

Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10. Changing this updates the max_retries of the existing monitor.

Declaration
public Output<int> MaxRetries { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Region

The region in which to obtain the V2 Networking client. A Networking client is needed to create an LB monitor. If omitted, the region argument of the provider is used. Changing this creates a new LB monitor.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

TenantId

The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.

Declaration
public Output<string> TenantId { get; }
Property Value
Type Description
Output<System.String>
View Source

Timeout

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. Changing this updates the timeout of the existing monitor.

Declaration
public Output<int> Timeout { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Type

The type of probe, which is PING, TCP, HTTP, or HTTPS, that is sent by the monitor to verify the member state. Changing this creates a new monitor.

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

UrlPath

Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS. Changing this updates the url_path of the existing monitor.

Declaration
public Output<string> UrlPath { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, MonitorV1State, CustomResourceOptions)

Get an existing MonitorV1 resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static MonitorV1 Get(string name, Input<string> id, MonitorV1State state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

MonitorV1State state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
MonitorV1
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.