cloudflare
Version:
The official TypeScript library for the Cloudflare API
49 lines • 1.69 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 BaseASN extends APIResource {
static readonly _key: readonly ['botnetFeed', 'asn'];
/**
* Gets all the data the botnet tracking database has for a given ASN registered to
* user account for given date. If no date is given, it will return results for the
* previous day.
*/
dayReport(asnID: number, params: ASNDayReportParams, options?: RequestOptions): APIPromise<ASNDayReportResponse>;
/**
* Gets all the data the botnet threat feed tracking database has for a given ASN
* registered to user account.
*/
fullReport(asnID: number, params: ASNFullReportParams, options?: RequestOptions): APIPromise<ASNFullReportResponse>;
}
export declare class ASN extends BaseASN {
}
export interface ASNDayReportResponse {
cidr?: string;
date?: string;
offense_count?: number;
}
export interface ASNFullReportResponse {
cidr?: string;
date?: string;
offense_count?: number;
}
export interface ASNDayReportParams {
/**
* Path param: Identifier.
*/
account_id: string;
/**
* Query param
*/
date?: string;
}
export interface ASNFullReportParams {
/**
* Identifier.
*/
account_id: string;
}
export declare namespace ASN {
export { type ASNDayReportResponse as ASNDayReportResponse, type ASNFullReportResponse as ASNFullReportResponse, type ASNDayReportParams as ASNDayReportParams, type ASNFullReportParams as ASNFullReportParams, };
}
//# sourceMappingURL=asn.d.ts.map