UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

18 lines 693 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class Management extends APIResource { /** * Gets a management token used to access the management resources (i.e. Streaming * Logs) of a tunnel. */ create(tunnelId, params, options) { const { account_id, ...body } = params; return this._client.post(`/accounts/${account_id}/cfd_tunnel/${tunnelId}/management`, { body, ...options, })._thenUnwrap((obj) => obj.result); } } (function (Management) { })(Management || (Management = {})); //# sourceMappingURL=management.mjs.map