@ovh-api-ca/dedicated-server
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

OVHCloud API client for dedicated-server region Canada

This module contains all typing needed to use OvhCloud dedicated-server APIs, with hi-level IntelliSense / Code Completion

NPM Version

Setup

With npm:

npm install --save @ovh-api/api
npm install --save @ovh-api-ca/me
npm install --save @ovh-api-ca/dedicated-server
... Add all APIs you needs

Usage

import OvhEngine from '@ovh-api/api';
import apiMe from '@ovh-api-ca/me';
import apiDedicatedServer from '@ovh-api-ca/dedicated-server';

const ovhEngine = new OvhEngine({ 
    certCache: './cert-cache.json', // optional cache certificat on disk.
    accessRules: 'GET /dedicated/server, GET /dedicated/server/*, GET /me', // optional limit the requested privileges.
});

const api = {
    me: apiMe(ovhEngine),
    dedicatedServer: apiDedicatedServer(ovhEngine),
}

const test = async () => {
    const { nichandle } = await api.me.$get();
    const data = await api.dedicatedServer.$get();
    console.log(`${nichandle} have the following services:`);
    console.log(data);
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.23latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.23
5.0.11
5.0.00
4.0.40
4.0.30
4.0.10
4.0.00
3.1.280
3.1.271
3.1.261
3.1.250
3.1.231
3.1.220
3.1.210
3.1.200
3.1.191
3.1.181
3.1.140
3.1.121
3.1.110
3.1.100
3.1.91
3.1.80
3.1.61
3.1.51
3.1.40
3.1.30
3.1.11
3.1.01
3.0.10
3.0.00
2.0.160
2.0.141
2.0.130
2.0.120

Package Sidebar

Install

npm i @ovh-api-ca/dedicated-server

Weekly Downloads

8

Version

5.0.2

License

MIT

Unpacked Size

151 kB

Total Files

7

Last publish

Collaborators

  • urielch