1.0.0 • Published 10 months ago

wds_32_api v1.0.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
10 months ago

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

ClassMethodHTTP requestDescription
Wds32Api.WdsSystemApivhostLoginPOST /api/v1/login登录
Wds32Api.WdsSystemApivhostLogoutPOST /api/v1/logout退出
Wds32Api.WdsVhostApicreateVhostPOST /api/v2/sync/block/vhost/创建vhost
Wds32Api.WdsVhostApideleteVhostDELETE /api/v2/sync/block/vhost/{vhost_id}删除vhost
Wds32Api.WdsVhostApishowBindedUssListGET /api/v2/sync/block/vhost/{vhost_id}/vhost_binded_uss获取已绑定的uss网关列表
Wds32Api.WdsVhostApishowUnbindedUssListGET /api/v2/sync/block/vhost/{vhost_id}/vhost_unbinded_uss获取可以绑定的uss网关列表
Wds32Api.WdsVhostApishowVhostBindedVolListGET /api/v2/sync/block/vhost/{vhost_id}/get_vhost_map_volumes获取vhost绑定卷列表
Wds32Api.WdsVhostApishowVhostDetailGET /api/v2/sync/block/vhost/{vhost_id}获取vhost详情
Wds32Api.WdsVhostApishowVhostListGET /api/v2/sync/block/vhost/获取vhost列表
Wds32Api.WdsVhostApishowVhostUnvolListGET /api/v2/sync/block/vhost/{vhost_id}/vhost_unmapped_volumes获取vhost未绑定卷列表
Wds32Api.WdsVhostApivhostBindUssPUT /api/v2/sync/block/vhost/bind_ussVHOST绑定USS
Wds32Api.WdsVhostApivhostUnbindedUssPUT /api/v2/sync/block/vhost/unbind_ussVhost解绑USS

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.0

10 months ago