JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q68906F
  • License MIT

Add typing to to ovh api status

Package Exports

  • @ovh-api/status

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ovh-api/status) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

OVHCloud API client for status region Europe

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

NPM Version

Setup

With npm:

npm install --save @ovh-api/api
npm install --save @ovh-api/me
npm install --save @ovh-api/status
... Add all APIs you needs

Usage

import OvhEngine from '@ovh-api/api';
import apiMe from '@ovh-api/me';
import apiStatus from '@ovh-api/status';

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

const api = {
    me: apiMe(ovhEngine),
    status: apiStatus(ovhEngine),
}

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