{"id":827,"date":"2016-10-20T12:53:36","date_gmt":"2016-10-20T11:53:36","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=827"},"modified":"2016-10-20T12:53:36","modified_gmt":"2016-10-20T11:53:36","slug":"checking-rackspace-dns-api-rate-limits","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/10\/20\/checking-rackspace-dns-api-rate-limits\/","title":{"rendered":"Checking Rackspace DNS API Rate Limits"},"content":{"rendered":"<p>so, you want to check your Rackspace DNS API rate Limits?<\/p>\n<p>Here is how you do it.<\/p>\n<pre>\r\n\r\n#!\/bin\/bash\r\n\r\n# Username used to login to control panel\r\nUSERNAME='mycloudusernamegoeshere'\r\n\r\n# Find the APIKey in the 'account settings' part of the menu of the control panel\r\nAPIKEY='mycloudapikeygoeshere'\r\n\r\n# Customer ID of the account (the numbers that are in the URL when you login to mycloud control panel)\r\nCUSTOMER_ID=\"100101010\"\r\n\r\n# This section simply retrieves the TOKEN\r\nTOKEN=`curl https:\/\/identity.api.rackspacecloud.com\/v2.0\/tokens -X POST -d '{ \"auth\":{\"RAX-KSKEY:apiKeyCredentials\": { \"username\":\"'$USERNAME'\", \"apiKey\": \"'$APIKEY'\" }} }' -H \"Content-type: application\/json\" |  python -mjson.tool | grep -A5 token | grep id | cut -d '\"' -f4`\r\n\r\n# Retrieve Rate Limit detail for the account\r\ncurl \"https:\/\/dns.api.rackspacecloud.com\/v1.0\/$CUSTOMER_ID\/limits\" -H \"X-Auth-Token: $token\" | python -m json.tool\r\n<\/pre>\n<p>Cheers &#038;<br \/>\nBest wishes,<br \/>\nAdam<\/p>\n","protected":false},"excerpt":{"rendered":"<p>so, you want to check your Rackspace DNS API rate Limits? Here is how you do it. #!\/bin\/bash # Username used to login to control panel USERNAME=&#8217;mycloudusernamegoeshere&#8217; # Find the APIKey in the &#8216;account settings&#8217; part of the menu of &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/10\/20\/checking-rackspace-dns-api-rate-limits\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,46,61],"tags":[],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-cloud","category-dns","category-rackspace"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=827"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/827\/revisions"}],"predecessor-version":[{"id":828,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/827\/revisions\/828"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}