Class MonitorV1
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.loadbalancer.MonitorV1
-
public class MonitorV1 extends com.pulumi.resources.CustomResourceManages a V1 load balancer monitor resource within OpenStack. ## Example Usage ```java 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() .adminStateUp("true") .delay(30) .maxRetries(3) .timeout(5) .type("PING") .build()); } } ``` ## Import Load Balancer Members can be imported using the `id`, e.g. ```sh $ pulumi import openstack:loadbalancer/monitorV1:MonitorV1 monitor_1 119d7530-72e9-449a-aa97-124a5ef1992c ```
-
-
Constructor Summary
Constructors Constructor Description MonitorV1(java.lang.String name)MonitorV1(java.lang.String name, MonitorV1Args args)MonitorV1(java.lang.String name, MonitorV1Args args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>adminStateUp()com.pulumi.core.Output<java.lang.Integer>delay()com.pulumi.core.Output<java.util.Optional<java.lang.String>>expectedCodes()static MonitorV1get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, MonitorV1State state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.String>>httpMethod()com.pulumi.core.Output<java.lang.Integer>maxRetries()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>tenantId()com.pulumi.core.Output<java.lang.Integer>timeout()com.pulumi.core.Output<java.lang.String>type()com.pulumi.core.Output<java.util.Optional<java.lang.String>>urlPath()
-
-
-
Constructor Detail
-
MonitorV1
public MonitorV1(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
MonitorV1
public MonitorV1(java.lang.String name, MonitorV1Args args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
MonitorV1
public MonitorV1(java.lang.String name, MonitorV1Args args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
adminStateUp
public com.pulumi.core.Output<java.lang.String> adminStateUp()
- Returns:
- The administrative state of the monitor. Acceptable values are "true" and "false". Changing this value updates the state of the existing monitor.
-
delay
public com.pulumi.core.Output<java.lang.Integer> delay()
- Returns:
- The time, in seconds, between sending probes to members. Changing this creates a new monitor.
-
expectedCodes
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> expectedCodes()
- Returns:
- 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.
-
httpMethod
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> httpMethod()
- Returns:
- 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.
-
maxRetries
public com.pulumi.core.Output<java.lang.Integer> maxRetries()
- Returns:
- 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
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- 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.
-
tenantId
public com.pulumi.core.Output<java.lang.String> tenantId()
- Returns:
- The owner of the monitor. Required if admin wants to create a monitor for another tenant. Changing this creates a new monitor.
-
timeout
public com.pulumi.core.Output<java.lang.Integer> timeout()
- Returns:
- 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
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- 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.
-
urlPath
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> urlPath()
- Returns:
- 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.
-
get
public static MonitorV1 get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable MonitorV1State state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-