vkcs.LbMonitor
Explore with Pulumi AI
Manages a monitor resource within VKCS.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const workerPingLifeChecker = new vkcs.LbMonitor("workerPingLifeChecker", {
poolId: vkcs_lb_pool.http.id,
type: "PING",
delay: 20,
timeout: 10,
maxRetries: 5,
});
import pulumi
import pulumi_vkcs as vkcs
worker_ping_life_checker = vkcs.LbMonitor("workerPingLifeChecker",
pool_id=vkcs_lb_pool["http"]["id"],
type="PING",
delay=20,
timeout=10,
max_retries=5)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewLbMonitor(ctx, "workerPingLifeChecker", &vkcs.LbMonitorArgs{
PoolId: pulumi.Any(vkcs_lb_pool.Http.Id),
Type: pulumi.String("PING"),
Delay: pulumi.Float64(20),
Timeout: pulumi.Float64(10),
MaxRetries: pulumi.Float64(5),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var workerPingLifeChecker = new Vkcs.LbMonitor("workerPingLifeChecker", new()
{
PoolId = vkcs_lb_pool.Http.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.vkcs.LbMonitor;
import com.pulumi.vkcs.LbMonitorArgs;
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 workerPingLifeChecker = new LbMonitor("workerPingLifeChecker", LbMonitorArgs.builder()
.poolId(vkcs_lb_pool.http().id())
.type("PING")
.delay(20)
.timeout(10)
.maxRetries(5)
.build());
}
}
resources:
workerPingLifeChecker:
type: vkcs:LbMonitor
properties:
poolId: ${vkcs_lb_pool.http.id}
type: PING
delay: 20
timeout: 10
maxRetries: 5
Create LbMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LbMonitor(name: string, args: LbMonitorArgs, opts?: CustomResourceOptions);
@overload
def LbMonitor(resource_name: str,
args: LbMonitorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LbMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
max_retries: Optional[float] = None,
delay: Optional[float] = None,
type: Optional[str] = None,
timeout: Optional[float] = None,
pool_id: Optional[str] = None,
max_retries_down: Optional[float] = None,
admin_state_up: Optional[bool] = None,
name: Optional[str] = None,
lb_monitor_id: Optional[str] = None,
region: Optional[str] = None,
http_method: Optional[str] = None,
timeouts: Optional[LbMonitorTimeoutsArgs] = None,
expected_codes: Optional[str] = None,
url_path: Optional[str] = None)
func NewLbMonitor(ctx *Context, name string, args LbMonitorArgs, opts ...ResourceOption) (*LbMonitor, error)
public LbMonitor(string name, LbMonitorArgs args, CustomResourceOptions? opts = null)
public LbMonitor(String name, LbMonitorArgs args)
public LbMonitor(String name, LbMonitorArgs args, CustomResourceOptions options)
type: vkcs:LbMonitor
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 LbMonitorArgs
- 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 LbMonitorArgs
- 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 LbMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbMonitorArgs
- 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 lbMonitorResource = new Vkcs.LbMonitor("lbMonitorResource", new()
{
MaxRetries = 0,
Delay = 0,
Type = "string",
Timeout = 0,
PoolId = "string",
MaxRetriesDown = 0,
AdminStateUp = false,
Name = "string",
LbMonitorId = "string",
Region = "string",
HttpMethod = "string",
Timeouts = new Vkcs.Inputs.LbMonitorTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
ExpectedCodes = "string",
UrlPath = "string",
});
example, err := vkcs.NewLbMonitor(ctx, "lbMonitorResource", &vkcs.LbMonitorArgs{
MaxRetries: pulumi.Float64(0),
Delay: pulumi.Float64(0),
Type: pulumi.String("string"),
Timeout: pulumi.Float64(0),
PoolId: pulumi.String("string"),
MaxRetriesDown: pulumi.Float64(0),
AdminStateUp: pulumi.Bool(false),
Name: pulumi.String("string"),
LbMonitorId: pulumi.String("string"),
Region: pulumi.String("string"),
HttpMethod: pulumi.String("string"),
Timeouts: &vkcs.LbMonitorTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
ExpectedCodes: pulumi.String("string"),
UrlPath: pulumi.String("string"),
})
var lbMonitorResource = new LbMonitor("lbMonitorResource", LbMonitorArgs.builder()
.maxRetries(0)
.delay(0)
.type("string")
.timeout(0)
.poolId("string")
.maxRetriesDown(0)
.adminStateUp(false)
.name("string")
.lbMonitorId("string")
.region("string")
.httpMethod("string")
.timeouts(LbMonitorTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.expectedCodes("string")
.urlPath("string")
.build());
lb_monitor_resource = vkcs.LbMonitor("lbMonitorResource",
max_retries=0,
delay=0,
type="string",
timeout=0,
pool_id="string",
max_retries_down=0,
admin_state_up=False,
name="string",
lb_monitor_id="string",
region="string",
http_method="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
expected_codes="string",
url_path="string")
const lbMonitorResource = new vkcs.LbMonitor("lbMonitorResource", {
maxRetries: 0,
delay: 0,
type: "string",
timeout: 0,
poolId: "string",
maxRetriesDown: 0,
adminStateUp: false,
name: "string",
lbMonitorId: "string",
region: "string",
httpMethod: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
expectedCodes: "string",
urlPath: "string",
});
type: vkcs:LbMonitor
properties:
adminStateUp: false
delay: 0
expectedCodes: string
httpMethod: string
lbMonitorId: string
maxRetries: 0
maxRetriesDown: 0
name: string
poolId: string
region: string
timeout: 0
timeouts:
create: string
delete: string
update: string
type: string
urlPath: string
LbMonitor 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 LbMonitor resource accepts the following input properties:
- Delay double
- required number → The time, in seconds, between sending probes to members.
- Max
Retries double - required 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 - required string → The id of the pool that this monitor will be assigned to.
- Timeout double
- required 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
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Admin
State boolUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Expected
Codes string - optional 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 - optional 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".
- Lb
Monitor stringId - string → ID of the resource.
- Max
Retries doubleDown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- Name string
- optional string → The Name of the Monitor.
- Region string
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - Timeouts
Lb
Monitor Timeouts - Url
Path string - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- Delay float64
- required number → The time, in seconds, between sending probes to members.
- Max
Retries float64 - required 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 - required string → The id of the pool that this monitor will be assigned to.
- Timeout float64
- required 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
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Admin
State boolUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Expected
Codes string - optional 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 - optional 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".
- Lb
Monitor stringId - string → ID of the resource.
- Max
Retries float64Down - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- Name string
- optional string → The Name of the Monitor.
- Region string
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - Timeouts
Lb
Monitor Timeouts Args - Url
Path string - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- delay Double
- required number → The time, in seconds, between sending probes to members.
- max
Retries Double - required 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 - required string → The id of the pool that this monitor will be assigned to.
- timeout Double
- required 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
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- admin
State BooleanUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- expected
Codes String - optional 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 - optional 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".
- lb
Monitor StringId - string → ID of the resource.
- max
Retries DoubleDown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name String
- optional string → The Name of the Monitor.
- region String
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeouts
Lb
Monitor Timeouts - url
Path String - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- delay number
- required number → The time, in seconds, between sending probes to members.
- max
Retries number - required 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 - required string → The id of the pool that this monitor will be assigned to.
- timeout number
- required 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
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- admin
State booleanUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- expected
Codes string - optional 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 - optional 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".
- lb
Monitor stringId - string → ID of the resource.
- max
Retries numberDown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name string
- optional string → The Name of the Monitor.
- region string
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeouts
Lb
Monitor Timeouts - url
Path string - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- delay float
- required number → The time, in seconds, between sending probes to members.
- max_
retries float - required number → Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool_
id str - required string → The id of the pool that this monitor will be assigned to.
- timeout float
- required 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 str
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- admin_
state_ boolup - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- expected_
codes str - optional 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 str - optional 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".
- lb_
monitor_ strid - string → ID of the resource.
- max_
retries_ floatdown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name str
- optional string → The Name of the Monitor.
- region str
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeouts
Lb
Monitor Timeouts Args - url_
path str - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- delay Number
- required number → The time, in seconds, between sending probes to members.
- max
Retries Number - required 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 - required string → The id of the pool that this monitor will be assigned to.
- timeout Number
- required 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
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- admin
State BooleanUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- expected
Codes String - optional 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 - optional 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".
- lb
Monitor StringId - string → ID of the resource.
- max
Retries NumberDown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name String
- optional string → The Name of the Monitor.
- region String
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeouts Property Map
- url
Path String - optional 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 LbMonitor 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 LbMonitor Resource
Get an existing LbMonitor 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?: LbMonitorState, opts?: CustomResourceOptions): LbMonitor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[bool] = None,
delay: Optional[float] = None,
expected_codes: Optional[str] = None,
http_method: Optional[str] = None,
lb_monitor_id: Optional[str] = None,
max_retries: Optional[float] = None,
max_retries_down: Optional[float] = None,
name: Optional[str] = None,
pool_id: Optional[str] = None,
region: Optional[str] = None,
timeout: Optional[float] = None,
timeouts: Optional[LbMonitorTimeoutsArgs] = None,
type: Optional[str] = None,
url_path: Optional[str] = None) -> LbMonitor
func GetLbMonitor(ctx *Context, name string, id IDInput, state *LbMonitorState, opts ...ResourceOption) (*LbMonitor, error)
public static LbMonitor Get(string name, Input<string> id, LbMonitorState? state, CustomResourceOptions? opts = null)
public static LbMonitor get(String name, Output<String> id, LbMonitorState state, CustomResourceOptions options)
resources: _: type: vkcs:LbMonitor 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.
- Admin
State boolUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Delay double
- required number → The time, in seconds, between sending probes to members.
- Expected
Codes string - optional 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 - optional 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".
- Lb
Monitor stringId - string → ID of the resource.
- Max
Retries double - required number → Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- Max
Retries doubleDown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- Name string
- optional string → The Name of the Monitor.
- Pool
Id string - required string → The id of the pool that this monitor will be assigned to.
- Region string
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - Timeout double
- required 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.
- Timeouts
Lb
Monitor Timeouts - Type string
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Url
Path string - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- Admin
State boolUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- Delay float64
- required number → The time, in seconds, between sending probes to members.
- Expected
Codes string - optional 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 - optional 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".
- Lb
Monitor stringId - string → ID of the resource.
- Max
Retries float64 - required number → Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- Max
Retries float64Down - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- Name string
- optional string → The Name of the Monitor.
- Pool
Id string - required string → The id of the pool that this monitor will be assigned to.
- Region string
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - Timeout float64
- required 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.
- Timeouts
Lb
Monitor Timeouts Args - Type string
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Url
Path string - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- admin
State BooleanUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- delay Double
- required number → The time, in seconds, between sending probes to members.
- expected
Codes String - optional 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 - optional 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".
- lb
Monitor StringId - string → ID of the resource.
- max
Retries Double - required number → Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- max
Retries DoubleDown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name String
- optional string → The Name of the Monitor.
- pool
Id String - required string → The id of the pool that this monitor will be assigned to.
- region String
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeout Double
- required 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.
- timeouts
Lb
Monitor Timeouts - type String
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- url
Path String - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- admin
State booleanUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- delay number
- required number → The time, in seconds, between sending probes to members.
- expected
Codes string - optional 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 - optional 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".
- lb
Monitor stringId - string → ID of the resource.
- max
Retries number - required 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 - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name string
- optional string → The Name of the Monitor.
- pool
Id string - required string → The id of the pool that this monitor will be assigned to.
- region string
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeout number
- required 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.
- timeouts
Lb
Monitor Timeouts - type string
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- url
Path string - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- admin_
state_ boolup - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- delay float
- required number → The time, in seconds, between sending probes to members.
- expected_
codes str - optional 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 str - optional 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".
- lb_
monitor_ strid - string → ID of the resource.
- max_
retries float - required number → Number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- max_
retries_ floatdown - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name str
- optional string → The Name of the Monitor.
- pool_
id str - required string → The id of the pool that this monitor will be assigned to.
- region str
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeout float
- required 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.
- timeouts
Lb
Monitor Timeouts Args - type str
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- url_
path str - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- admin
State BooleanUp - optional boolean → The administrative state of the monitor. A valid value is true (UP) or false (DOWN).
- delay Number
- required number → The time, in seconds, between sending probes to members.
- expected
Codes String - optional 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 - optional 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".
- lb
Monitor StringId - string → ID of the resource.
- max
Retries Number - required 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 - optional number → Number of permissible ping failures befor changing the member's status to ERROR. Must be a number between 1 and 10. Changing this updates the max_retries_down of the existing monitor.
- name String
- optional string → The Name of the Monitor.
- pool
Id String - required string → The id of the pool that this monitor will be assigned to.
- region String
- optional string → The region in which to obtain the Loadbalancer client. If omitted, the
region
argument of the provider is used. Changing this creates a new monitor. - timeout Number
- required 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.
- timeouts Property Map
- type String
- required string → The type of probe, which is PING, TCP, HTTP, HTTPS, TLS-HELLO or UDP-CONNECT, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- url
Path String - optional string → Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
Supporting Types
LbMonitorTimeouts, LbMonitorTimeoutsArgs
Import
Load Balancer Pool Monitor can be imported using the Monitor ID, e.g.:
$ pulumi import vkcs:index/lbMonitor:LbMonitor monitor_1 47c26fc3-2403-427a-8c79-1589bd0533c2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.