cloudflare
Version:
The official TypeScript library for the Cloudflare API
12 lines • 496 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../resource.mjs";
export class Tokens extends APIResource {
/**
* Generate authentication token for VPC flow logs export.
*/
create(params, options) {
const { account_id } = params;
return this._client.post(`/accounts/${account_id}/mnm/vpc-flows/token`, options)._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=tokens.mjs.map