Resource

dcloud_lb_rule

A host/path rule of an application load balancer: matching requests go to the targets of one target_group (see dcloud_lb_target). Lowest priority first; requests no rule matches go to the default group. Any change replaces the rule.

Schema

Required

  • load_balancer_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.
  • priority (Number) 1–1000, evaluated lowest first; unique per load balancer (a taken one is refused). At most 50 rules. From 1 to 1000. Changing it replaces the resource.
  • target_group (String) The target group that serves matching requests. Must match ^[a-z0-9]([a-z0-9-]{0,30}[a-z0-9])?$. Changing it replaces the resource.

Optional

  • host (String) One of the load balancer’s own names (its platform name or a name of its https service). Left out: every name it answers to. Up to 253 characters. Changing it replaces the resource.
  • path_prefix (String) Matches on path segments: /api matches /api, /api/ and /api/v1, not /apix. Left out: any path. Up to 256 characters. Must match ^\/[^\s?#*]*$. Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.

Generated from the provider's schema.