{"action":"created","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/594","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/594/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/594/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/594/events","html_url":"https://github.com/rancherio/rancher/issues/594","id":70470673,"number":594,"title":"API: embedded object's property of reference type return actual DB id in the API response","user":{"login":"sangeethah","id":4266958,"avatar_url":"https://avatars.githubusercontent.com/u/4266958?v=3","gravatar_id":"","url":"https://api.github.com/users/sangeethah","html_url":"https://github.com/sangeethah","followers_url":"https://api.github.com/users/sangeethah/followers","following_url":"https://api.github.com/users/sangeethah/following{/other_user}","gists_url":"https://api.github.com/users/sangeethah/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeethah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeethah/subscriptions","organizations_url":"https://api.github.com/users/sangeethah/orgs","repos_url":"https://api.github.com/users/sangeethah/repos","events_url":"https://api.github.com/users/sangeethah/events{/privacy}","received_events_url":"https://api.github.com/users/sangeethah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancherio/rancher/labels/area/api","name":"area/api","color":"FBCA04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T17:45:48Z","updated_at":"2015-04-23T17:49:51Z","closed_at":null,"body":"So \"service\" object has embedded launchConfig property of \"container\" type. If the embedded object has properties that are ref to the other cattle object - dataVolumesFrom/registryCredentialId in my case - their ids in the response object are listed as actual DB ids in the API response: 22 instead of 1c22 as an example"},"comment":{"url":"https://api.github.com/repos/rancherio/rancher/issues/comments/95668564","html_url":"https://github.com/rancherio/rancher/issues/594#issuecomment-95668564","issue_url":"https://api.github.com/repos/rancherio/rancher/issues/594","id":95668564,"user":{"login":"sangeethah","id":4266958,"avatar_url":"https://avatars.githubusercontent.com/u/4266958?v=3","gravatar_id":"","url":"https://api.github.com/users/sangeethah","html_url":"https://github.com/sangeethah","followers_url":"https://api.github.com/users/sangeethah/followers","following_url":"https://api.github.com/users/sangeethah/following{/other_user}","gists_url":"https://api.github.com/users/sangeethah/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeethah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeethah/subscriptions","organizations_url":"https://api.github.com/users/sangeethah/orgs","repos_url":"https://api.github.com/users/sangeethah/repos","events_url":"https://api.github.com/users/sangeethah/events{/privacy}","received_events_url":"https://api.github.com/users/sangeethah/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T17:49:51Z","updated_at":"2015-04-23T17:49:51Z","body":"When we activate services with images from private registry - quay.io which requires credentials, registryCredentialId stored in rancher.yml:\r\n\r\ntestp1:\r\nscale: 1\r\nregistryCredentialId: 15\r\n\r\nIn this case , we do not expect the DB ids to be exposed."}}