cloudflare / node-cloudflare

Node.js API for Client API
https://cloudflare.github.io/node-cloudflare/
Other
335 stars 92 forks source link

DNSRecords Scan is not supported #105

Closed kevindiamond closed 7 months ago

kevindiamond commented 2 years ago

Hi,

I noticed that the DNSRecords Scan method is not currently supported. I added it to locally to use but should be added to offer a more complete API coverage.

cloudflare/lib/resources/DNSRecords.js

/**
 * Scan for common DNS records on your domain and automatically add them to your zone. Useful if you haven't updated your nameservers yet.
 *
 * @function scan
 * @memberof DNSRecords
 * @instance
 * @async
 * @param {string} zone_id - The zone ID
 * @returns {Promise<Object>} The DNS record object.
 */
scan: method({
  method: 'POST',
  path: 'scan',
}),