UNPKG

@datatr-ux/ovhcloud-types

Version:

TypeScript types for OVHCloud projects

32 lines 1.68 kB
import { L7PolicyActionEnum } from './L7PolicyActionEnum'; import { L7PolicyRedirectHTTPCodeEnum } from './L7PolicyRedirectHTTPCodeEnum'; import { LoadBalancerOperatingStatusEnum } from './LoadBalancerOperatingStatusEnum'; import { LoadBalancerProvisioningStatusEnum } from './LoadBalancerProvisioningStatusEnum'; /** L7 policy */ export interface L7Policy { /** The L7 policy action */ action: L7PolicyActionEnum; /** A human-readable description for the resource */ description: string; /** */ id: string; /** The ID of the listener. */ listenerId: string; /** Human-readable name of the resource */ name: string; /** Operating status of the resource */ operatingStatus: LoadBalancerOperatingStatusEnum; /** The position of this policy on the listener. Positions start at 1 */ position: number; /** provisioning status of the resource */ provisioningStatus: LoadBalancerProvisioningStatusEnum; /** 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?: L7PolicyRedirectHTTPCodeEnum; /** 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=L7Policy.d.ts.map