import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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>"
}
}Create a source from which data can be migrated from.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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>"
}
}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 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
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?