2.14.0 • Published 4 months ago

cloudtower-node-sdk v2.14.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Cloudtower Node Sdk

typescript 编写的 Cloudtower SDK。

安装

yarn install cloudtower-node-sdk

使用

创建Client并鉴权

import { CloudTowerClient, UserSource } from "cloudtower-node-sdk";

const client = new CloudTowerClient(
  {
    username: "username",
    password: "password",
    source: UserSource.LOCAL,
  },
  {
    baseURL: "http://<path-to-tower>/v2/api",
  }
);

创建实例并请求

const api = new VmApi(client);
const data = await api.getVms({
  first: 10,
});
console.log(data);
2.14.0

4 months ago

2.9.1

10 months ago

2.13.0

6 months ago

2.11.0

8 months ago

2.12.0

7 months ago

2.10.0

9 months ago

2.9.0

10 months ago

2.8.0

1 year ago

3.0.0-rc.1

12 months ago

2.7.0

1 year ago

2.6.0

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.0

2 years ago

1.9.0

2 years ago