diff options
| author | Jeff Carr <[email protected]> | 2024-01-03 12:40:31 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-03 12:40:31 -0600 |
| commit | e14770e94c9ec126a3d418d6d2b2f15ef8cf1607 (patch) | |
| tree | 12b223cbe9cb9c6ef98b23d8bf6ae96e2040b3d7 /cloudflare/curl.sh | |
| parent | 1324717de0a1ccd830ca34aa03e0faa9e6d93a83 (diff) | |
fixed stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cloudflare/curl.sh')
| -rwxr-xr-x | cloudflare/curl.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cloudflare/curl.sh b/cloudflare/curl.sh deleted file mode 100755 index 13a477d..0000000 --- a/cloudflare/curl.sh +++ /dev/null @@ -1,23 +0,0 @@ -# -# 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" |
