UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

13 lines 559 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../resource.mjs"; export class IPs extends APIResource { /** * Gets the geolocation, ASN, infrastructure type of the ASN, and any security * threat categories of an IP address. */ get(params, options) { const { account_id, ...query } = params; return this._client.get(`/accounts/${account_id}/intel/ip`, { query, ...options })._thenUnwrap((obj) => obj.result); } } //# sourceMappingURL=ips.mjs.map