Check out our upcoming events and meetups! View events →
Initiate a migration of data from an external provider into Telnyx Cloud Storage. Currently, only S3 is supported.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const migration = await client.storage.migrations.create({
source_id: 'source_id',
target_bucket_name: 'target_bucket_name',
target_region: 'target_region',
});
console.log(migration.data);{
"data": {
"source_id": "<string>",
"target_bucket_name": "<string>",
"target_region": "<string>",
"id": "<string>",
"refresh": true,
"last_copy": "2020-01-01T00:00:00Z",
"status": "pending",
"bytes_to_migrate": 123,
"bytes_migrated": 123,
"speed": 123,
"eta": "2020-01-01T00:00:00Z",
"created_at": "2020-01-01T00:00:00Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the Migration Source from which to migrate data.
Bucket name to migrate the data into. Will default to the same name as the source_bucket_name.
Telnyx Cloud Storage region to migrate the data to.
If true, will continue to poll the source bucket to ensure new data is continually migrated over.
Create Migration Response
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const migration = await client.storage.migrations.create({
source_id: 'source_id',
target_bucket_name: 'target_bucket_name',
target_region: 'target_region',
});
console.log(migration.data);{
"data": {
"source_id": "<string>",
"target_bucket_name": "<string>",
"target_region": "<string>",
"id": "<string>",
"refresh": true,
"last_copy": "2020-01-01T00:00:00Z",
"status": "pending",
"bytes_to_migrate": 123,
"bytes_migrated": 123,
"speed": 123,
"eta": "2020-01-01T00:00:00Z",
"created_at": "2020-01-01T00:00:00Z"
}
}