cloudflare
Version:
The official TypeScript library for the Cloudflare API
40 lines • 1.47 kB
TypeScript
import { APIResource } from "../../../core/resource.js";
import { APIPromise } from "../../../core/api-promise.js";
import { RequestOptions } from "../../../internal/request-options.js";
export declare class BaseFallthrough extends APIResource {
static readonly _key: readonly ['apiGateway', 'expressionTemplate', 'fallthrough'];
/**
* Generates a WAF expression template that matches fallthrough traffic for the
* supplied API hosts. This operation is deprecated and should not be used for new
* integrations.
*
* @deprecated Use the cf.api_gateway.fallthrough_detected field in custom rule for a more customized logic check.
*/
create(params: FallthroughCreateParams, options?: RequestOptions): APIPromise<FallthroughCreateResponse>;
}
export declare class Fallthrough extends BaseFallthrough {
}
export interface FallthroughCreateResponse {
/**
* WAF Expression for fallthrough
*/
expression: string;
/**
* Title for the expression
*/
title: string;
}
export interface FallthroughCreateParams {
/**
* Path param: Identifier.
*/
zone_id: string;
/**
* Body param: List of hosts to be targeted in the expression
*/
hosts: Array<string>;
}
export declare namespace Fallthrough {
export { type FallthroughCreateResponse as FallthroughCreateResponse, type FallthroughCreateParams as FallthroughCreateParams, };
}
//# sourceMappingURL=fallthrough.d.ts.map