Wondering what’s next for npm?Check out our public roadmap! »

    @ovh-api/dbaas-logs
    TypeScript icon, indicating that this package has built-in type declarations

    3.1.18 • Public • Published

    OVHCloud API client for dbaas-logs region Europe

    This module contains all typing needed to use OvhCloud dbaas-logs 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/dbaas-logs
    ... Add all APIs you needs

    Usage

    import OvhEngine from '@ovh-api/api';
    import apiMe from '@ovh-api/me';
    import apiDbaasLogs from '@ovh-api/dbaas-logs';
    
    const ovhEngine = new OvhEngine({ 
        certCache: './cert-cache.json', // optional cache certificat on disk.
        accessRules: 'GET /dbaas/logs, GET /dbaas/logs/*, GET /me', // optional limit the requested privileges.
    });
    
    const api = {
        me: apiMe(ovhEngine),
        dbaasLogs: apiDbaasLogs(ovhEngine),
    }
    
    const test = async () => {
        const { nichandle } = await api.me.$get();
        const data = await api.dbaasLogs.$get();
        console.log(`${nichandle} have the following services:`);
        console.log(data);
    }

    Install

    npm i @ovh-api/dbaas-logs

    DownloadsWeekly Downloads

    8

    Version

    3.1.18

    License

    MIT

    Unpacked Size

    88.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar