interface AclActionRedirect {
    code?: number;
    target: string;
    type: AclActionRedirectRedirectType;
}

Properties

Properties

code?: number

HTTP redirect code to use. Valid values are 301, 302, 303, 307 and 308. Default value is 302.

target: string

Redirect target. For a location redirect, you can use a URL e.g. https://scaleway.com. Using a scheme name (e.g. https, http, ftp, git) will replace the request's original scheme. This can be useful to implement HTTP to HTTPS redirects. Valid placeholders that can be used in a location redirect to preserve parts of the original request in the redirection URL are {{host}}, {{query}}, {{path}} and {{scheme}}.

Redirect type.