Registry / devops / oci-applicationmigration

oci-applicationmigration

JSON →
library2.84.0jsnpmunverified

Official Oracle Cloud Infrastructure Node.js client for the Application Migration service (v2.84.0, regular releases). Enables managing migration of applications between OCI environments. Requires OCI account, IAM policies, API signing key pair, and prior configuration via OCI config file or environment variables. Key differentiator: first-party Oracle SDK; supports all OCI Application Migration API operations with TypeScript types. Lower-level than Terraform; no abstraction over pagination or retries.

npm install oci-applicationmigration
INSTALL
IMPORT
SIG · OCI-APPLICATIONMIG
O
oci-applicationmigration
devopsjavascriptv2.84.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApplicationMigrationClient
import { ApplicationMigrationClient } from 'oci-applicationmigration'
const { ApplicationMigrationClient } = require('oci-applicationmigration');
ESM import with named export; CommonJS require also works.
models
import * as models from 'oci-applicationmigration/lib/model'
import { models } from 'oci-applicationmigration'
models is a namespace export, not a named export.
requests
import { ListMigrationsRequest } from 'oci-applicationmigration/lib/request'
import { ListMigrationsRequest } from 'oci-applicationmigration'
Request types are in a separate subpath; not re-exported from main index.

Initializes client with OCI config file auth and lists migrations in a compartment.

import { ApplicationMigrationClient } from 'oci-applicationmigration'; import common from 'oci-common'; const provider = new common.ConfigFileAuthenticationDetailsProvider(); const client = new ApplicationMigrationClient({ authenticationDetailsProvider: provider }); async function listMigrations(compartmentId: string) { const request = { compartmentId }; const response = await client.listMigrations(request); console.log(response.items); } listMigrations('ocid1.compartment.oc1..example');
Debug
Known issues
deprecatedThe 'oci-common' package has been deprecated; use '@oci-sdk/common' instead.
fix
npm install @oci-sdk/common and update imports to '@oci-sdk/common'.
affects: >=2.0.0
gotchaRequest types (e.g., ListMigrationsRequest) are not exported from the main package entry; import from 'oci-applicationmigration/lib/request'.
fix
Use import { ListMigrationsRequest } from 'oci-applicationmigration/lib/request'.
affects: >=2.0.0
breakingIn version 2.x, the default export was removed; use named imports only.
fix
Use 'import { ApplicationMigrationClient } from 'oci-applicationmigration';' instead of default import.
affects: >=2.0.0
gotchaRegion must be set via config or environment variable; client does not auto-detect from OCI metadata.
fix
Set OCI_REGION environment variable or provide region in config file.
affects: >=1.0.0
gotchaAll API calls require an active OCI account with appropriate IAM policies; otherwise you get 401/403 errors.
fix
Verify IAM policies and user permissions in OCI console.
affects: >=1.0.0
Errors
Common errors & fixes
Error: connect ECONNREFUSED 127.0.0.1:443
Missing or incorrect OCI config file; client trying to use local proxy or wrong endpoint.
fix
Ensure ~/.oci/config file exists with correct region and tenancy OCID.
TypeError: oci_common.ConfigFileAuthenticationDetailsProvider is not a constructor
Incorrect import of ConfigFileAuthenticationDetailsProvider from deprecated 'oci-common' package.
fix
Use 'import common from 'oci-common'; and then 'new common.ConfigFileAuthenticationDetailsProvider()'.
Cannot find module 'oci-applicationmigration/lib/request'
Package not installed or subpath imports not resolved in older Node versions.
fix
Install latest oci-applicationmigration (npm install oci-applicationmigration@latest) or use Node >=14.
Upgrade
Version history
2.84.0latest on npm
Audit
Dependencies
oci-commonrequiredCore SDK for authentication, signing, and HTTP client
Agent activity
4 hits · last 30 days
node
4
Resources
oci-applicationmigration — npm install oci-applicationmigration · libregistry