cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.13 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { SinglePage } from "../../../core/pagination.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseZsk = /* @__PURE__ */ (() => {
class BaseZsk extends APIResource {
/**
* List the Zone Signing Keys (ZSKs) that DNSSEC uses for the zone.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const zskListResponse of client.dns.dnssec.zsk.list(
* { zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
* }
* ```
*/
list(params, options) {
const { zone_id } = params;
return this._client.getAPIList(path `/zones/${zone_id}/dnssec/zsk`, (SinglePage), options);
}
}
BaseZsk._key = Object.freeze([
'dns',
'dnssec',
'zsk',
]);
return BaseZsk;
})();
export class Zsk extends BaseZsk {
}
//# sourceMappingURL=zsk.mjs.map