Membuat tugas migrasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:AddMigrationTask |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RequestPars |
string |
No |
Parameter permintaan tambahan dalam format JSON. |
{} |
| ClusterType |
string |
No |
Tipe Kluster. Nilai valid:
|
Nacos-Ans |
| OriginInstanceAddress |
string |
No |
Alamat node Instans sumber. |
192.168.1.1:8848 |
| OriginInstanceName |
string |
No |
Nama Instans sumber. |
Source instance |
| OriginInstanceNamespace |
string |
No |
Daftar namespace. Parameter ini wajib diisi ketika Kluster sumber adalah Pusat Registrasi Nacos. |
namesapceId1,namesapceId2 |
| TargetInstanceId |
string |
No |
ID Instans target. |
mse-cn-ud82***** |
| TargetClusterName |
string |
No |
Nama Instans target. |
Destination instance |
| TargetClusterUrl |
string |
No |
URL Instans target. |
mse-66*****-nacos-ans.mse.aliyuncs.com:8848 |
| ProjectDesc |
string |
No |
Deskripsi. |
This is a description. |
| SyncType |
string |
No |
Tipe sinkronisasi. Valid values:
|
Service |
| AcceptLanguage |
string |
No |
Bahasa informasi yang dikembalikan dalam format. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data structure. |
||
| Data |
object |
Data structure. |
|
| Id |
string |
Task ID. |
12 |
| UserId |
string |
User ID. |
183876217***** |
| ClusterType |
string |
Cluster type.
|
Nacos-Ans |
| OriginInstanceAddress |
string |
Source instance node address. |
192.168.1.1:8848 |
| OriginInstanceName |
string |
Source instance name. |
Source instance |
| OriginInstanceNamespace |
string |
Namespace list, required when the source cluster is Nacos. |
namesapceId1,namesapceId2 |
| TargetInstanceId |
string |
Target instance ID. |
mse-cn-7pp2w***** |
| TargetClusterName |
string |
Target instance name. |
Destination instance |
| TargetClusterUrl |
string |
Target instance URL. |
mse-94d****-nacos-ans.mse.aliyuncs.com:8848 |
| ProjectDesc |
string |
Description. |
testsdfsdfsd |
| SyncType |
string |
SyncType |
Service |
| RequestId |
string |
Request ID. |
7466566F-F30F-4A29-965D-3E0AF21D**** |
| Message |
string |
Message. |
The request is processed successfully. |
| ErrorCode |
string |
Error code. |
mse-100-000 |
| Success |
boolean |
请求结果,取值如下:
|
true |
Contoh
Respons sukses
JSONformat
{
"Data": {
"Id": "12",
"UserId": "183876217*****",
"ClusterType": "Nacos-Ans",
"OriginInstanceAddress": "192.168.1.1:8848\n",
"OriginInstanceName": "Source instance\n",
"OriginInstanceNamespace": "namesapceId1,namesapceId2",
"TargetInstanceId": "mse-cn-7pp2w*****",
"TargetClusterName": "Destination instance\n",
"TargetClusterUrl": "mse-94d****-nacos-ans.mse.aliyuncs.com:8848",
"ProjectDesc": "testsdfsdfsd",
"SyncType": "Service"
},
"RequestId": "7466566F-F30F-4A29-965D-3E0AF21D****",
"Message": "The request is processed successfully.",
"ErrorCode": "mse-100-000",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.