cloudflare
Version:
The official TypeScript library for the Cloudflare API
65 lines • 2.56 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as ExcludesAPI from 'cloudflare/resources/zero-trust/devices/policies/excludes';
import { SinglePage } from 'cloudflare/pagination';
export declare class Excludes extends APIResource {
/**
* Sets the list of routes excluded from the WARP client's tunnel.
*/
update(params: ExcludeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<ExcludeUpdateResponse | null>;
/**
* Fetches the list of routes excluded from the WARP client's tunnel.
*/
list(params: ExcludeListParams, options?: Core.RequestOptions): Core.PagePromise<DevicesSplitTunnelsSinglePage, DevicesSplitTunnel>;
/**
* Fetches the list of routes excluded from the WARP client's tunnel for a specific
* device settings profile.
*/
get(policyId: string, params: ExcludeGetParams, options?: Core.RequestOptions): Core.APIPromise<ExcludeGetResponse | null>;
}
export declare class DevicesSplitTunnelsSinglePage extends SinglePage<DevicesSplitTunnel> {
}
export interface DevicesSplitTunnel {
/**
* The address in CIDR format to exclude from the tunnel. If `address` is present,
* `host` must not be present.
*/
address: string;
/**
* A description of the Split Tunnel item, displayed in the client UI.
*/
description: string;
/**
* The domain name to exclude from the tunnel. If `host` is present, `address` must
* not be present.
*/
host?: string;
}
export type ExcludeUpdateResponse = Array<DevicesSplitTunnel>;
export type ExcludeGetResponse = Array<DevicesSplitTunnel>;
export interface ExcludeUpdateParams {
/**
* Path param:
*/
account_id: string;
/**
* Body param:
*/
body: Array<DevicesSplitTunnel>;
}
export interface ExcludeListParams {
account_id: string;
}
export interface ExcludeGetParams {
account_id: string;
}
export declare namespace Excludes {
export import DevicesSplitTunnel = ExcludesAPI.DevicesSplitTunnel;
export import ExcludeUpdateResponse = ExcludesAPI.ExcludeUpdateResponse;
export import ExcludeGetResponse = ExcludesAPI.ExcludeGetResponse;
export import DevicesSplitTunnelsSinglePage = ExcludesAPI.DevicesSplitTunnelsSinglePage;
export import ExcludeUpdateParams = ExcludesAPI.ExcludeUpdateParams;
export import ExcludeListParams = ExcludesAPI.ExcludeListParams;
export import ExcludeGetParams = ExcludesAPI.ExcludeGetParams;
}
//# sourceMappingURL=excludes.d.ts.map