Skip to content

A NodeJS wrapper for the Oracle Cloud Infrastructure API

Notifications You must be signed in to change notification settings

my-ideas/oci-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implemented methods:

CORE

  • GetInstance
  • ListInstances
  • InstanceAction
  • ListVnicAttachments
  • GetVnic

IAM

  • ListCompartments

Test

To test the API, create a test/data/testData.json file populated with the following content:

{
    "client": {
        "userID": "ocid1.user.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "fingerprint": "66:7yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
        "tenantID": "ocid1.tenaxxxxxzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
        "zone": "eu-frankfurt-1",
        "key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA6bszZa1Hx7w5wvNSdFRh0un6l0+I8/5LZiEH0yrZ8JEDvpeD\n213slz...........xxxxxx"
    },
    "testInstance": {
        "compartmentId": "ocid1.compartment.oc1..qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",
        "instanceId": "ocid1.instance.oc1.eu-frankfurt-1.wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww",
        "vnicId": "ocid1.vnic.oc1.eu-frankfurt-1.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
    }
}

Note that tests for POST APIs are skipped by default.

About

A NodeJS wrapper for the Oracle Cloud Infrastructure API

Resources

Stars

Watchers

Forks

Packages

No packages published