Cloudflare (API key)

CDN, DDoS mitigation, Internet security, and DNS services

Go to site

Integrate the Cloudflare (API key) API with the MySQL API

Setup the Cloudflare (API key) API trigger to run a workflow which integrates with the MySQL API. Pipedream's integration platform allows you to integrate Cloudflare (API key) and MySQL remarkably fast. Free for developers.

Create DNS Record

Creates a DNS Record given its zone id

 
Try it
Purge All Files

Remove ALL files from Cloudflare's cache.

 
Try it
Purge Files By Url

Removes one or more files from Cloudflare's cache either by specifying URLs.

 
Try it
Update DNS record

Updates a DNS Record given its zone id

 
Try it

Connect Cloudflare (API key)

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.cloudflare.com/client/v4/user`,
  headers: {
    "X-Auth-Key": `${auths.cloudflare_api_key.API_Key}`,
    "X-Auth-Email": `${auths.cloudflare_api_key.Email}`,
  },
})

Connect MySQL

const mysql = require('mysql2/promise');

const { host, port, username, password, database } = auths.mysql

const connection = await mysql.createConnection({
  host,
  port,
  user: username,
  password,
  database,
});

const [rows, fields] = await connection.execute('SELECT NOW()');
console.log(rows)