Commit 8cb5203
committed
add get_cluster_relations to api client
looks like:
```
In [1]: from hypernode_api_python.client import HypernodeAPIPython
In [2]: import os
In [3]: client = HypernodeAPIPython(os.environ['MYSECRETAPITOKEN'])
In [4]: client.get_cluster_relations("mytestappweb").json()
Out[4]:
{'parents': [{'id': 182,
'parent': 'mytestappdb',
'child': 'mytestappweb',
'relation_type': 'mysql',
'cluster_description': None},
{'id': 180,
'parent': 'mytestapp',
'child': 'mytestappweb',
'relation_type': 'loadbalancer',
'cluster_description': None},
{'id': 181,
'parent': 'mytestapp',
'child': 'mytestappweb',
'relation_type': 'nfs',
'cluster_description': None}],
'children': []}
```1 parent 37a1f89 commit 8cb5203
2 files changed
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
368 | 397 | | |
369 | 398 | | |
370 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments