{"action":"created","issue":{"url":"https://api.github.com/repos/rackspace/php-opencloud/issues/572","labels_url":"https://api.github.com/repos/rackspace/php-opencloud/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/rackspace/php-opencloud/issues/572/comments","events_url":"https://api.github.com/repos/rackspace/php-opencloud/issues/572/events","html_url":"https://github.com/rackspace/php-opencloud/issues/572","id":64740569,"number":572,"title":"Allow DNS domain retrieval by name","user":{"login":"jamiehannaford","id":1867202,"avatar_url":"https://avatars.githubusercontent.com/u/1867202?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiehannaford","html_url":"https://github.com/jamiehannaford","followers_url":"https://api.github.com/users/jamiehannaford/followers","following_url":"https://api.github.com/users/jamiehannaford/following{/other_user}","gists_url":"https://api.github.com/users/jamiehannaford/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiehannaford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiehannaford/subscriptions","organizations_url":"https://api.github.com/users/jamiehannaford/orgs","repos_url":"https://api.github.com/users/jamiehannaford/repos","events_url":"https://api.github.com/users/jamiehannaford/events{/privacy}","received_events_url":"https://api.github.com/users/jamiehannaford/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackspace/php-opencloud/labels/DNS","name":"DNS","color":"fbca04"},{"url":"https://api.github.com/repos/rackspace/php-opencloud/labels/Request:%20enhancement","name":"Request: enhancement","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rackspace/php-opencloud/milestones/3","html_url":"https://github.com/rackspace/php-opencloud/milestones/v2","labels_url":"https://api.github.com/repos/rackspace/php-opencloud/milestones/3/labels","id":997111,"number":3,"title":"v2","description":"To do exclusively in v2, that is, not in v1 at all. Note, however, that v2 will have functional parity with all things in v1 - current, imminent or desirable.","creator":{"login":"ycombinator","id":51061,"avatar_url":"https://avatars.githubusercontent.com/u/51061?v=3","gravatar_id":"","url":"https://api.github.com/users/ycombinator","html_url":"https://github.com/ycombinator","followers_url":"https://api.github.com/users/ycombinator/followers","following_url":"https://api.github.com/users/ycombinator/following{/other_user}","gists_url":"https://api.github.com/users/ycombinator/gists{/gist_id}","starred_url":"https://api.github.com/users/ycombinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycombinator/subscriptions","organizations_url":"https://api.github.com/users/ycombinator/orgs","repos_url":"https://api.github.com/users/ycombinator/repos","events_url":"https://api.github.com/users/ycombinator/events{/privacy}","received_events_url":"https://api.github.com/users/ycombinator/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2015-02-26T15:08:45Z","updated_at":"2015-03-28T10:58:59Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-27T11:09:39Z","updated_at":"2015-03-31T04:23:18Z","closed_at":"2015-03-28T10:58:59Z","body":"... rather than an unknown ID.\r\n\r\nCurrently, the only way to do this is something like this:\r\n\r\n```php\r\n$search = \"mydomain.com\";\r\n$domainList = $service->domainList(array(\"name\"=>$search));\r\nforeach($domainList as $domain) {\r\n    $id = $domain->id();\r\n}\r\n```\r\n\r\nFeature requested by @joshrencher (mentioning you here so you can keep track of this request)."},"comment":{"url":"https://api.github.com/repos/rackspace/php-opencloud/issues/comments/87932600","html_url":"https://github.com/rackspace/php-opencloud/issues/572#issuecomment-87932600","issue_url":"https://api.github.com/repos/rackspace/php-opencloud/issues/572","id":87932600,"user":{"login":"joshrencher","id":2689074,"avatar_url":"https://avatars.githubusercontent.com/u/2689074?v=3","gravatar_id":"","url":"https://api.github.com/users/joshrencher","html_url":"https://github.com/joshrencher","followers_url":"https://api.github.com/users/joshrencher/followers","following_url":"https://api.github.com/users/joshrencher/following{/other_user}","gists_url":"https://api.github.com/users/joshrencher/gists{/gist_id}","starred_url":"https://api.github.com/users/joshrencher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshrencher/subscriptions","organizations_url":"https://api.github.com/users/joshrencher/orgs","repos_url":"https://api.github.com/users/joshrencher/repos","events_url":"https://api.github.com/users/joshrencher/events{/privacy}","received_events_url":"https://api.github.com/users/joshrencher/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T04:23:18Z","updated_at":"2015-03-31T04:23:18Z","body":"\n absolutely more convenient. thanks guys!\n\n\n\n On Sat, 28 Mar 2015 04:00:30 -0700, Jamie Hannaford \n <notifications@github.com> wrote:\n> @joshrencher [1] There should now be a new method called domainByName\n> [2] in dev-working which @ycombinator [3] has added. Hopefully this \n> is\n> more convenient :)\n>\n> --\n> Reply to this email directly or view it on GitHub [4].\n>\n> \t*\n>\n> Links:\n> ------\n> [1] https://github.com/joshrencher\n> [2]\n> \n> https://github.com/rackspace/php-opencloud/blob/working/lib/OpenCloud/DNS/Service.php#L65-L74\n> [3] https://github.com/ycombinator\n> [4]\n> \n> https://github.com/rackspace/php-opencloud/issues/572#issuecomment-87209367\n\n"}}