New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rl-cloud-api-sdk

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rl-cloud-api-sdk

This is a client for the Redislabs Cloud API

  • 1.4.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

About

This NodeJS module is an SDK for the Redis Cloud REST API. You can use this module to develop againts Redis Cloud REST API.

Quick Start

Install the module

Run the following command in your terminal:

npm i rl-cloud-api-sdk

Initialize the module

To start using to API you first need to enable it and generate your API keys. You can follow the instructions here.

It is recommended not to save your API secrets inside your code.

This is how you create a client:

const client = new CloudAPISDK({
    accessKey: 'API access key',
    secretKey: 'API secret key',
});

This is how you call a specific API:

//basic usage
const accountInformation = await client.getAccountInformation();

Existing functions vs API Endpoints

SectionFunctionAPI endpointUsage
AccountgetAccountInformation/await client.getAccountInformation()
AccountgetDataPersistences/data-persistenceawait client.getDataPersistence()
AccountgetDatabaseModules/database-modulesawait client.getDatabasesModules()
AccountgetSystemLogs/logs?limit=1&offset=3await client.getSystemLogs(1, 3)
AccountgetPaymentMethods/payment-methodsawait client.getPaymentMethods()
AccountgetPlans/plans?provider=AWSawait client.getPlans('AWS')
AccountgetRegions/regions?provider=AWSawait client.getRegions('AWS')
SusbscriptionsgetSubscriptions/subscriptionsawait client.getSubscriptions()
SusbscriptionscreateSubscription/subscriptionsawait client.createSubscription({name: 'sub1', ....})
SusbscriptionsgetSubscription/subscriptions/1await client.updateSubscription(1, {name: 'sub1'...})
SusbscriptionsupdateSubscription/subscriptions/1await client.updateSubscription(1, {name: 'sub1'...})
SusbscriptionsdeleteSubscription/subscriptions/1await client.deleteSubscription(1)
SusbscriptionsgetSubscriptionCidrWhitelist/subscriptions/1/cidrawait client.getSubscriptionCidrWhitelist(1)
SusbscriptionsupdateSubscriptionCidrWhitelists/subscriptions/1/cidrawait client.updateSubscriptionCidrWhitelists(1, {cidrIps: [...], ..})
SusbscriptionsgetVpcPeerings/subscriptions/1/peeringsawait client.getVpcPeerings(1)
SusbscriptionscreateSubscriptionVpcPeering/subscriptions/1/peeringsawait client.createSubscriptionVpcPeering(1, {region: 'us-east-1',...})
SusbscriptionsdeleteSubscriptionVpcPeering/subscriptions/1/peerings/1await client.deleteSubscriptionVpcPeering(1, 1)
DatabasesgetDatabases/subscriptions/1/databasesawait client.getDatabases()
DatabasescreateDatabase/subscriptions/1/databasesawait client.createDatabase(1, {name: 'db1', ..})
DatabasesgetDatabase/subscriptions/1/databases/1await client.getDatabase(1, 1)
DatabasesupdateDatabase/subscriptions/1/databases/1await client.updateDatabase(1, 1, {name: 'db2', ..})
DatabasesdeleteDatabase/subscriptions/1/databases/1await client.deleteDatabase(1, 1)
DatabasesbackupDatabase/subscriptions/1/databases/1/backupawait client.backupDatabase(1, 1)
DatabasesimportIntoDatabase/subscriptions/1/databases/1/importawait client.importIntoDatabase(1, 1, {importFromUri: 's3://...'})
Cloud AccountsgetCloudAccounts/cloud-accountsawait client.getCloudAccounts()
Cloud AccountscreateCloudAccount/cloud-accoutsawait client.createCloudAccount({name: 'c1'...})
Cloud AccountsgetCloudAccount/cloud-accounts/1await client.getCloudAccount(1)
Cloud AccountsupdateCloudAccount/cloud-accounts/1await client.updateCloudAccount(1)
Cloud AccountsdeleteCloudAccount/cloud-accounts/1await client.deleteCloudAccount(1)
TasksgetTasks/tasksawait client.getTasks()
TasksgetTask/tasks/1await client.getTask()

You can find the API documentation here

Unit testing

Keywords

FAQs

Package last updated on 18 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc