0.1.2 • Published 3 years ago
hci_api v0.1.2
hci_api
This is simple node wrap around SANGFOR HCI API.
See the details docs on Sangfor超融合平台API接口说明(20220106).
Only access and partial vm module is finished.
How to use it
- npm i -S hci_api
- set BASE_URL, USERNAME and PASSWORD environments or you can create .env file which contains these envs.
- import the lib via
const {add_roles, delete_roles, update_roles, get_roles, create_vm, create_vm_cluster, delete_vm, encrypt_vm} = require('hci_api')(for CommonJS) orimport {add_roles, delete_roles, update_roles, get_roles, create_vm, create_vm_cluster, delete_vm, encrypt_vm} from 'hcp_api'(for ESM); - use the imported api as you need.
Todos
- finish init project code
- finish
accessmodule. - finish
vmmodule. - finish
networkmodule. - finish
storagemodule. - finish
managementmodule. - finish
statusmodule. - finish
usermodule.
License
MIT License
Copyright (c) 2023 liudonghua