{"action":"created","issue":{"url":"https://api.github.com/repos/gondor/openstack4j/issues/323","labels_url":"https://api.github.com/repos/gondor/openstack4j/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/gondor/openstack4j/issues/323/comments","events_url":"https://api.github.com/repos/gondor/openstack4j/issues/323/events","html_url":"https://github.com/gondor/openstack4j/issues/323","id":66157315,"number":323,"title":"setting external gateway to router in api returns not authorized, but the same is allowed via CLI","user":{"login":"tyonchev","id":11786423,"avatar_url":"https://avatars.githubusercontent.com/u/11786423?v=3","gravatar_id":"","url":"https://api.github.com/users/tyonchev","html_url":"https://github.com/tyonchev","followers_url":"https://api.github.com/users/tyonchev/followers","following_url":"https://api.github.com/users/tyonchev/following{/other_user}","gists_url":"https://api.github.com/users/tyonchev/gists{/gist_id}","starred_url":"https://api.github.com/users/tyonchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyonchev/subscriptions","organizations_url":"https://api.github.com/users/tyonchev/orgs","repos_url":"https://api.github.com/users/tyonchev/repos","events_url":"https://api.github.com/users/tyonchev/events{/privacy}","received_events_url":"https://api.github.com/users/tyonchev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gondor/openstack4j/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gondor/openstack4j/labels/Pending%20Verification","name":"Pending Verification","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gondor/openstack4j/milestones/8","html_url":"https://github.com/gondor/openstack4j/milestones/2.0.3%20Release","labels_url":"https://api.github.com/repos/gondor/openstack4j/milestones/8/labels","id":1028425,"number":8,"title":"2.0.3 Release","description":"","creator":{"login":"gondor","id":148656,"avatar_url":"https://avatars.githubusercontent.com/u/148656?v=3","gravatar_id":"","url":"https://api.github.com/users/gondor","html_url":"https://github.com/gondor","followers_url":"https://api.github.com/users/gondor/followers","following_url":"https://api.github.com/users/gondor/following{/other_user}","gists_url":"https://api.github.com/users/gondor/gists{/gist_id}","starred_url":"https://api.github.com/users/gondor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gondor/subscriptions","organizations_url":"https://api.github.com/users/gondor/orgs","repos_url":"https://api.github.com/users/gondor/repos","events_url":"https://api.github.com/users/gondor/events{/privacy}","received_events_url":"https://api.github.com/users/gondor/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":8,"state":"open","created_at":"2015-03-19T02:11:24Z","updated_at":"2015-04-08T09:19:40Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-04-03T14:35:37Z","updated_at":"2015-04-08T09:19:40Z","closed_at":"2015-04-08T09:19:40Z","body":"Hi, I am trying to programatically create a router linked to external network. I can do it through CLI, but through openstack4j api calls anything other than simple create router with name returns me \"not authorized\". For example this works:\r\n\r\n   `client.networking().router().create(Builders.router().name(\"myApiRouter\").build())`\r\n\r\nBut the next gives me `ClientResponseException{message=Policy doesn't allow create_router to be performed., status=403, status-code=FORBIDDEN}` :\r\n        `client.networking().router().create(Builders.router().name(\"myApiRouter2\").externalGateway(publicNetId).build())`\r\n\r\nIf I try to set the gateway via update call, I get `ClientResponseException{message=Policy doesn't allow update_router to be performed., status=403, status-code=FORBIDDEN}` :\r\n  `client.networking().router().update(Builders.router().id(routerId).externalGateway(publicNetId).build())`\r\n\r\nYet with the same credentials I can do it via command line tools with these commands\r\n  neutron router-create testRouter\r\n  neutron router-gateway-set routerid publicNetId\r\n\r\nI saw there is a probably related bug https://github.com/gondor/openstack4j/issues/274 but there is no description, so I do not know if the issue is the same, or in which version it is fixed\r\nI am using openstack4j-core\r\n   Bundle-Version: 2.0.2.SNAPSHOT\r\n   Bnd-LastModified: 1426711180352\r\nwith openstack4j-httpclient\r\n  Bundle-Version: 2.0.2.SNAPSHOT\r\n  Bnd-LastModified: 1426711248818"},"comment":{"url":"https://api.github.com/repos/gondor/openstack4j/issues/comments/90858274","html_url":"https://github.com/gondor/openstack4j/issues/323#issuecomment-90858274","issue_url":"https://api.github.com/repos/gondor/openstack4j/issues/323","id":90858274,"user":{"login":"tyonchev","id":11786423,"avatar_url":"https://avatars.githubusercontent.com/u/11786423?v=3","gravatar_id":"","url":"https://api.github.com/users/tyonchev","html_url":"https://github.com/tyonchev","followers_url":"https://api.github.com/users/tyonchev/followers","following_url":"https://api.github.com/users/tyonchev/following{/other_user}","gists_url":"https://api.github.com/users/tyonchev/gists{/gist_id}","starred_url":"https://api.github.com/users/tyonchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyonchev/subscriptions","organizations_url":"https://api.github.com/users/tyonchev/orgs","repos_url":"https://api.github.com/users/tyonchev/repos","events_url":"https://api.github.com/users/tyonchev/events{/privacy}","received_events_url":"https://api.github.com/users/tyonchev/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T09:19:40Z","updated_at":"2015-04-08T09:19:40Z","body":"Sorry for the late response, I can confirm that now it works :)\r\nThanks!"}}