Official Oracle Cloud Infrastructure SDK for managing File Storage service resources (file systems, mount targets, exports, snapshots) in Node.js. Current stable version 2.132.0. Released as part of the OCI TypeScript SDK monorepo with frequent updates aligning to OCI API changes. Key differentiator: full type safety with generated TypeScript definitions, supports both ESM and CJS, and requires OCI authentication via API keys or instance principals. Compared to REST API calls, this SDK handles signing, retries, and serialization automatically.
npm install oci-filestorageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an OCI File Storage client using config file authentication and lists all file systems in a compartment.
Set region in the config file or pass it in the client constructor options.
Import ConfigFileAuthenticationDetailsProvider from 'oci-common' as shown in quickstart.
Configure firewall to allow outbound HTTPS to OCI API endpoints for your region.
Use environment variables, OCI Vault, or config files for credentials.
Import from 'oci-common/lib/region' if needed explicitly.
Set region in the config file under DEFAULT profile, or pass region option to FilestorageClient constructor.
Ensure ~/.oci/config exists with correct user, fingerprint, tenancy, key_file.
Import model types from 'oci-filestorage/lib/model' instead of top-level.
Check network/firewall settings; allow outbound to *.oraclecloud.com.