我正在尝试从Open Stack API获取租户详细信息。鉴权后的接口默认修改为internalURL。我能够通过使用透视方法覆盖到admin。但是,我需要使用SSL隧道,并希望端点使用localhost:55358进行后续API调用。我怎样才能做到这一点呢?
OSClient os = OSFactory.builder().endpoint("http://localhost:55358/v2.0").credentials("user", "pass").tenantName("admin").authenticate().perspective(Facing.ADMIN);
Tenant tenant = os.identity().tenants().get("0374e503158f4d75ad3342185e06f218");控制台操作接口
端点更改为管理url信息:1*在线程上发送客户端请求1>获取代理1>接受:应用程序/json 1>用户代理: OpenStack4j / OpenStack客户端
发布于 2016-04-06 02:24:38
在OSFactory的Java文档中找到了解决方案
OSFactory.enableLegacyEndpointHandling(真);
https://stackoverflow.com/questions/36412175
复制相似问题