Skip to content

Sample code snippets for consuming the CloudSploit API

Notifications You must be signed in to change notification settings

giorod3/saas-api-samples

 
 

Repository files navigation

SaaS API Samples for Aqua

Table of Contents

Python samples

cd sample-python

Javascript samples

cd sample-js

Ruby samples

cd sample-ruby

Install gems

bundle

Add API key and secret

Create .env file for local environment variables.

cp sample.env .env

Edit .env.

vi .env

Update API_KEY and API_SECRET values.

API_KEY=api-key-123
API_SECRET=api-secret-456

Run example

The tests.rb example will query all current plugins from the API endpoint and return a JSON object.

ruby tests.rb

About

Sample code snippets for consuming the CloudSploit API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.6%
  • JavaScript 32.4%
  • HCL 13.3%
  • Ruby 2.5%
  • Shell 0.2%