Xianguang Zhou created JCLOUDS-1039:
---------------------------------------

             Summary: Create OpenStack Api(NovaApi/NeutronApi/CinderApi......) 
by token
                 Key: JCLOUDS-1039
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1039
             Project: jclouds
          Issue Type: New Feature
            Reporter: Xianguang Zhou


Create OpenStack Api(NovaApi/NeutronApi/CinderApi......) by token.
The token is generated by OpenStack keystone.

use Identity API v2.0
http://developer.openstack.org/api-ref-identity-v2.html
API URI: /v2.0/tokens

For example:
NovaApi novaApi = ContextBuilder.newBuilder(provider)
                                        
.endpoint("http://xxx.xxx.xxx.xxx:5000/v2.0/";)
                                        .credentials(identity, "")
                                        .authToken("xxxxx")
                                        .modules(modules)
                                        .buildApi(NovaApi.class);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to