HarborHarbor
DocumentationGuidesPlugins
All plugins

Cloudflare API

Cloudflare API for token, user, and zone inspection

APICategory: infraPopularity 90cloudflare

Cloudflare API for token, user, and zone inspection

Install

hrbr plugins install cloudflare-api

Harbor calls https://api.cloudflare.com/client/v4 (driven by the upstream OpenAPI spec).

Quick start

hrbr exec 'return await cloudflare.get({ /* see schema */ })'

Or from a Function:

import { defineOrbitJob } from "@hrbr/orbit";

export default defineOrbitJob({
  name: "cloudflare-api-example",
  handler: async (ctx) => {
    return await ctx.plugins.cloudflare.list({ limit: 5 });
  },
});

Tools

Tools are generated from the upstream OpenAPI spec. Inspect with:

hrbr plugins tools cloudflare-api

Or open the dashboard plugin page for the live tool list.