wds_32_api v1.0.0
wds_32_api
Wds32Api - JavaScript client for wds_32_api This is the VHost API document for WDS products This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen For more information, please visit https://www.exponTech.com
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install wds_32_api --save
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var Wds32Api = require('wds_32_api');
var api = new Wds32Api.WdsSystemApi()
var opts = {
'body': new Wds32Api.LoginRequestView() // {LoginRequestView}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.vhostLogin(opts, callback);
Documentation for API Endpoints
All URIs are relative to https://wds.expontech.com
Class | Method | HTTP request | Description |
---|---|---|---|
Wds32Api.WdsSystemApi | vhostLogin | POST /api/v1/login | 登录 |
Wds32Api.WdsSystemApi | vhostLogout | POST /api/v1/logout | 退出 |
Wds32Api.WdsVhostApi | createVhost | POST /api/v2/sync/block/vhost/ | 创建vhost |
Wds32Api.WdsVhostApi | deleteVhost | DELETE /api/v2/sync/block/vhost/{vhost_id} | 删除vhost |
Wds32Api.WdsVhostApi | showBindedUssList | GET /api/v2/sync/block/vhost/{vhost_id}/vhost_binded_uss | 获取已绑定的uss网关列表 |
Wds32Api.WdsVhostApi | showUnbindedUssList | GET /api/v2/sync/block/vhost/{vhost_id}/vhost_unbinded_uss | 获取可以绑定的uss网关列表 |
Wds32Api.WdsVhostApi | showVhostBindedVolList | GET /api/v2/sync/block/vhost/{vhost_id}/get_vhost_map_volumes | 获取vhost绑定卷列表 |
Wds32Api.WdsVhostApi | showVhostDetail | GET /api/v2/sync/block/vhost/{vhost_id} | 获取vhost详情 |
Wds32Api.WdsVhostApi | showVhostList | GET /api/v2/sync/block/vhost/ | 获取vhost列表 |
Wds32Api.WdsVhostApi | showVhostUnvolList | GET /api/v2/sync/block/vhost/{vhost_id}/vhost_unmapped_volumes | 获取vhost未绑定卷列表 |
Wds32Api.WdsVhostApi | vhostBindUss | PUT /api/v2/sync/block/vhost/bind_uss | VHOST绑定USS |
Wds32Api.WdsVhostApi | vhostUnbindedUss | PUT /api/v2/sync/block/vhost/unbind_uss | Vhost解绑USS |
Documentation for Models
- Wds32Api.AuthInfoResponseView
- Wds32Api.AuthRoleResponseView
- Wds32Api.AuthUserInfoResponseView
- Wds32Api.AvailableUssResponseView
- Wds32Api.BindUssResponseView
- Wds32Api.Common400ResponseView
- Wds32Api.Common401ResponseView
- Wds32Api.Common500ResponseView
- Wds32Api.CommonErrorResponseView
- Wds32Api.CreateVhostRequestView
- Wds32Api.CreateVhostResponseView
- Wds32Api.DeleteVhostResponseView
- Wds32Api.ListVhostResponseView
- Wds32Api.LoginRequestView
- Wds32Api.LoginResponseView
- Wds32Api.UssResponseView
- Wds32Api.VhostAlreadyBindUssResponseView
- Wds32Api.VhostBindUssRequestView
- Wds32Api.VhostBindUssResponseView
- Wds32Api.VhostDetailResponseView
- Wds32Api.VhostMapVolListResponseView
- Wds32Api.VhostResponseView
- Wds32Api.VhostUnbindUssRequestView
- Wds32Api.VhostUnbindUssResponseView
- Wds32Api.VhostUnmapVolListResponseView
- Wds32Api.VolListView
Documentation for Authorization
All endpoints do not require authorization.
10 months ago