Membuat aplikasi.
API ini telah ditinggalkan. Kami merekomendasikan migrasi ke mse(2019-05-31) - CreateApplication guna memperoleh fungsionalitas yang lebih baik dan dukungan berkelanjutan. Meskipun API yang telah ditinggalkan ini masih dapat diakses sementara, tidak akan ada pembaruan atau perbaikan bug lebih lanjut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateMseServiceApplication |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppName |
string |
Yes |
Nama aplikasi. |
bsd-xxyp-open-goods-server |
| Region |
string |
Yes |
ID wilayah tempat instans berada. Contoh:
|
cn-shenzhen |
| Source |
string |
No |
Sumber layanan. |
edasmsc |
| Language |
string |
No |
Bahasa pemrograman aplikasi. |
JAVA |
| ExtraInfo |
string |
No |
Informasi tambahan. |
{} |
| SentinelEnable |
string |
No |
Apakah akan mengaktifkan mode kompatibel Sentinel. |
true |
| SwitchEnable |
string |
No |
Apakah akan mengaktifkan switching. |
true |
| MseVersion |
string |
No |
Edisi instans MSE yang ingin Anda beli. Nilai valid:
|
mse_pro |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| Message |
string |
The message returned. |
The request was successfully processed. |
| RequestId |
string |
The ID of the request. |
904F6C04-1284-****-8ED2-FFC57E507A72 |
| Data |
object |
The data structure. |
|
| Status |
integer |
The status. Valid values: 1: available; 2: deleted. |
1 |
| ExtraInfo |
string |
The additional information. |
{} |
| AppName |
string |
The name of the application. |
spring-cloud-a |
| UpdateTime |
integer |
The last modification time. |
1632979237663 |
| LicenseKey |
string |
The license key in use. |
xxxxxxxx@xxxxxxxxxx |
| CreateTime |
integer |
The creation time. |
1631001140913 |
| AppId |
string |
The application ID. |
xxxxxxxx@xxxxxxxxxx |
| UserId |
string |
The ID of the user. |
1234567890 |
| Source |
string |
The source type. |
edasmsc |
| Language |
string |
The programming language of the application. |
JAVA |
| RegionId |
string |
The ID of the region. |
cn-hangzhou |
| Version |
string |
The version information. |
1.0.0 |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Message": "The request was successfully processed.\n",
"RequestId": "904F6C04-1284-****-8ED2-FFC57E507A72",
"Data": {
"Status": 1,
"ExtraInfo": "{}",
"AppName": "spring-cloud-a",
"UpdateTime": 1632979237663,
"LicenseKey": "xxxxxxxx@xxxxxxxxxx",
"CreateTime": 1631001140913,
"AppId": "xxxxxxxx@xxxxxxxxxx",
"UserId": "1234567890",
"Source": "edasmsc",
"Language": "JAVA",
"RegionId": "cn-hangzhou",
"Version": "1.0.0"
},
"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.