-
-
Save dwatrous/c8f24b6d85be7eaa32a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from keystoneclient.v2_0 import client | |
>>> keystone = client.Client(username='user', password='secret', auth_url='https://keystone.os1.domain.com/v2.0', insecure=True) | |
C:\Python27\lib\site-packages\requests-2.6.0-py2.7.egg\requests\packages\urllib3\connectionpool.py:769: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html | |
InsecureRequestWarning) | |
>>> keystone.tenants.list() | |
C:\Python27\lib\site-packages\requests-2.6.0-py2.7.egg\requests\packages\urllib3\connectionpool.py:769: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html | |
InsecureRequestWarning) | |
[<Tenant {u'enabled': True, u'description': u'', u'name': u'user-Project', u'id': u'4d591ec8ca5c493f14fec6a332d30e13'}>] | |
>>> keystone.endpoints.list() | |
Traceback (most recent call last): | |
File "<interactive input>", line 1, in <module> | |
File "C:\Python27\lib\site-packages\keystoneclient\v2_0\endpoints.py", line 32, in list | |
return self._list('/endpoints', 'endpoints') | |
File "C:\Python27\lib\site-packages\keystoneclient\base.py", line 113, in _list | |
resp, body = self.client.get(url, **kwargs) | |
File "C:\Python27\lib\site-packages\keystoneclient\adapter.py", line 170, in get | |
return self.request(url, 'GET', **kwargs) | |
File "C:\Python27\lib\site-packages\keystoneclient\adapter.py", line 206, in request | |
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs) | |
File "C:\Python27\lib\site-packages\keystoneclient\adapter.py", line 95, in request | |
return self.session.request(url, method, **kwargs) | |
File "C:\Python27\lib\site-packages\keystoneclient\utils.py", line 318, in inner | |
return func(*args, **kwargs) | |
File "C:\Python27\lib\site-packages\keystoneclient\session.py", line 337, in request | |
raise exceptions.EndpointNotFound() | |
EndpointNotFound |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment