Check out our upcoming events and meetups! View events →
Create a source from which data can be migrated from.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const migrationSource = await client.storage.migrationSources.create({
bucket_name: 'bucket_name',
provider: 'aws',
provider_auth: {},
});
console.log(migrationSource.data);{
"data": {
"provider": "aws",
"provider_auth": {
"access_key": "<string>",
"secret_access_key": "<string>"
},
"bucket_name": "<string>",
"id": "<string>",
"source_region": "<string>"
}
}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.
Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.
aws, telnyx Show child attributes
Bucket name to migrate the data from.
For intra-Telnyx buckets migration, specify the source bucket region in this field.
Create Migration Source 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 migrationSource = await client.storage.migrationSources.create({
bucket_name: 'bucket_name',
provider: 'aws',
provider_auth: {},
});
console.log(migrationSource.data);{
"data": {
"provider": "aws",
"provider_auth": {
"access_key": "<string>",
"secret_access_key": "<string>"
},
"bucket_name": "<string>",
"id": "<string>",
"source_region": "<string>"
}
}