cloudify-cosmo / cloudify-rest-client Goto Github PK
View Code? Open in Web Editor NEWCloudify REST Client
License: Apache License 2.0
Cloudify REST Client
License: Apache License 2.0
Please add Python 3.5 support
I'm trying to run the example with cloudify-rest-client==4.1 against my manager (community ed) with the lines:
client = CloudifyClient('http://[ip]', username='admin', password='[pass]', tenant='default_tenant')
blueprints = client.blueprints.list()
The second line gives me the following error:
Traceback (most recent call last):
File "test.py", line 4, in <module>
blueprints = client.blueprints.list()
File "/usr/local/lib/python2.7/dist-packages/cloudify_rest_client/blueprints.py", line 132, in list
params=params)
File "/usr/local/lib/python2.7/dist-packages/cloudify_rest_client/client.py", line 239, in get
timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/cloudify_rest_client/client.py", line 221, in do_request
verify=self.get_request_verify(), timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/cloudify_rest_client/client.py", line 143, in _do_request
timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: //10.38.3.74:80/api/3.1/blueprints (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88c7a4ad50>: Failed to establish a new connection: [Errno -2] Name or service not known',))
I've tested that the client machine has connection to the manager ip on port 80.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.