Skip to main content

Create a Migration Source

POST 
/storage/migration_sources

Create a source from which data can be migrated from.

Request

Body

    provider stringrequired

    Possible values: [aws]

    Cloud provider from which to migrate data.

    provider_auth

    object

    required

    access_key string

    AWS Access Key.

    secret_access_key string

    AWS Secret Access Key.

    bucket_name stringrequired

    Bucket name to migrate the data from.

Responses

200: Create Migration Source Response

Response Headers

    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",
    "provider_auth": {
    "access_key": "string",
    "secret_access_key": "string"
    },
    "bucket_name": "string"
    }'

    Response samples


    {
    "data": {
    "id": "string",
    "provider": "aws",
    "provider_auth": {
    "access_key": "string",
    "secret_access_key": "string"
    },
    "bucket_name": "string"
    }
    }