We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87cfe3f commit 9faf13bCopy full SHA for 9faf13b
examples/dns/record.py
@@ -1,26 +1,20 @@
1
import os
2
import sys
3
-
4
from cloudflare import Cloudflare
5
6
7
zone_id = os.getenv("CLOUDFLARE_ZONE_ID")
8
if zone_id is None:
9
sys.exit("CLOUDFLARE_ZONE_ID is not defined")
10
11
12
client = Cloudflare()
13
14
15
-# create dns using defined driver
16
record = client.dns.records.create(
17
zone_id=zone_id,
18
type='CNAME',
19
name="www.mydns.com",
20
content="cname.example.com",
21
proxied=False
22
- )
+)
23
24
25
-# print output
26
-print(record)
+# print(record)
0 commit comments