Kimksy DDNS
@ahnl
code:
data:privatelast updated:3 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
active
last updated:-last event:-
steps.
cloudflare_update_dns_record
auth
to use OAuth tokens and API keys in code via theauths object
(auths.cloudflare_api_key)
params
Zone id

The zone ID where the DNS record being modified belongs to.

 
string ·params.zone_id
Dns record_id

The DNS record ID being modified.

 
string ·params.dns_record_id
Type

DNS record type.

string ·params.type
Content

DNS record content.

 
string ·params.content
Ttl

Time to live for DNS record. Value of 1 is 'automatic'.

 
integer ·params.ttl
Optional
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps, params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
}
23

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
 }
});