Migrates an application.
Try it now
Test
RAM authorization
Request syntax
POST /pop/v5/k8s/migrateK8sApp HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
No |
regionId |
cn-shenzhen |
| cmd |
string |
No |
The operation command. Valid values:
|
export |
| rawData |
string |
No |
The row data of the application to be imported, which is sourced from the JSON file of the exported application. |
{"job_id":"b72c0ed4-a69f-4872-b4c6-def5555bfd3e","app_info":"xxxx" |
| config |
string |
No |
The migration configuration. For example, {"withBinary":false} specifies whether to export the application binary. |
{withBinary:true} |
| appIds |
string |
No |
appIds |
"b72c0ed4-a69f-4872-b4c6-def5555bfd3e,a72c0ed4-a69f-4872-b4c6-def5555bfd3e" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
integer |
The status code. |
200 |
| Message |
string |
The additional information. |
success |
| data |
object |
The API information. |
|
| migrationId |
string |
The migration ID. |
a3de82d7-83a4-4cca-8d1e-63f87651ce78 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"data": {
"migrationId": "a3de82d7-83a4-4cca-8d1e-63f87651ce78"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.