cloudflare
Version:
The official TypeScript library for the Cloudflare API
46 lines • 1.55 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as AdvancedDDoSAPI from 'cloudflare/resources/zones/settings/advanced-ddos';
export declare class AdvancedDDoS extends APIResource {
/**
* Advanced protection from Distributed Denial of Service (DDoS) attacks on your
* website. This is an uneditable value that is 'on' in the case of Business and
* Enterprise zones.
*/
get(params: AdvancedDDoSGetParams, options?: Core.RequestOptions): Core.APIPromise<ZoneSettingAdvancedDDoS>;
}
/**
* Advanced protection from Distributed Denial of Service (DDoS) attacks on your
* website. This is an uneditable value that is 'on' in the case of Business and
* Enterprise zones.
*/
export interface ZoneSettingAdvancedDDoS {
/**
* ID of the zone setting.
*/
id: 'advanced_ddos';
/**
* Current value of the zone setting.
*/
value: 'on' | 'off';
/**
* Whether or not this setting can be modified for this zone (based on your
* Cloudflare plan level).
*/
editable?: true | false;
/**
* last time this setting was modified.
*/
modified_on?: string | null;
}
export interface AdvancedDDoSGetParams {
/**
* Identifier
*/
zone_id: string;
}
export declare namespace AdvancedDDoS {
export import ZoneSettingAdvancedDDoS = AdvancedDDoSAPI.ZoneSettingAdvancedDDoS;
export import AdvancedDDoSGetParams = AdvancedDDoSAPI.AdvancedDDoSGetParams;
}
//# sourceMappingURL=advanced-ddos.d.ts.map