Oracle Cloud Infrastructure Core Service client for Node.js, part of the official OCI TypeScript/JavaScript SDK (v2.132.0). Enables management of compute, networking, storage, and other core resources via the OCI API. Integrates with OCI identity/access management, signing, and configuration. Regularly updated alongside the OCI platform. Alternative to raw HTTP calls; provides typed interfaces, promise-based requests, and automatic retry handling. Supports both ESM and CJS via commonjs-compatible build.
npm install oci-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a CoreClient using OCI config file auth, then lists compute instances in a compartment.
Use async/await or .then() on all API calls.
Ensure the config file or environment has the region set correctly.
Use a loop reading the opc-next-page header until it is undefined.
Install oci-core separately instead of depending on monolithic oci-sdk package.
Check OCI_REGION env variable or config file region. Also verify network connectivity to OCI endpoints.
Ensure ~/.oci/config exists and has correct permissions. Use common.ConfigFileAuthenticationDetailsProvider() with correct path.