Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianpurvis1976/437d12377cc14d46aac9e72d053d9c05 to your computer and use it in GitHub Desktop.
Save ianpurvis1976/437d12377cc14d46aac9e72d053d9c05 to your computer and use it in GitHub Desktop.
curl $DNS/v1.0/hostedzone/ianpurvis.co.uk/rrset -X POST -H "Content-Type: application/xml" -H "Accept: application/xml" -H "X-Auth-Token: $OS_AUTH_TOKEN" -d '<?xml version="1.0" encoding="UTF-8"?><ChangeResourceRecordSetsRequest xmlns="http://docs.cloudcommunity.global.fujitsu.com/dns/api/v1.0/"><ChangeBatch><Changes><Change><Action>CREATE</Action><ResourceRecordSet><Name>_niftycloudess.ianpurvis.co.uk</Name><Type>TXT</Type><TTL>60</TTL><ResourceRecords><ResourceRecord><Value><INSERT YOUR TOKEN HERE></Value></ResourceRecord></ResourceRecords></ResourceRecordSet></Change></Changes></ChangeBatch></ChangeResourceRecordSetsRequest>' | xmllint --format -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment