Questions tagged [openstack-python-api]

18 questions
2
votes
1 answer

Python-openstackclient: Available_floating_ip no longer works; what replacement?

In the past I used available_floating_ip to create a new floating ip and attach it to an instance or use an existing non-attached floating ip and attach it to an instance. For some reason the latter no longer works now (might be an update?). When a…
Natan
  • 728
  • 1
  • 7
  • 23
1
vote
0 answers

Is it possible to style my style my non-gui python code and give it a good look?

So I've this python program, non-GUI, just runs in the terminal, and I was wondering if I could style it, say with html and/or css, to make it look like a gui, well, just to add graphics and stuff like that. I've been doing research and so far I've…
1
vote
1 answer

extracting tweet from Twitter API using Python

I want to get every tweet of the HousingWire on Twitter (https://twitter.com/HousingWire). I understood how to authenticate into the twitter account but how I can get the tweet of HousingWire? I know how to stream the data based on the…
neha
  • 335
  • 3
  • 5
  • 19
0
votes
1 answer

API call to IBM MaaS360 in python not working

I'm building a React app that uses a Python backend to handle the API calls. I just keep getting errors when I try to access the API data. The credentials (hardcoded but removed) are double-checked and correct. I've never accessed APIs that…
0
votes
1 answer

Openstack python api: How create a connection using Application Credentials?

Currently I am using (of course with more elaborate variables): conn = openstack.connect( load_yaml_config=False, load_envvars=False, auth_url=AL, project_name=PN, …
Natan
  • 728
  • 1
  • 7
  • 23
0
votes
1 answer

whenever i try to import models.py in my main.py file it shows me sqlalchemy.exc.ArgumentError

from xmlrpc.client import Boolean from sqlalchemy import TIMESTAMP, Column, Integer, String from sqlalchemy.sql.expression import text from .database import Base class Post(Base): __tablename__ = 'posts' id = Column(Integer,…
0
votes
1 answer

OpenStack, How to create nova filter scheduler?

I am new to OpenStack. I have gone through the document as https://docs.openstack.org/nova/wallaby/user/filter-scheduler.html suggests. But I am not getting how and where to put the code. Do I need to install the package I created as mentioned in…
0
votes
1 answer

Showing Volume Details using python openstacksdk, python novaclient, python cinderclient

Hello guys and I hope you're having a great day. I have a question about using Openstack API in Python. I'm using python-novaclient for getting server details and flavor details. And I want to get the volume details too but I don't know how to do…
0
votes
1 answer

Failure to add params to endpoint

Hello guys while trying to make a simple script i have encountered an error and i've scratched google's head and mine but didn't find a solution . So the problem is anytime i run this code i get a response from the server saying ' the api-key is…
Dan Dan
  • 3
  • 1
0
votes
0 answers

Django Rest Api Annotate group by Filter showing Error?

This error I am getting while entering http://127.0.0.1:8000/api/student/ this URL My Database : posts/models.py from django.db import models class Student(models.Model): lname =…
0
votes
1 answer

How to automate the tenant creation in openstack using python

I want to first source the admin rc file and then need to automate the tenant create using python(openstack) amd new to this..please help me out
0
votes
1 answer

How to send the output of Curl directly to a postgres databse

I want to send the output to a postgres database directly! is that possible of i have to convert it first to another format! any idea!! curl -sG https://peeringdb.com/api/netixlan --data-urlencode asn=58717 \ --data-urlencode…
Drik Drik
  • 71
  • 1
  • 1
  • 9
0
votes
1 answer

Updating data in postgres using python API

I have a python API that hits a URL and receives a JSON. There is a table that contains order data Order_id ZipCode delivery_date total The json returned by the API contains the city and state of the zipcode being passed. I want to : Add new…
Firstname
  • 355
  • 4
  • 8
  • 16
0
votes
1 answer

OpenStack SDK - How to create image with Kernel id and Ramdisk parameters?

I've been trying to create an OpenStack image informing the Kernel Id and Ramdisk Id, using the OpenStack Unified SDK (https://github.com/openstack/python-openstacksdk), but without success. I know this is possible, because the OpenStack CLI have…
0
votes
1 answer

I want to know how we can control the simulated temperature sensor in ibm bluemix using python

I want to know how I can get logs from simulated temperature and humidity sensor in ibmbluemix quickstart device. I can only see that it is done using java script. I couldnt find a place to write my python code that would interact with the simulated…
1
2