Create a Migration Source
POST/storage/migration_sources
Create a source from which data can be migrated from.
Request
- application/json
Body
provider stringrequired
Possible values: [aws
, telnyx
]
Cloud provider from which to migrate data. Use 'telnyx' if you want to migrate data from one Telnyx bucket to another.
source_region string
For intra-Telnyx buckets migration, specify the source bucket region in this field.
provider_auth
object
required
access_key string
AWS Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here.
secret_access_key string
AWS Secret Access Key. For Telnyx-to-Telnyx migrations, use your Telnyx API key here as well.
bucket_name stringrequired
Bucket name to migrate the data from.
Responses
200: Create Migration Source Response
Response Headers
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/storage/migration_sources' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"provider": "aws",
"source_region": "string",
"provider_auth": {
"access_key": "string",
"secret_access_key": "string"
},
"bucket_name": "string"
}'
Response samples
{
"data": {
"id": "string",
"provider": "aws",
"source_region": "string",
"provider_auth": {
"access_key": "string",
"secret_access_key": "string"
},
"bucket_name": "string"
}
}