@datatr-ux/ovhcloud-types
Version:
TypeScript types for OVHCloud projects
23 lines • 1.18 kB
TypeScript
import { L7PolicyActionEnum } from './L7PolicyActionEnum';
/** L7 policy */
export interface L7PolicyUpdate {
/** The L7 policy action */
action: L7PolicyActionEnum;
/** A human-readable description for the resource */
description: string;
/** The ID of the listener. */
listenerId: string;
/** Human-readable name of the resource */
name: string;
/** The position of this policy on the listener. Positions start at 1 */
position: number;
/** Requests matching this policy will be redirected to the specified URL or Prefix URL with the HTTP response code. Valid if action is "redirect_to" or "redirect_prefix" */
redirectHttpCode?: number;
/** Requests matching this policy will be redirected to the pool with this ID. Only valid if action is "redirect_to_pool" */
redirectPoolId?: string;
/** Requests matching this policy will be redirected to this Prefix URL. Only valid if action is "redirect_prefix" */
redirectPrefix?: string;
/** Requests matching this policy will be redirected to this URL. Only valid if action is "redirect_to_url" */
redirectUrl?: string;
}
//# sourceMappingURL=L7PolicyUpdate.d.ts.map