Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ecl2-sdk

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecl2-sdk

const ECL2 = require('ecl2-sdk')

  • 1.7.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

#Usage:

const ECL2 = require('ecl2-sdk')

const options = {
    apiKey: 'your-api-key',
    apiSecret: 'your-api-secret',
    tenantId: 'your-tenant-id',
    zone: 'your-zone',
    authUrl: 'your-auth-url',
    appendVersionInPath: false,
}

const run = async () => {
    try {
        const c = await ECL2.Client(options)

        //Or instantiate with an existing token
        //const withToken = {
        //    token: "existing-token",
        //    tenantId: 'your-tenant-id',
        //    zone: 'your-zone',
        //    authUrl: 'your-auth-url',
        //    appendVersionInPath: false,
        //}
        //const c = await ECL2.Client(withToken)

        c.listServers()
        c.getServer({ id: 'server-id' })

        c.listNetworks()
        c.getNetwork({ id: 'net-id' })
        c.updateNetwork({ id: 'net-id', payload: { name: 'newName' } })
        c.createNetwork({ payload: { name: 'newName' } })
        c.deleteNetwork({ id: 'net-id' })

        c.listLoadbalancers()
        c.getLoadbalancer({ id: 'lb-id' })

        c.listFirewalls()
        c.getFirewall({ id: 'fw-id' })

        c.listZones()
        c.listCatalog()
    } catch (err) {
        console.error(err)
    }
}
run()

Supported methods

Server

  • listServers
  • getServer
  • startServer
  • stopServer
  • deleteServer
  • getConsole
  • resizeServer

Baremetal Server

  • listBaremetalServers
  • listBaremetalFlavors
  • getBaremetalServer
  • deleteBaremetalServer
  • getBaremetalConsole
  • startBaremetalServer
  • stopBaremetalServer
  • rebootBaremetalServer
  • listBaremetalZones
  • listBaremetalKeypairs
  • listBaremetalServerMetadata
  • listBaremetalLimits

Network

  • listNetworks
  • getNetwork
  • createNetwork
  • updateNetwork
  • deleteNetwork
  • listSubnets
  • getSubnet

Firewall

  • listFirewalls
  • getFirewall
  • listFirewallInterfaces
  • getFirewallPlan

Loadbalancer

  • listLoadbalancers
  • getLoadbalancer
  • getLoadBalancerPlan
  • listLoadbalancerInterfaces

Availability Zone

  • listZones

Catalog

  • listCatalog

Keypairs

  • listKeypairs
  • deleteKeypair

Zones

  • listZones

Monitoring

  • listSamples
  • listMeters

Internet Gateway

  • listInternetGateways
  • getInternetService
  • listGlobalIps
  • listGatewayInterfaces
  • listStaticRoutes

VPN Gateway

  • listVPNGateways

Snapshots

  • listSnapshots
  • getImageDetails

Volumes

  • listVolumes
  • attachVolume
  • dettachVolume

VNA

  • listVNA
  • listVNAOperations
  • getVNAPlan

FIC

  • ficListRouters
  • ficListOperations
  • ficListRouterFirewalls
  • ficListRouterNATs
  • ficListNATGIPAddressSet
  • ficListLOAs
  • ficListConnections
  • ficListPorts

SSS

  • listSSS
  • sssListTenants
  • sssGetContractBill

FAQs

Package last updated on 04 Oct 2019

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