Skip to content

Action

type names the one of forward, redirect and fixedResponse that is set; the others are null.

Fields

  • fixedResponseFixedResponseornullrequired
    2 variants

    One of the following:

    • 3 properties
      • bodystringrequired

        UTF-8, at most 1024 bytes. Default empty.

      • contentTypetext/plainortext/htmlorapplication/jsonrequired

        Default text/plain.

      • statusCodeintegerrequired
        maximum: 599, minimum: 200
    • null
  • forwardForwardornullrequired
    2 variants

    One of the following:

    • Forward
      3 properties
      • requestHeaderModifierHeaderModifierornullrequired

        Changes the request's headers before it goes to the target.

        2 variants

        One of the following:

      • responseHeaderModifierHeaderModifierornullrequired

        Changes the target's response headers before they reach the client.

        2 variants

        One of the following:

      • targetGroupsarray ofobjectrequired

        Each request picks a group by weight; the sum of weights is above 0.

        2 properties
        • targetGroupstringrequired

          An http target group of the listener's load balancer.

        • weightintegerrequired

          Required with more than one group; 0 never receives.

          maximum: 999, minimum: 0
    • null
  • redirectRedirectornullrequired
    2 variants

    One of the following:

    • Redirect
      5 properties
      • hoststring | nullrequired
        maxLength: 253
      • pathstring | nullrequired
        maxLength: 1024
      • portinteger | nullrequired
        maximum: 65535, minimum: 1
      • schemehttporhttpsornullrequired
      • statusCode301or302or307or308required

        Default 302.

    • null
  • typeforwardorredirectorfixedResponserequired
Navigation

Type to search…

↑↓ navigate↵ selectEsc close