ApplicationLoadBalancerHttpRule

Properties

| conditions | Array<ApplicationLoadBalancerHttpRuleCondition> | An array of items in the collection. The action will be executed only if each condition is met; the rule will always be applied if no conditions are set. | [optional] |

| content_type | String | Specifies the content type and is valid only for 'STATIC' actions. | [optional] |

| drop_query | Boolean | Indicates whether the query part of the URI should be dropped and is valid only for 'REDIRECT' actions. Default value is 'FALSE', the redirect URI does not contain any query parameters. | [optional] |

| location | String | The location for the redirection; this parameter is mandatory and valid only for 'REDIRECT' actions. | [optional] |

| name | String | The unique name of the Application Load Balancer HTTP rule. | |

| response_message | String | The response message of the request; this parameter is mandatory for 'STATIC' actions. | [optional] |

| status_code | Integer | The status code is for 'REDIRECT' and 'STATIC' actions only. If the HTTP rule is 'REDIRECT' the valid values are: 301, 302, 303, 307, 308; default value is '301'. If the HTTP rule is 'STATIC' the valid values are from the range 200-599; default value is '503'. | [optional] |

| target_group | String | The ID of the target group; this parameter is mandatory and is valid only for 'FORWARD' actions. | [optional] |

| type | String | The HTTP rule type. | |

Example

require 'ionoscloud'


instance = Ionoscloud::ApplicationLoadBalancerHttpRule.new(
  conditions: null,

  content_type: text/html,

  drop_query: true,

  location: www.ionos.com,

  name: My Application Load Balancer HTTP rule,

  response_message: Application Down,

  status_code: 301,

  target_group: 96e514d0-73e4-4abd-8fbc-c0f53b79bfae,

  type: FORWARD
)

Last updated