MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / create_dns

Function create_dns

component-tests/setup.py:76–81  ·  view source on GitHub ↗
(config, hostname, type, content)

Source from the content-addressed store, hash-verified

74
75@retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000)
76def create_dns(config, hostname, type, content):
77 cf = CloudFlare.CloudFlare(debug=False, token=get_env("DNS_API_TOKEN"))
78 cf.zones.dns_records.post(
79 config["zone_tag"],
80 data={'name': hostname, 'type': type, 'content': content, 'proxied': True}
81 )
82
83
84def create_named_dns(config, random_uuid):

Callers 1

create_named_dnsFunction · 0.85

Calls 1

get_envFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…