UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines 1.01 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as ManagementAPI from 'cloudflare/resources/zero-trust/tunnels/management'; export declare class Management extends APIResource { /** * Gets a management token used to access the management resources (i.e. Streaming * Logs) of a tunnel. */ create(tunnelId: string, params: ManagementCreateParams, options?: Core.RequestOptions): Core.APIPromise<ManagementCreateResponse>; } export type ManagementCreateResponse = unknown | Array<unknown> | string; export interface ManagementCreateParams { /** * Path param: Cloudflare account ID */ account_id: string; /** * Body param: */ resources: Array<'logs'>; } export declare namespace Management { export import ManagementCreateResponse = ManagementAPI.ManagementCreateResponse; export import ManagementCreateParams = ManagementAPI.ManagementCreateParams; } //# sourceMappingURL=management.d.ts.map