cloudflare
Version:
The official TypeScript library for the Cloudflare API
62 lines • 2.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ASPA = exports.BaseASPA = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
var BaseASPA = /* @__PURE__ */ (() => {
class BaseASPA extends resource_1.APIResource {
/**
* Retrieves ASPA (Autonomous System Provider Authorization) changes over time.
* Returns daily aggregated changes including additions, removals, and
* modifications of ASPA objects.
*
* @example
* ```ts
* const response = await client.radar.bgp.rpki.aspa.changes();
* ```
*/
changes(query = {}, options) {
return this._client.get('/radar/bgp/rpki/aspa/changes', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves current or historical ASPA (Autonomous System Provider Authorization)
* objects. ASPA objects define which ASNs are authorized upstream providers for a
* customer ASN.
*
* @example
* ```ts
* const response =
* await client.radar.bgp.rpki.aspa.snapshot();
* ```
*/
snapshot(query = {}, options) {
return this._client.get('/radar/bgp/rpki/aspa/snapshot', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves ASPA (Autonomous System Provider Authorization) object count over
* time. Supports filtering by RIR or location (country code) to generate multiple
* named series. If no RIR or location filter is specified, returns total count.
*
* @example
* ```ts
* const response =
* await client.radar.bgp.rpki.aspa.timeseries();
* ```
*/
timeseries(query = {}, options) {
return this._client.get('/radar/bgp/rpki/aspa/timeseries', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseASPA._key = Object.freeze([
'radar',
'bgp',
'rpki',
'aspa',
]);
return BaseASPA;
})();
exports.BaseASPA = BaseASPA;
class ASPA extends BaseASPA {
}
exports.ASPA = ASPA;
//# sourceMappingURL=aspa.js.map