cloudflare
Version:
The official TypeScript library for the Cloudflare API
15 lines • 548 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../resource.mjs";
export class IPs extends APIResource {
/**
* Fetches routes that contain the given IP address.
*/
get(ip, params, options) {
const { account_id, ...query } = params;
return this._client.get(`/accounts/${account_id}/teamnet/routes/ip/${ip}`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=ips.mjs.map