import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const migrationSources = await client.storage.migrationSources.list();
console.log(migrationSources.data);{
"data": [
{
"provider": "aws",
"provider_auth": {
"access_key": "<string>",
"secret_access_key": "<string>"
},
"bucket_name": "<string>",
"id": "<string>",
"source_region": "<string>"
}
],
"meta": {
"page_number": 2,
"total_pages": 3,
"page_size": 25,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const migrationSources = await client.storage.migrationSources.list();
console.log(migrationSources.data);{
"data": [
{
"provider": "aws",
"provider_auth": {
"access_key": "<string>",
"secret_access_key": "<string>"
},
"bucket_name": "<string>",
"id": "<string>",
"source_region": "<string>"
}
],
"meta": {
"page_number": 2,
"total_pages": 3,
"page_size": 25,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List Migration Sources Response
Show child attributes
Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.
aws, telnyx Bucket name to migrate the data from.
Unique identifier for the data migration source.
For intra-Telnyx buckets migration, specify the source bucket region in this field.
Was this page helpful?