auths
objectThe zone ID where the DNS record being modified belongs to.
The DNS record ID being modified.
DNS record type.
DNS record content.
Time to live for DNS record. Value of 1 is 'automatic'.
return
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params, auths) => {
}
return await require("@pipedreamhq/platform").axios(this, {
method: "put",
url: `https://api.cloudflare.com/client/v4/zones/${params.zone_id}/dns_records/${params.dns_record_id}`,
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: "kimksy",
content: params.content,
ttl: params.ttl,
proxied: params.proxied
}
});