{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1768","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1768/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1768/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1768/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1768","id":137694850,"number":1768,"title":"Module to manage Cloudflare DNS records","user":{"login":"mgruener","id":6072150,"avatar_url":"https://avatars.githubusercontent.com/u/6072150?v=3","gravatar_id":"","url":"https://api.github.com/users/mgruener","html_url":"https://github.com/mgruener","followers_url":"https://api.github.com/users/mgruener/followers","following_url":"https://api.github.com/users/mgruener/following{/other_user}","gists_url":"https://api.github.com/users/mgruener/gists{/gist_id}","starred_url":"https://api.github.com/users/mgruener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgruener/subscriptions","organizations_url":"https://api.github.com/users/mgruener/orgs","repos_url":"https://api.github.com/users/mgruener/repos","events_url":"https://api.github.com/users/mgruener/events{/privacy}","received_events_url":"https://api.github.com/users/mgruener/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/community_review","name":"community_review","color":"fad8c7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/networking","name":"networking","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/new_plugin","name":"new_plugin","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-01T21:40:40Z","updated_at":"2016-03-08T23:31:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1768","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1768","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1768.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1768.patch"},"body":"##### Issue Type:\r\n\r\n - New Module Pull Request\r\n\r\n##### Plugin Name:\r\n\r\ncloudflare_dns\r\n\r\n##### Ansible Version:\r\n\r\n```\r\nansible 2.1.0 (devel 71402abf21) last updated 2016/03/01 22:18:47 (GMT +200)\r\n  lib/ansible/modules/core: (detached HEAD cd9a7667aa) last updated 2015/12/02 20:42:01 (GMT +200)\r\n  lib/ansible/modules/extras: (detached HEAD 3c4f954f0f) last updated 2015/12/02 20:42:04 (GMT +200)\r\n  config file = \r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### Summary:\r\n\r\nA module to manage DNS records hosted at Cloudflare.\r\n\r\n##### Example output:\r\n\r\n```\r\n{\r\n    \"changed\": false, \r\n    \"result\": {\r\n        \"records\": [\r\n            {\r\n                \"content\": \"111.222.222.111\", \r\n                \"created_on\": \"2016-02-16T19:11:51.905832Z\", \r\n                \"id\": \"9759964ac78087ef8746bc2e2df53b88\", \r\n                \"locked\": false, \r\n                \"meta\": {\r\n                    \"auto_added\": false\r\n                }, \r\n                \"modified_on\": \"2016-02-16T19:11:51.905832Z\", \r\n                \"name\": \"www.foo.bar\", \r\n                \"proxiable\": false, \r\n                \"proxied\": false, \r\n                \"ttl\": 1, \r\n                \"type\": \"A\", \r\n                \"zone_id\": \"e87ede0b0583229f94029d2e6b73d85a\", \r\n                \"zone_name\": \"foo.bar\"\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/194022675","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1768#issuecomment-194022675","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1768","id":194022675,"user":{"login":"sgzijl","id":563733,"avatar_url":"https://avatars.githubusercontent.com/u/563733?v=3","gravatar_id":"","url":"https://api.github.com/users/sgzijl","html_url":"https://github.com/sgzijl","followers_url":"https://api.github.com/users/sgzijl/followers","following_url":"https://api.github.com/users/sgzijl/following{/other_user}","gists_url":"https://api.github.com/users/sgzijl/gists{/gist_id}","starred_url":"https://api.github.com/users/sgzijl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgzijl/subscriptions","organizations_url":"https://api.github.com/users/sgzijl/orgs","repos_url":"https://api.github.com/users/sgzijl/repos","events_url":"https://api.github.com/users/sgzijl/events{/privacy}","received_events_url":"https://api.github.com/users/sgzijl/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T23:31:35Z","updated_at":"2016-03-08T23:31:35Z","body":"FYI.\r\n\r\nThe payload while debugging the UI via the browser contains:\r\n```\r\ncontent: \"mail.foo.bar\"\r\ndata: {}\r\nname: foo.bar\"\r\npriority: 20\r\nproxiable: false\r\nproxied: false\r\nttl: 3600\r\ntype: \"MX\"\r\nzone_id: \"$zone_id\"\r\nzone_name: \"foo.bar\"\r\n```\r\nWhere I set the MX priority to 20, ttl to one hour and value to `mail.foo.bar`."}}