diff options
| author | Jeff Carr <[email protected]> | 2023-12-21 17:56:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-21 17:56:56 -0600 |
| commit | 73b0cee93320bb5b572881cd1a5ba9d878a4ba3a (patch) | |
| tree | 615e3c84e31ce55ac83399409eb068c979dff2e5 /cloudflare/curl.sh | |
| parent | 7409b58ea37becdd7fba7d3da8e1994aa55f7922 (diff) | |
add a DurationSlider()v0.2.2
widgets to adjust timeouts
redo bash curl.sh example
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cloudflare/curl.sh')
| -rwxr-xr-x | cloudflare/curl.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cloudflare/curl.sh b/cloudflare/curl.sh new file mode 100755 index 0000000..13a477d --- /dev/null +++ b/cloudflare/curl.sh @@ -0,0 +1,23 @@ +# +# this curl POST will create a new DNS resource record (RR) in zone the wit.com +# In this case it will map www3.wit.com to a IPv6 address +# replace the auth key (e088...) and zone ID (27b9...) with the ones from your cloudflare account +# +curl --request POST \ + --url https://api.cloudflare.com/client/v4/zones/27llxxPutYourZoneIDherexxx497f90/dns_records \ + --header 'Content-Type: application/json' \ + --header 'X-Auth-Key: e08806adxxxPutYourAPIKeyHerexxxxa7d417a7x' \ + --header 'X-Auth-Email: [email protected]' \ + --data '{ + "name": "www3", + "type": "AAAA" + "content": "2001:4860:4860::5555", + "ttl": 3600, + "proxied": false, + "comment": "WIT DNS Control Panel", +}' + +# This will verify an API token +curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \ + -H "Authorization: Bearer AAAPutYourTokenInHereSoYouCanTestItL5Cl3" \ + -H "Content-Type:application/json" |
