The zone ID where the DNS record being created belongs to.
DNS record type.
DNS record name.
DNS record content.
Time to live for DNS record. Value of 1 is 'automatic'.
async
(params, auths) => {
}
return await require("@pipedreamhq/platform").axios(this, {
method: "post",
url: `https://api.cloudflare.com/client/v4/zones/${params.zone_id}/dns_records`,
headers: {
"X-Auth-Email": `${auths.cloudflare_api_key.Email}`,
"X-Auth-Key": `${auths.cloudflare_api_key.API_Key}`,
"Content-Type": "application/json"
},
data: {
type: params.type,
name: params.name,
content: params.content,
ttl: params.ttl,
proxied: params.proxied,
priority: params.priority
}
});