giorod3 / saas-api-samples

Sample code snippets for consuming the CloudSploit API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 51.7%Language:JavaScript 32.4%Language:HCL 13.3%Language:Ruby 2.5%Language:Shell 0.2%