import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; import { SinglePage } from "../../../pagination.js"; export declare class Config extends APIResource { /** * Create a new Scan Config * * @example * ```ts * const config = * await client.cloudforceOne.scans.config.create({ * account_id: 'account_id', * ips: ['1.1.1.1', '2606:4700:4700::1111'], * }); * ``` */ create(params: ConfigCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * List Scan Configs * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const configListResponse of client.cloudforceOne.scans.config.list( * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ list(params: ConfigListParams, options?: Core.RequestOptions): Core.PagePromise; /** * Delete a Scan Config * * @example * ```ts * const config = * await client.cloudforceOne.scans.config.delete( * 'config_id', * { account_id: 'account_id' }, * ); * ``` */ delete(configId: string, params: ConfigDeleteParams, options?: Core.RequestOptions): Core.APIPromise; /** * Update an existing Scan Config * * @example * ```ts * const response = * await client.cloudforceOne.scans.config.edit( * 'config_id', * { account_id: 'account_id' }, * ); * ``` */ edit(configId: string, params: ConfigEditParams, options?: Core.RequestOptions): Core.APIPromise; } export declare class ConfigListResponsesSinglePage extends SinglePage { } export interface ConfigCreateResponse { /** * Defines the Config ID. */ id: string; account_id: string; /** * Defines the number of days between each scan (0 = One-off scan). */ frequency: number; /** * Defines a list of IP addresses or CIDR blocks to scan. The maximum number of * total IP addresses allowed is 5000. */ ips: Array; /** * Defines a list of ports to scan. Valid values are:"default", "all", or a * comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). * "default" scans the 100 most commonly open ports. */ ports: Array; } export interface ConfigListResponse { /** * Defines the Config ID. */ id: string; account_id: string; /** * Defines the number of days between each scan (0 = One-off scan). */ frequency: number; /** * Defines a list of IP addresses or CIDR blocks to scan. The maximum number of * total IP addresses allowed is 5000. */ ips: Array; /** * Defines a list of ports to scan. Valid values are:"default", "all", or a * comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). * "default" scans the 100 most commonly open ports. */ ports: Array; } export type ConfigDeleteResponse = unknown; export interface ConfigEditResponse { /** * Defines the Config ID. */ id: string; account_id: string; /** * Defines the number of days between each scan (0 = One-off scan). */ frequency: number; /** * Defines a list of IP addresses or CIDR blocks to scan. The maximum number of * total IP addresses allowed is 5000. */ ips: Array; /** * Defines a list of ports to scan. Valid values are:"default", "all", or a * comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). * "default" scans the 100 most commonly open ports. */ ports: Array; } export interface ConfigCreateParams { /** * Path param: Defines the Account ID. */ account_id: string; /** * Body param: Defines a list of IP addresses or CIDR blocks to scan. The maximum * number of total IP addresses allowed is 5000. */ ips: Array; /** * Body param: Defines the number of days between each scan (0 = One-off scan). */ frequency?: number; /** * Body param: Defines a list of ports to scan. Valid values are:"default", "all", * or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). * "default" scans the 100 most commonly open ports. */ ports?: Array; } export interface ConfigListParams { /** * Defines the Account ID. */ account_id: string; } export interface ConfigDeleteParams { /** * Defines the Account ID. */ account_id: string; } export interface ConfigEditParams { /** * Path param: Defines the Account ID. */ account_id: string; /** * Body param: Defines the number of days between each scan (0 = One-off scan). */ frequency?: number; /** * Body param: Defines a list of IP addresses or CIDR blocks to scan. The maximum * number of total IP addresses allowed is 5000. */ ips?: Array; /** * Body param: Defines a list of ports to scan. Valid values are:"default", "all", * or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). * "default" scans the 100 most commonly open ports. */ ports?: Array; } export declare namespace Config { export { type ConfigCreateResponse as ConfigCreateResponse, type ConfigListResponse as ConfigListResponse, type ConfigDeleteResponse as ConfigDeleteResponse, type ConfigEditResponse as ConfigEditResponse, ConfigListResponsesSinglePage as ConfigListResponsesSinglePage, type ConfigCreateParams as ConfigCreateParams, type ConfigListParams as ConfigListParams, type ConfigDeleteParams as ConfigDeleteParams, type ConfigEditParams as ConfigEditParams, }; } //# sourceMappingURL=config.d.ts.map