Creates and manages IonosCloud Application Load Balancer Forwarding Rule.
Manages an Application Load Balancer Forwarding Rule on IonosCloud.
The following arguments are supported:
datacenter_id
- (Required)[string] The ID of a Virtual Data Center.
application_loadbalancer_id
- (Required)[string] The ID of Application Load Balancer.
name
- (Required)[string] The name of the Application Load Balancer forwarding rule.
protocol
- (Required)[string] Balancing protocol.
listener_ip
- (Required)[string] Listening (inbound) IP.
listener_port
- (Required)[int] Listening (inbound) port number; valid range is 1 to 65535.
client_timeout
- (Optional)[int] The maximum time in milliseconds to wait for the client to acknowledge or send data; default is 50,000 (50 seconds).
server_certificates
- (Optional)[list] Array of certificate ids. You can create certificates with the certificate resource.
http_rules
- (Optional)[list] Array of items in that collection
name
- (Required)[string] The unique name of the Application Load Balancer HTTP rule.
type
- (Required)[string] Type of the Http Rule.
target_group
- (Optional)[string] The UUID of the target group; mandatory for FORWARD action.
drop_query
- (Optional)[bool] Default is false; valid only for REDIRECT actions.
location
- (Optional)[string] The location for redirecting; mandatory and valid only for REDIRECT actions.
status_code
- (Optional)[int] Valid only for REDIRECT and STATIC actions. For REDIRECT actions, default is 301 and possible values are 301, 302, 303, 307, and 308. For STATIC actions, default is 503 and valid range is 200 to 599.
response_message
- (Optional)[string] The response message of the request; mandatory for STATIC action.
content_type
- (Optional)[string] Valid only for STATIC actions.
conditions
- (Optional)[list] - An array of items in the collection.The action is only performed if each and every condition is met; if no conditions are set, the rule will always be performed.
type
- (Required)[string] Type of the Http Rule condition.
condition
- (Required)[string] Matching rule for the HTTP rule condition attribute; mandatory for HEADER, PATH, QUERY, METHOD, HOST, and COOKIE types; must be null when type is SOURCE_IP.
negate
- (Optional)[bool] Specifies whether the condition is negated or not; the default is False.
key
- (Optional)[string] Must be null when type is PATH, METHOD, HOST, or SOURCE_IP. Key can only be set when type is COOKIES, HEADER, or QUERY.
value
- (Optional)[string] Mandatory for conditions CONTAINS, EQUALS, MATCHES, STARTS_WITH, ENDS_WITH; must be null when condition is EXISTS; should be a valid CIDR if provided and if type is SOURCE_IP.
Resource Application Load Balancer Forwarding Rule can be imported using the resource id
, alb id
and datacenter id
, e.g.