Skip to main content
POST
/
storage
/
migration_sources
JavaScript
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>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
provider
enum<string>
required

Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.

Available options:
aws,
telnyx
provider_auth
object
required
bucket_name
string
required

Bucket name to migrate the data from.

source_region
string

For intra-Telnyx buckets migration, specify the source bucket region in this field.

Response

200 - application/json

Create Migration Source Response

data
object