Skip to content

Commit

Permalink
Update record.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Jan 9, 2025
1 parent 0dfba03 commit 370836b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/dns/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@

record = client.dns.records.create(
zone_id=zone_id,
type='A',
type="A",
name="www.mydns.com",
content="198.51.100.1",
proxied=True
proxied=True,
)
assert record is not None

# clean up after we're done
client.dns.records.delete(
zone_id=zone_id,
dns_record_id=record['id']
dns_record_id=record.id,
)

0 comments on commit 370836b

Please sign in to comment.