PUT
/v1/migrations
curl \
--request PUT 'http://localhost:9644/v1/migrations' \
--header "Content-Type: application/json" \
--data '{"migration_type":"inbound","topics":[{"source_topic_reference":{"topic":"string","ns":"string"},"alias":{"topic":"string","ns":"string"}}],"consumer_groups":["string"],"auto_advance":true}'
Request examples
Inbound
{
"migration_type": "inbound",
"topics": [
{
"source_topic_reference": {
"topic": "string",
"ns": "string"
},
"alias": {
"topic": "string",
"ns": "string"
}
}
],
"consumer_groups": [
"string"
],
"auto_advance": true
}
{
"migration_type": "outbound",
"topics": [
{
"topic": "string",
"ns": "string"
}
],
"consumer_groups": [
"string"
],
"copy_to": {
"access_key": "string",
"secret_key": "string",
"region": "string",
"bucket": "string",
"credential_source": "config",
"topic_manifest_prefix": "string"
},
"auto_advance": true
}
Response examples (200)
Inbound_migration
{
"migration_type": "inbound",
"topics": [
{
"source_topic_reference": {
"topic": "string",
"ns": "string"
},
"alias": {
"topic": "string",
"ns": "string"
}
}
],
"consumer_groups": [
"string"
],
"auto_advance": true
}
{
"migration_type": "outbound",
"topics": [
{
"topic": "string",
"ns": "string"
}
],
"consumer_groups": [
"string"
],
"copy_to": {
"access_key": "string",
"secret_key": "string",
"region": "string",
"bucket": "string",
"credential_source": "config",
"topic_manifest_prefix": "string"
},
"auto_advance": true
}