import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const migrations = await client.storage.migrations.list();
console.log(migrations.data);{
"data": [
{
"source_id": "<string>",
"target_bucket_name": "<string>",
"target_region": "<string>",
"id": "<string>",
"refresh": true,
"last_copy": [
"2020-01-01T00:00:00Z"
],
"status": "pending",
"bytes_to_migrate": 123,
"bytes_migrated": 123,
"speed": 123,
"eta": [
"2020-01-01T00:00:00Z"
],
"created_at": [
"2020-01-01T00:00:00Z"
]
}
],
"meta": {
"page_number": [
2
],
"page_size": [
25
],
"total_pages": [
3
],
"total_results": [
55
]
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const migrations = await client.storage.migrations.list();
console.log(migrations.data);{
"data": [
{
"source_id": "<string>",
"target_bucket_name": "<string>",
"target_region": "<string>",
"id": "<string>",
"refresh": true,
"last_copy": [
"2020-01-01T00:00:00Z"
],
"status": "pending",
"bytes_to_migrate": 123,
"bytes_migrated": 123,
"speed": 123,
"eta": [
"2020-01-01T00:00:00Z"
],
"created_at": [
"2020-01-01T00:00:00Z"
]
}
],
"meta": {
"page_number": [
2
],
"page_size": [
25
],
"total_pages": [
3
],
"total_results": [
55
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List Migrations Response
Show child attributes
ID of the Migration Source from which to migrate data.
Bucket name to migrate the data into. Will default to the same name as the source_bucket_name.
Telnyx Cloud Storage region to migrate the data to.
Unique identifier for the data migration.
If true, will continue to poll the source bucket to ensure new data is continually migrated over.
Time when data migration was last copied from the source.
["2020-01-01T00:00:00Z"]Status of the migration.
pending, checking, migrating, complete, error, stopped Total amount of data found in source bucket to migrate.
Total amount of data that has been succesfully migrated.
Current speed of the migration.
Estimated time the migration will complete.
["2020-01-01T00:00:00Z"]Time when data migration was created
["2020-01-01T00:00:00Z"]Was this page helpful?