Migrates an application.
Operation description
For application deployment in a container service Kubernetes cluster imported to Enterprise Distributed Application Service (EDAS), use the DeployK8sApplication operation provided by EDAS. For more information, see DeployK8sApplication.
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 raw data for 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 |
Specifies whether to export the application binary. Default value: false. |
{withBinary:true} |
| appIds |
array |
No |
The list of application IDs. |
|
|
string |
No |
appId |
b72c0ed4-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.