Revision bfbe8c51
b/doc/rapi.rst | ||
---|---|---|
368 | 368 |
"vcpus": 1, |
369 | 369 |
"memory": 128 |
370 | 370 |
} |
371 |
} |
|
372 |
} |
|
371 |
}, |
|
372 |
… |
|
373 |
} |
|
373 | 374 |
|
374 | 375 |
|
375 | 376 |
``/2/redistribute-config`` |
... | ... | |
479 | 480 |
"node1.example.com", |
480 | 481 |
"node2.example.com" |
481 | 482 |
], |
482 |
"uuid": "0d7d407c-262e-49af-881a-6a430034bf43" |
|
483 |
"uuid": "0d7d407c-262e-49af-881a-6a430034bf43", |
|
484 |
… |
|
483 | 485 |
}, |
484 | 486 |
{ |
485 | 487 |
"name": "group2", |
... | ... | |
487 | 489 |
"node_list": [ |
488 | 490 |
"node3.example.com" |
489 | 491 |
], |
490 |
"uuid": "f5a277e7-68f9-44d3-a378-4b25ecb5df5c" |
|
491 |
} |
|
492 |
"uuid": "f5a277e7-68f9-44d3-a378-4b25ecb5df5c", |
|
493 |
… |
|
494 |
}, |
|
495 |
… |
|
492 | 496 |
] |
493 | 497 |
|
494 | 498 |
``POST`` |
... | ... | |
694 | 698 |
'network6': None, |
695 | 699 |
'network_type': 'private', |
696 | 700 |
'reserved_count': 3, |
697 |
'tags': ['nfdhcpd'] |
|
701 |
'tags': ['nfdhcpd'], |
|
702 |
… |
|
698 | 703 |
}, |
704 |
… |
|
699 | 705 |
] |
700 | 706 |
|
701 | 707 |
``POST`` |
... | ... | |
901 | 907 |
|
902 | 908 |
[ |
903 | 909 |
{ |
904 |
"status": "running", |
|
905 |
"disk_usage": 20480, |
|
906 |
"nic.bridges": [ |
|
907 |
"xen-br0" |
|
908 |
], |
|
909 |
"name": "web.example.com", |
|
910 |
"tags": ["tag1", "tag2"], |
|
911 |
"beparams": { |
|
912 |
"vcpus": 2, |
|
913 |
"memory": 512 |
|
914 |
}, |
|
915 |
"disk.sizes": [ |
|
916 |
20480 |
|
917 |
], |
|
918 |
"pnode": "node1.example.com", |
|
919 |
"nic.macs": ["01:23:45:67:89:01"], |
|
920 |
"snodes": ["node2.example.com"], |
|
921 |
"disk_template": "drbd", |
|
922 |
"admin_state": true, |
|
923 |
"os": "debian-etch", |
|
924 |
"oper_state": true |
|
910 |
"status": "running", |
|
911 |
"disk_usage": 20480, |
|
912 |
"nic.bridges": [ |
|
913 |
"xen-br0" |
|
914 |
], |
|
915 |
"name": "web.example.com", |
|
916 |
"tags": ["tag1", "tag2"], |
|
917 |
"beparams": { |
|
918 |
"vcpus": 2, |
|
919 |
"memory": 512 |
|
920 |
}, |
|
921 |
"disk.sizes": [ |
|
922 |
20480 |
|
923 |
], |
|
924 |
"pnode": "node1.example.com", |
|
925 |
"nic.macs": ["01:23:45:67:89:01"], |
|
926 |
"snodes": ["node2.example.com"], |
|
927 |
"disk_template": "drbd", |
|
928 |
"admin_state": true, |
|
929 |
"os": "debian-etch", |
|
930 |
"oper_state": true, |
|
931 |
… |
|
925 | 932 |
}, |
926 |
...
|
|
933 |
…
|
|
927 | 934 |
] |
928 | 935 |
|
929 | 936 |
|
... | ... | |
1612 | 1619 |
"dtotal": 5246208, |
1613 | 1620 |
"sinst_cnt": 2, |
1614 | 1621 |
"dfree": 5171712, |
1615 |
"offline": false |
|
1622 |
"offline": false, |
|
1623 |
… |
|
1616 | 1624 |
}, |
1617 |
...
|
|
1625 |
…
|
|
1618 | 1626 |
] |
1619 | 1627 |
|
1620 | 1628 |
``/2/nodes/[node_name]`` |
Also available in: Unified diff