---
title: "Redirect"
description: "Each part set replaces the request's, and null keeps it; the query is always kept. At least one of scheme, host, port and path is set."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Load Balancers API

Each part set replaces the request's, and null keeps it; the query is always kept. At least one of scheme, host, port and path is set.

## Fields

- `Redirect.host` (string | null, required)
  - maxLength 253
- `Redirect.path` (string | null, required)
  - maxLength 1024
- `Redirect.port` (integer | null, required)
  - min 1; max 65535
- `Redirect.scheme` (string | null, required)
  - one of `"http"`, `"https"`, `null`
- `Redirect.statusCode` (unknown, required) — Default 302.
  - one of `301`, `302`, `307`, `308`


Source: https://docs.ezghcloud.com/lb-api/schemas/Redirect/index.md
