cloudflare.updateDnsRecord overwrites one DNS record.
automations/cloudflare-update-dns-record.automation.ts
{ account } selects a static project account binding.
Returns the updated record.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Overwrites one DNS record.
cloudflare.updateDnsRecord overwrites one DNS record.
import { automation, onDashboardRun } from "automate.ax"
import { cloudflare } from "automate.ax/cloudflare"
export default automation("Update DNS record", () => {
onDashboardRun({ title: "Update DNS record" })
cloudflare.updateDnsRecord({
zoneId: "zone-id",
recordId: "record-id",
type: "A",
name: "www.example.com",
content: "192.0.2.2",
})
})
{ account } selects a static project account binding.
Returns the updated record.