1
2
3
4
5
6
7
8
9
10
11
12
| from hs.admin.api import API
|
| api = API(cas=dict(
| uri='https://login.hostsharing.net/cas/v1/tickets',
| service='https://config.hostsharing.net:443/hsar/backend'),
| credentials=dict(username='xyz00', password='sehr-geheim'),
| backends=[
| 'https://config.hostsharing.net:443/hsar/xmlrpc/hsadmin',
| 'https://config2.hostsharing.net:443/hsar/xmlrpc/hsadmin'])
|
| api.mysqluser.add(set={'name': 'xyz00_domain_de', 'password': 'geheim'})
| api.mysqldb.add(set={'name': 'xyz00_domain_de', 'owner': 'xyz00_domain_de'})
|
|