wds_32_api

1.0.0 • Public • Published

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

Documentation for Authorization

All endpoints do not require authorization.

Readme

Keywords

none

Package Sidebar

Install

npm i wds_32_api

Weekly Downloads

0

Version

1.0.0

License

Unlicense

Unpacked Size

229 kB

Total Files

95

Last publish

Collaborators

  • liuanxin