Comments (19)
It's not implemented yet
from pyarubacloud.
Correct, this is not implemented yet. I will try to work on it next week.
from pyarubacloud.
Thank You so much!
from pyarubacloud.
HI, may I ask what about rDNS modif via API?
from pyarubacloud.
Hi, any Update? :)
from pyarubacloud.
I'm working on it. Stay tuned :)
from pyarubacloud.
At the moment, the method is not exposed via our public API, we are working on it. Should be ready in about 2 weeks.
from pyarubacloud.
Hi! Any update, for this issue?
from pyarubacloud.
This change is scheduled for September.
from pyarubacloud.
Hi, There is an update for this issue?
from pyarubacloud.
Hi, checkout "NewStructure" branch, ReverseDns is already there.
from pyarubacloud.
Merged in master.
from pyarubacloud.
Hi,
Thank you so much, but I get the following error msg:
Traceback (most recent call last):
File "rdns.py", line 1, in
from ArubaCloud.ReverseDns import ReverseDns
ImportError: No module named ReverseDns
How can I solve this?
Thank You
from pyarubacloud.
I solv the error problem, but I get nothing as rdns.
The file:
import argparse
from ArubaCloud.ReverseDns import ReverseDns
from ArubaCloud.PyArubaAPI import CloudInterface
if name == 'main':
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--datacenter', help='Specify datacenter to login.', action='store', dest='dc')
parser.add_argument('-p', '--pattern', help='Specify pattern to search.', action='store', dest='pattern')
parser.add_argument('-u', '--username', help='Specify username.', action='store', dest='username')
parser.add_argument('-w', '--password', help='Specify password.', action='store', dest='password')
parser.add_argument('--new-rdns', action='store', dest='new_rdns')
p = parser.parse_args()
ci = CloudInterface(dc=int(p.dc))
rdns = ReverseDns(username=p.username, password=p.password, ws_uri=ci.wcf_baseurl)
# get configured reverse dns
print(rdns.get())
I use the correct DC and auth data, and the response is [ ].
rdns provisioned dc3 and dig command shows correctly.
Any idea?
from pyarubacloud.
Going to check it.
from pyarubacloud.
Solved, the Get method require the IP address to query:
def get(self, addresses):
"""
:type addresses: list[str]
:param addresses: (list[str]) List of addresses to retrieve their reverse dns
Retrieve the current configured ReverseDns entries
:return: (list) List containing the current ReverseDns Addresses
"""
request = self._call(GetReverseDns, IPs=addresses)
response = request.commit()
return response['Value']
You need to specify the ip address and the method now will return the reverse addresses associated.
from pyarubacloud.
Hello,
I've been getting the same error as Melious:
ImportError: No module named ReverseDns
Any tip on how to solve this?
from pyarubacloud.
We are checking, Thanks a lot
from pyarubacloud.
Thank you for your report. We have fixed the problem and now it works:
ci = CloudInterface(dc=int(p.dc))
ci.login(username=p.username, password=p.password, load=True)
ci.get_servers()
rdns = ReverseDns.ReverseDns(username=p.username, password=p.password, ws_uri=ci.wcf_baseurl)
# get configured reverse dns
for vm in ci.vmlist:
print(rdns.get(addresses=[vm.ip_addr]))
with both python version 2 and 3.
If you still have problems you can reopen the issue.
from pyarubacloud.
Related Issues (20)
- ProVmCreator failing HOT 1
- [request] SSH Public Key instead of password in VM creation HOT 1
- Support full DNS API HOT 1
- Bug during/after python3 installation + temp fix HOT 1
- ResultCode: -500 HOT 1
- REST API Documentation or Swagger ? HOT 5
- Support for location roulette HOT 1
- Add feature to Create 1 EUR Smart VM - Random DC HOT 11
- set_ssh_key when reinitializing smart vm HOT 2
- SetEnqueueReinitializeServer and vm.reinitialize() failure when ConfigureIPv6=True HOT 1
- remove_ip broken
- add_public_ip for vm Pro object
- Authentication failed, token not found HOT 2
- Remove ip from server
- Create multiple objects in one script
- Provide HTTP RESTful API HOT 1
- GetVMMetrics
- Snapshot
- Unable to create Smart VM by API ExceptionCode 19
- List LoadBalancer and servers linked to it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyarubacloud.