openstack.loadbalancer.MonitorV1
Explore with Pulumi AI
Manages a V1 load balancer monitor resource within OpenStack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const monitor1 = new openstack.loadbalancer.MonitorV1("monitor_1", {
type: "PING",
delay: 30,
timeout: 5,
maxRetries: 3,
adminStateUp: "true",
});
import pulumi
import pulumi_openstack as openstack
monitor1 = openstack.loadbalancer.MonitorV1("monitor_1",
type="PING",
delay=30,
timeout=5,
max_retries=3,
admin_state_up="true")
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.NewMonitorV1(ctx, "monitor_1", &loadbalancer.MonitorV1Args{
Type: pulumi.String("PING"),
Delay: pulumi.Int(30),
Timeout: pulumi.Int(5),
MaxRetries: pulumi.Int(3),
AdminStateUp: pulumi.String("true"),
})
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.MonitorV1("monitor_1", new()
{
Type = "PING",
Delay = 30,
Timeout = 5,
MaxRetries = 3,
AdminStateUp = "true",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.loadbalancer.MonitorV1;
import com.pulumi.openstack.loadbalancer.MonitorV1Args;
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 MonitorV1("monitor1", MonitorV1Args.builder()
.type("PING")
.delay(30)
.timeout(5)
.maxRetries(3)
.adminStateUp("true")
.build());
}
}
resources:
monitor1:
type: openstack:loadbalancer:MonitorV1
name: monitor_1
properties:
type: PING
delay: 30
timeout: 5
maxRetries: 3
adminStateUp: 'true'
Create MonitorV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorV1(name: string, args: MonitorV1Args, opts?: CustomResourceOptions);
@overload
def MonitorV1(resource_name: str,
args: MonitorV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
delay: Optional[int] = None,
max_retries: Optional[int] = None,
timeout: Optional[int] = None,
type: Optional[str] = None,
admin_state_up: Optional[str] = None,
expected_codes: Optional[str] = None,
http_method: Optional[str] = None,
region: Optional[str] = None,
tenant_id: Optional[str] = None,
url_path: Optional[str] = None)
func NewMonitorV1(ctx *Context, name string, args MonitorV1Args, opts ...ResourceOption) (*MonitorV1, error)
public MonitorV1(string name, MonitorV1Args args, CustomResourceOptions? opts = null)
public MonitorV1(String name, MonitorV1Args args)
public MonitorV1(String name, MonitorV1Args args, CustomResourceOptions options)
type: openstack:loadbalancer:MonitorV1
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 MonitorV1Args
- 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 MonitorV1Args
- 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 MonitorV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorV1Args
- 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 monitorV1Resource = new OpenStack.LoadBalancer.MonitorV1("monitorV1Resource", new()
{
Delay = 0,
MaxRetries = 0,
Timeout = 0,
Type = "string",
AdminStateUp = "string",
ExpectedCodes = "string",
HttpMethod = "string",
Region = "string",
TenantId = "string",
UrlPath = "string",
});
example, err := loadbalancer.NewMonitorV1(ctx, "monitorV1Resource", &loadbalancer.MonitorV1Args{
Delay: pulumi.Int(0),
MaxRetries: pulumi.Int(0),
Timeout: pulumi.Int(0),
Type: pulumi.String("string"),
AdminStateUp: pulumi.String("string"),
ExpectedCodes: pulumi.String("string"),
HttpMethod: pulumi.String("string"),
Region: pulumi.String("string"),
TenantId: pulumi.String("string"),
UrlPath: pulumi.String("string"),
})
var monitorV1Resource = new MonitorV1("monitorV1Resource", MonitorV1Args.builder()
.delay(0)
.maxRetries(0)
.timeout(0)
.type("string")
.adminStateUp("string")
.expectedCodes("string")
.httpMethod("string")
.region("string")
.tenantId("string")
.urlPath("string")
.build());
monitor_v1_resource = openstack.loadbalancer.MonitorV1("monitorV1Resource",
delay=0,
max_retries=0,
timeout=0,
type="string",
admin_state_up="string",
expected_codes="string",
http_method="string",
region="string",
tenant_id="string",
url_path="string")
const monitorV1Resource = new openstack.loadbalancer.MonitorV1("monitorV1Resource", {
delay: 0,
maxRetries: 0,
timeout: 0,
type: "string",
adminStateUp: "string",
expectedCodes: "string",
httpMethod: "string",
region: "string",
tenantId: "string",
urlPath: "string",
});
type: openstack:loadbalancer:MonitorV1
properties:
adminStateUp: string
delay: 0
expectedCodes: string
httpMethod: string
maxRetries: 0
region: string
tenantId: string
timeout: 0
type: string
urlPath: string
MonitorV1 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 MonitorV1 resource accepts the following input properties:
- Delay int
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- Max
Retries int - 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.
- 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. Changing this updates the timeout of the existing monitor.
- Type string
- 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.
- Admin
State stringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- Expected
Codes string - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- Http
Method string - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- Region string
- 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. - Tenant
Id string - The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.
- Url
Path string - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS. Changing this updates the url_path of the existing monitor.
- Delay int
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- Max
Retries int - 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.
- 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. Changing this updates the timeout of the existing monitor.
- Type string
- 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.
- Admin
State stringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- Expected
Codes string - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- Http
Method string - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- Region string
- 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. - Tenant
Id string - The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.
- Url
Path string - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS. Changing this updates the url_path of the existing monitor.
- delay Integer
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- max
Retries Integer - 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.
- 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. Changing this updates the timeout of the existing monitor.
- type String
- 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.
- admin
State StringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- expected
Codes String - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- http
Method String - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- region String
- 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. - tenant
Id String - The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.
- url
Path String - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS. Changing this updates the url_path of the existing monitor.
- delay number
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- max
Retries number - 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.
- 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. Changing this updates the timeout of the existing monitor.
- type string
- 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.
- admin
State stringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- expected
Codes string - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- http
Method string - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- region string
- 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. - tenant
Id string - The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.
- url
Path string - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS. Changing this updates the url_path of the existing monitor.
- delay int
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- max_
retries int - 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.
- 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. Changing this updates the timeout of the existing monitor.
- type str
- 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.
- admin_
state_ strup - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- 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". Changing this updates the expected_codes of the existing monitor.
- 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". Changing this updates the http_method of the existing monitor.
- region str
- 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. - tenant_
id str - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the url_path of the existing monitor.
- delay Number
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- max
Retries Number - 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.
- 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. Changing this updates the timeout of the existing monitor.
- type String
- 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.
- admin
State StringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- expected
Codes String - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- http
Method String - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- region String
- 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. - tenant
Id String - The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.
- url
Path String - Required for HTTP(S) types. URI path that will be accessed if monitor type is HTTP or HTTPS. Changing this updates the url_path of the existing monitor.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorV1 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 MonitorV1 Resource
Get an existing MonitorV1 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?: MonitorV1State, opts?: CustomResourceOptions): MonitorV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[str] = None,
delay: Optional[int] = None,
expected_codes: Optional[str] = None,
http_method: Optional[str] = None,
max_retries: Optional[int] = None,
region: Optional[str] = None,
tenant_id: Optional[str] = None,
timeout: Optional[int] = None,
type: Optional[str] = None,
url_path: Optional[str] = None) -> MonitorV1
func GetMonitorV1(ctx *Context, name string, id IDInput, state *MonitorV1State, opts ...ResourceOption) (*MonitorV1, error)
public static MonitorV1 Get(string name, Input<string> id, MonitorV1State? state, CustomResourceOptions? opts = null)
public static MonitorV1 get(String name, Output<String> id, MonitorV1State 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.
- Admin
State stringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- Delay int
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- Expected
Codes string - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- Http
Method string - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- Max
Retries int - 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.
- Region string
- 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. - Tenant
Id string - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the timeout of the existing monitor.
- Type string
- 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.
- Url
Path string - 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.
- Admin
State stringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- Delay int
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- Expected
Codes string - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- Http
Method string - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- Max
Retries int - 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.
- Region string
- 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. - Tenant
Id string - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the timeout of the existing monitor.
- Type string
- 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.
- Url
Path string - 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.
- admin
State StringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- delay Integer
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- expected
Codes String - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- http
Method String - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- max
Retries Integer - 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.
- region String
- 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. - tenant
Id String - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the timeout of the existing monitor.
- type String
- 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.
- url
Path String - 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.
- admin
State stringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- delay number
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- expected
Codes string - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- http
Method string - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- max
Retries number - 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.
- region string
- 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. - tenant
Id string - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the timeout of the existing monitor.
- type string
- 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.
- url
Path string - 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.
- admin_
state_ strup - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- delay int
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- 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". Changing this updates the expected_codes of the existing monitor.
- 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". Changing this updates the http_method of the existing monitor.
- max_
retries int - 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.
- region str
- 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. - tenant_
id str - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the timeout of the existing monitor.
- type str
- 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.
- url_
path str - 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.
- admin
State StringUp - The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
- delay Number
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
- expected
Codes String - Required for HTTP(S) types. Expected HTTP codes for a passing HTTP(S) monitor. You can either specify a single status like "200", or a range like "200-202". Changing this updates the expected_codes of the existing monitor.
- http
Method String - Required for HTTP(S) types. The HTTP method used for requests by the monitor. If this attribute is not specified, it defaults to "GET". Changing this updates the http_method of the existing monitor.
- max
Retries Number - 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.
- region String
- 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. - tenant
Id String - The owner of the monitor. Required if admin wants to create a monitor for another tenant. 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. Changing this updates the timeout of the existing monitor.
- type String
- 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.
- url
Path String - 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.
Import
Load Balancer Members can be imported using the id
, e.g.
$ pulumi import openstack:loadbalancer/monitorV1:MonitorV1 monitor_1 119d7530-72e9-449a-aa97-124a5ef1992c
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.