Cloudflare
Seamlessly integrate Cloudflare web security and external facing applications with your favorite APIs, databases, and programming languages, using WayScript.
Web Infrastructure and Security

Setup

To setup Cloudflare, you'll need your API Token generated from your Cloudflare User Profile 'API Token' Page.

Modes

Get Health check Events for a Load Balancer

📤
Output

1
LB_Events = {
2
success: Bool,
3
errors: [],
4
messages: [],
5
result: [
6
{
7
id: Int,
8
timestamp: Datetime,
9
pool: {
10
id: String,
11
name: String,
12
healthy: Bool,
13
changed: Bool,
14
minimum_origins: Int
15
},
16
origins: [
17
{
18
name: String,
19
address: String,
20
ip: String,
21
enabled: Bool,
22
healthy: Bool,
23
failure_reason: String,
24
changed: Bool
25
}
26
]
27
}
28
]
29
}
Copied!

💸
Get Billing History

📤
Output

1
Billing_History = {
2
success: Bool,
3
errors: [],
4
messages: [],
5
result: [
6
{
7
id: String,
8
type: String,
9
action: String,
10
description: String,
11
occurred_at: Datetime,
12
amount: Float,
13
currency: String,
14
zone: {
15
name: String
16
}
17
}
18
]
19
}
Copied!

📔
Get User Audit Logs

📤
Output

1
User_Audit_Logs = {
2
success: Bool,
3
errors: String,
4
messages: [],
5
result: [
6
{
7
id: String,
8
action: {
9
type: String,
10
result: Bool
11
},
12
actor: {
13
id: String,
14
email: String,
15
type: String,
16
ip: String
17
},
18
newValue: String,
19
oldValue: String,
20
owner: {
21
id: String
22
},
23
resource: {
24
type: String,
25
id: String
26
},
27
interface: String,
28
metadata: {
29
zone_name: String,
30
type: String,
31
name: String,
32
value: String
33
},
34
when: String
35
}
36
]
37
}
Copied!

🗺
List All Zones

📤
Output

1
All_Zones = {
2
success: true,
3
errors: [],
4
messages: [],
5
result: [
6
{
7
id: String,
8
name: String,
9
development_mode: Int,
10
original_name_servers: [ String ],
11
original_registrar: String,
12
original_dnshost: String,
13
created_on: Datetime,
14
modified_on: Datetime,
15
activated_on: Datetime,
16
owner: {
17
id: { },
18
email: { },
19
type: String
20
},
21
account: {
22
id: String,
23
name: String
24
},
25
permissions: [ String ],
26
plan: {
27
id: String,
28
name: String,
29
price: Float,
30
currency: String,
31
frequency: String,
32
legacy_id: String,
33
is_subscribed: Bool,
34
can_subscribe: Bool
35
},
36
plan_pending: {
37
id: String,
38
name: String,
39
price: Float,
40
currency: String,
41
frequency: String,
42
legacy_id: String,
43
is_subscribed: Bool,
44
can_subscribe: Bool
45
},
46
status: String,
47
paused: Bool,
48
type: String,
49
name_servers: [ String ]
50
}
51
]
52
}
Copied!

🔧
List Workers

📥
Inputs

  • Cloudflare Account ID - Your account Identifier. Needs permissions: com.cloudflare.edge.worker.script.list

📤
Output

1
All_Workers = {
2
success: Bool,
3
errors: [],
4
messages: [],
5
result: [
6
{
7
id: String,
8
etag: String,
9
created_on: Datetime,
10
modified_on: Datetime
11
}
12
]
13
}
Copied!
Last modified 8mo ago