feat(xo-server/RestApi): add networks, VBDs, VDIs and VIFs
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
||||
|
||||
- [REST API] Expose networks, VBDs, VDIs and VIFs
|
||||
|
||||
### Bug fixes
|
||||
|
||||
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
||||
|
||||
@@ -75,9 +75,13 @@ export default class RestApi {
|
||||
|
||||
const collections = [
|
||||
{ id: 'hosts', type: 'host' },
|
||||
{ id: 'networks', type: 'network' },
|
||||
{ id: 'pools', type: 'pool' },
|
||||
{ id: 'vms', type: 'VM' },
|
||||
{ id: 'srs', type: 'SR' },
|
||||
{ id: 'vbds', type: 'VBD' },
|
||||
{ id: 'vdis', type: 'VDI' },
|
||||
{ id: 'vifs', type: 'VIF' },
|
||||
{ id: 'vms', type: 'VM' },
|
||||
]
|
||||
|
||||
api.get('/', (req, res) => sendObjects(collections, req, res))
|
||||
|
||||
Reference in New Issue
Block a user