2.19.0 • Published 4 months ago

cloudtower-node-sdk v2.19.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.19.0

4 months ago

2.19.0-rc.2

6 months ago

2.18.0

8 months ago

2.13.1

8 months ago

2.17.0

10 months ago

2.16.0

11 months ago

2.15.0

1 year ago

2.14.0

1 year ago

2.9.1

2 years ago

2.13.0

2 years ago

2.11.0

2 years ago

2.12.0

2 years ago

2.10.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

3.0.0-rc.1

2 years ago

2.7.0

2 years ago

2.6.0

2 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

1.9.0

3 years ago