UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

66 lines 2.57 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as SecurityLevelAPI from 'cloudflare/resources/zones/settings/security-level'; export declare class SecurityLevelResource extends APIResource { /** * Choose the appropriate security profile for your website, which will * automatically adjust each of the security settings. If you choose to customize * an individual security setting, the profile will become Custom. * (https://support.cloudflare.com/hc/en-us/articles/200170056). */ edit(params: SecurityLevelEditParams, options?: Core.RequestOptions): Core.APIPromise<SecurityLevel>; /** * Choose the appropriate security profile for your website, which will * automatically adjust each of the security settings. If you choose to customize * an individual security setting, the profile will become Custom. * (https://support.cloudflare.com/hc/en-us/articles/200170056). */ get(params: SecurityLevelGetParams, options?: Core.RequestOptions): Core.APIPromise<SecurityLevel>; } /** * Choose the appropriate security profile for your website, which will * automatically adjust each of the security settings. If you choose to customize * an individual security setting, the profile will become Custom. * (https://support.cloudflare.com/hc/en-us/articles/200170056). */ export interface SecurityLevel { /** * ID of the zone setting. */ id: 'security_level'; /** * Current value of the zone setting. */ value: 'off' | 'essentially_off' | 'low' | 'medium' | 'high' | 'under_attack'; /** * 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 SecurityLevelEditParams { /** * Path param: Identifier */ zone_id: string; /** * Body param: Value of the zone setting. */ value: 'off' | 'essentially_off' | 'low' | 'medium' | 'high' | 'under_attack'; } export interface SecurityLevelGetParams { /** * Identifier */ zone_id: string; } export declare namespace SecurityLevelResource { export import SecurityLevel = SecurityLevelAPI.SecurityLevel; export import SecurityLevelEditParams = SecurityLevelAPI.SecurityLevelEditParams; export import SecurityLevelGetParams = SecurityLevelAPI.SecurityLevelGetParams; } //# sourceMappingURL=security-level.d.ts.map