flexibleengine.LbMonitorV3
Explore with Pulumi AI
Manages an ELB monitor resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const poolId = config.requireObject("poolId");
const monitor1 = new flexibleengine.LbMonitorV3("monitor1", {
protocol: "HTTP",
interval: 30,
timeout: 15,
maxRetries: 10,
urlPath: "/api",
port: 8888,
poolId: poolId,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
pool_id = config.require_object("poolId")
monitor1 = flexibleengine.LbMonitorV3("monitor1",
protocol="HTTP",
interval=30,
timeout=15,
max_retries=10,
url_path="/api",
port=8888,
pool_id=pool_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
poolId := cfg.RequireObject("poolId")
_, err := flexibleengine.NewLbMonitorV3(ctx, "monitor1", &flexibleengine.LbMonitorV3Args{
Protocol: pulumi.String("HTTP"),
Interval: pulumi.Float64(30),
Timeout: pulumi.Float64(15),
MaxRetries: pulumi.Float64(10),
UrlPath: pulumi.String("/api"),
Port: pulumi.Float64(8888),
PoolId: pulumi.Any(poolId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var poolId = config.RequireObject<dynamic>("poolId");
var monitor1 = new Flexibleengine.LbMonitorV3("monitor1", new()
{
Protocol = "HTTP",
Interval = 30,
Timeout = 15,
MaxRetries = 10,
UrlPath = "/api",
Port = 8888,
PoolId = poolId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.LbMonitorV3;
import com.pulumi.flexibleengine.LbMonitorV3Args;
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) {
final var config = ctx.config();
final var poolId = config.get("poolId");
var monitor1 = new LbMonitorV3("monitor1", LbMonitorV3Args.builder()
.protocol("HTTP")
.interval(30)
.timeout(15)
.maxRetries(10)
.urlPath("/api")
.port(8888)
.poolId(poolId)
.build());
}
}
configuration:
poolId:
type: dynamic
resources:
monitor1:
type: flexibleengine:LbMonitorV3
properties:
protocol: HTTP
interval: 30
timeout: 15
maxRetries: 10
urlPath: /api
port: 8888
poolId: ${poolId}
Create LbMonitorV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LbMonitorV3(name: string, args: LbMonitorV3Args, opts?: CustomResourceOptions);
@overload
def LbMonitorV3(resource_name: str,
args: LbMonitorV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def LbMonitorV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
interval: Optional[float] = None,
max_retries: Optional[float] = None,
pool_id: Optional[str] = None,
protocol: Optional[str] = None,
timeout: Optional[float] = None,
domain_name: Optional[str] = None,
lb_monitor_v3_id: Optional[str] = None,
port: Optional[float] = None,
region: Optional[str] = None,
status_code: Optional[str] = None,
url_path: Optional[str] = None)
func NewLbMonitorV3(ctx *Context, name string, args LbMonitorV3Args, opts ...ResourceOption) (*LbMonitorV3, error)
public LbMonitorV3(string name, LbMonitorV3Args args, CustomResourceOptions? opts = null)
public LbMonitorV3(String name, LbMonitorV3Args args)
public LbMonitorV3(String name, LbMonitorV3Args args, CustomResourceOptions options)
type: flexibleengine:LbMonitorV3
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 LbMonitorV3Args
- 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 LbMonitorV3Args
- 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 LbMonitorV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbMonitorV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbMonitorV3Args
- 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 lbMonitorV3Resource = new Flexibleengine.LbMonitorV3("lbMonitorV3Resource", new()
{
Interval = 0,
MaxRetries = 0,
PoolId = "string",
Protocol = "string",
Timeout = 0,
DomainName = "string",
LbMonitorV3Id = "string",
Port = 0,
Region = "string",
StatusCode = "string",
UrlPath = "string",
});
example, err := flexibleengine.NewLbMonitorV3(ctx, "lbMonitorV3Resource", &flexibleengine.LbMonitorV3Args{
Interval: pulumi.Float64(0),
MaxRetries: pulumi.Float64(0),
PoolId: pulumi.String("string"),
Protocol: pulumi.String("string"),
Timeout: pulumi.Float64(0),
DomainName: pulumi.String("string"),
LbMonitorV3Id: pulumi.String("string"),
Port: pulumi.Float64(0),
Region: pulumi.String("string"),
StatusCode: pulumi.String("string"),
UrlPath: pulumi.String("string"),
})
var lbMonitorV3Resource = new LbMonitorV3("lbMonitorV3Resource", LbMonitorV3Args.builder()
.interval(0)
.maxRetries(0)
.poolId("string")
.protocol("string")
.timeout(0)
.domainName("string")
.lbMonitorV3Id("string")
.port(0)
.region("string")
.statusCode("string")
.urlPath("string")
.build());
lb_monitor_v3_resource = flexibleengine.LbMonitorV3("lbMonitorV3Resource",
interval=0,
max_retries=0,
pool_id="string",
protocol="string",
timeout=0,
domain_name="string",
lb_monitor_v3_id="string",
port=0,
region="string",
status_code="string",
url_path="string")
const lbMonitorV3Resource = new flexibleengine.LbMonitorV3("lbMonitorV3Resource", {
interval: 0,
maxRetries: 0,
poolId: "string",
protocol: "string",
timeout: 0,
domainName: "string",
lbMonitorV3Id: "string",
port: 0,
region: "string",
statusCode: "string",
urlPath: "string",
});
type: flexibleengine:LbMonitorV3
properties:
domainName: string
interval: 0
lbMonitorV3Id: string
maxRetries: 0
poolId: string
port: 0
protocol: string
region: string
statusCode: string
timeout: 0
urlPath: string
LbMonitorV3 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 LbMonitorV3 resource accepts the following input properties:
- Interval double
- Specifies the time, in seconds, between sending probes to members.
- Max
Retries double - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- Pool
Id string - Specifies the id of the pool that this monitor will be assigned to.
- Protocol string
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Timeout double
- Specifies the 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.
- Domain
Name string - Specifies the Domain Name of the Monitor.
- Lb
Monitor stringV3Id - The unique ID for the monitor.
- Port double
- Specifies the health check port. The value ranges from 1 to 65535.
- Region string
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- Status
Code string - Url
Path string - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- Interval float64
- Specifies the time, in seconds, between sending probes to members.
- Max
Retries float64 - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- Pool
Id string - Specifies the id of the pool that this monitor will be assigned to.
- Protocol string
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Timeout float64
- Specifies the 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.
- Domain
Name string - Specifies the Domain Name of the Monitor.
- Lb
Monitor stringV3Id - The unique ID for the monitor.
- Port float64
- Specifies the health check port. The value ranges from 1 to 65535.
- Region string
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- Status
Code string - Url
Path string - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- interval Double
- Specifies the time, in seconds, between sending probes to members.
- max
Retries Double - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool
Id String - Specifies the id of the pool that this monitor will be assigned to.
- protocol String
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- timeout Double
- Specifies the 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.
- domain
Name String - Specifies the Domain Name of the Monitor.
- lb
Monitor StringV3Id - The unique ID for the monitor.
- port Double
- Specifies the health check port. The value ranges from 1 to 65535.
- region String
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status
Code String - url
Path String - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- interval number
- Specifies the time, in seconds, between sending probes to members.
- max
Retries number - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool
Id string - Specifies the id of the pool that this monitor will be assigned to.
- protocol string
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- timeout number
- Specifies the 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.
- domain
Name string - Specifies the Domain Name of the Monitor.
- lb
Monitor stringV3Id - The unique ID for the monitor.
- port number
- Specifies the health check port. The value ranges from 1 to 65535.
- region string
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status
Code string - url
Path string - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- interval float
- Specifies the time, in seconds, between sending probes to members.
- max_
retries float - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool_
id str - Specifies the id of the pool that this monitor will be assigned to.
- protocol str
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- timeout float
- Specifies the 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.
- domain_
name str - Specifies the Domain Name of the Monitor.
- lb_
monitor_ strv3_ id - The unique ID for the monitor.
- port float
- Specifies the health check port. The value ranges from 1 to 65535.
- region str
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status_
code str - url_
path str - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- interval Number
- Specifies the time, in seconds, between sending probes to members.
- max
Retries Number - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool
Id String - Specifies the id of the pool that this monitor will be assigned to.
- protocol String
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- timeout Number
- Specifies the 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.
- domain
Name String - Specifies the Domain Name of the Monitor.
- lb
Monitor StringV3Id - The unique ID for the monitor.
- port Number
- Specifies the health check port. The value ranges from 1 to 65535.
- region String
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status
Code String - url
Path String - Specifies the 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 LbMonitorV3 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 LbMonitorV3 Resource
Get an existing LbMonitorV3 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?: LbMonitorV3State, opts?: CustomResourceOptions): LbMonitorV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
interval: Optional[float] = None,
lb_monitor_v3_id: Optional[str] = None,
max_retries: Optional[float] = None,
pool_id: Optional[str] = None,
port: Optional[float] = None,
protocol: Optional[str] = None,
region: Optional[str] = None,
status_code: Optional[str] = None,
timeout: Optional[float] = None,
url_path: Optional[str] = None) -> LbMonitorV3
func GetLbMonitorV3(ctx *Context, name string, id IDInput, state *LbMonitorV3State, opts ...ResourceOption) (*LbMonitorV3, error)
public static LbMonitorV3 Get(string name, Input<string> id, LbMonitorV3State? state, CustomResourceOptions? opts = null)
public static LbMonitorV3 get(String name, Output<String> id, LbMonitorV3State state, CustomResourceOptions options)
resources: _: type: flexibleengine:LbMonitorV3 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.
- Domain
Name string - Specifies the Domain Name of the Monitor.
- Interval double
- Specifies the time, in seconds, between sending probes to members.
- Lb
Monitor stringV3Id - The unique ID for the monitor.
- Max
Retries double - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- Pool
Id string - Specifies the id of the pool that this monitor will be assigned to.
- Port double
- Specifies the health check port. The value ranges from 1 to 65535.
- Protocol string
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Region string
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- Status
Code string - Timeout double
- Specifies the 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.
- Url
Path string - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- Domain
Name string - Specifies the Domain Name of the Monitor.
- Interval float64
- Specifies the time, in seconds, between sending probes to members.
- Lb
Monitor stringV3Id - The unique ID for the monitor.
- Max
Retries float64 - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- Pool
Id string - Specifies the id of the pool that this monitor will be assigned to.
- Port float64
- Specifies the health check port. The value ranges from 1 to 65535.
- Protocol string
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- Region string
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- Status
Code string - Timeout float64
- Specifies the 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.
- Url
Path string - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- domain
Name String - Specifies the Domain Name of the Monitor.
- interval Double
- Specifies the time, in seconds, between sending probes to members.
- lb
Monitor StringV3Id - The unique ID for the monitor.
- max
Retries Double - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool
Id String - Specifies the id of the pool that this monitor will be assigned to.
- port Double
- Specifies the health check port. The value ranges from 1 to 65535.
- protocol String
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- region String
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status
Code String - timeout Double
- Specifies the 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.
- url
Path String - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- domain
Name string - Specifies the Domain Name of the Monitor.
- interval number
- Specifies the time, in seconds, between sending probes to members.
- lb
Monitor stringV3Id - The unique ID for the monitor.
- max
Retries number - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool
Id string - Specifies the id of the pool that this monitor will be assigned to.
- port number
- Specifies the health check port. The value ranges from 1 to 65535.
- protocol string
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- region string
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status
Code string - timeout number
- Specifies the 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.
- url
Path string - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- domain_
name str - Specifies the Domain Name of the Monitor.
- interval float
- Specifies the time, in seconds, between sending probes to members.
- lb_
monitor_ strv3_ id - The unique ID for the monitor.
- max_
retries float - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool_
id str - Specifies the id of the pool that this monitor will be assigned to.
- port float
- Specifies the health check port. The value ranges from 1 to 65535.
- protocol str
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- region str
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status_
code str - timeout float
- Specifies the 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.
- url_
path str - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
- domain
Name String - Specifies the Domain Name of the Monitor.
- interval Number
- Specifies the time, in seconds, between sending probes to members.
- lb
Monitor StringV3Id - The unique ID for the monitor.
- max
Retries Number - Specifies the number of permissible ping failures before changing the member's status to INACTIVE. Must be a number between 1 and 10.
- pool
Id String - Specifies the id of the pool that this monitor will be assigned to.
- port Number
- Specifies the health check port. The value ranges from 1 to 65535.
- protocol String
- Specifies the type of probe, which is TCP, HTTP, or HTTPS, that is sent by the load balancer to verify the member state. Changing this creates a new monitor.
- region String
- Specifies the region in which to create the ELB monitor resource. If omitted, the provider-level region will be used. Changing this creates a new monitor.
- status
Code String - timeout Number
- Specifies the 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.
- url
Path String - Specifies the required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS.
Import
ELB monitor can be imported using the monitor ID, e.g.
$ pulumi import flexibleengine:index/lbMonitorV3:LbMonitorV3 monitor_1 5c20fdad-7288-11eb-b817-0255ac10158b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.