JSPM

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

Simple REST client for AquaSec API

Package Exports

  • @timcrider/aquasec-client
  • @timcrider/aquasec-client/index.js

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 (@timcrider/aquasec-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Aqua Security REST Client

@timcrider/aquasec-client is a Node.js simple REST client for the Aqua Security API. Check the official Aquasec documentation for more information.

Installation

$ npm i @timcrider/aqua-client

Basic Usage

(async () => {
  const {AquaClient, Credentials} = require('@timcrider/aqua-client');

  // Create Aqua rest client
  const client = new AquaClient({url: '<Aqua URL>'});

  // Create Aqua credentials
  const auth = new Credentials();
  auth.store({id: '<Aqua User>', password: '<Aqua Password>', remember: true});

  // Login to Aqua
  await client.authenticate(auth);

  // Get registries
  let registries = await client.get({endpoint: '/api/v1/registries'});
  console.log(JSON.stringify(registries, null, 2))
})();

Disclaimer: This product is not associated with Aqua Security. It is a personal project that I am sharing with the community. I am not responsible for any damages that may occur from the use of this software. Please use at your own risk.