Mengambil aturan untuk mulai mulus dan shutdown.
Deskripsi operasi
You can call the FetchLosslessRuleList operation to retrieve the configuration rules for graceful start and shutdown.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:FetchLosslessRuleList |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah. |
cn-beijing |
| AppName |
string |
No |
Nama aplikasi. |
spring-boot-sample |
| Namespace |
string |
No |
Namespace. |
default |
| AppId |
string |
No |
ID aplikasi. |
hyaziyb6sc@86827c61f5ed*** |
| PageNumber |
integer |
Yes |
Nomor halaman. |
1 |
| PageSize |
integer |
Yes |
Jumlah entri yang dikembalikan pada setiap halaman. |
10 |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh-CN |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The return value. |
||
| RequestId |
string |
The request ID. |
56D9E600-6348-4260-B35F-583413F**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
integer |
The response code. |
200 |
| ErrorCode |
string |
The error code. |
Success |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The message. |
success |
| Data |
object |
The response data. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| TotalSize |
integer |
The total number of entries. |
36 |
| Results |
array<object> |
The response data. |
|
|
object |
The response data. |
||
| AppName |
string |
The application name. |
echo-demo |
| AppId |
string |
The application ID. |
hkhon1po62@24810bf4364a*** |
| Count |
integer |
The total number of instances. |
3 |
| Enable |
boolean |
Indicates whether graceful start is enabled. Valid values:
|
true |
| WarmupTime |
integer |
The prefetching duration. Unit: seconds. |
60 |
| DelayTime |
integer |
The registration latency. Unit: seconds. |
60 |
| FuncType |
integer |
The slope of the prefetching curve. |
2 |
| Aligned |
boolean |
Indicates whether service registration is complete before readiness probe. |
true |
| Related |
boolean |
Indicates whether service prefetching is complete before readiness probe. |
false |
| LossLessDetail |
boolean |
Specifies whether to display online and offline processing details. |
false |
| Notice |
boolean |
Indicates whether notification is enabled. |
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "56D9E600-6348-4260-B35F-583413F****",
"Success": true,
"Code": 200,
"ErrorCode": "Success",
"HttpStatusCode": 200,
"Message": "success",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalSize": 36,
"Results": [
{
"AppName": "echo-demo",
"AppId": "hkhon1po62@24810bf4364a***",
"Count": 3,
"Enable": true,
"WarmupTime": 60,
"DelayTime": 60,
"FuncType": 2,
"Aligned": true,
"Related": false,
"LossLessDetail": false,
"Notice": true
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %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.