アプリケーションのグレースフル起動とシャットダウンのルールをクエリします。
操作説明
この操作を呼び出して、アプリケーションのグレースフル起動とシャットダウンのルールをクエリできます。
`AppId` パラメーターを使用して、アプリケーションのグレースフル起動とシャットダウンのルールを優先的にクエリできます。
`AppId` パラメーターが空の場合、`RegionId`、`Namespace`、および `AppName` パラメーターを使用して、アプリケーションのグレースフル起動とシャットダウンのルールをクエリできます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:GetLosslessRuleByApp |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
| AppName |
string |
任意 |
アプリケーション名。 |
example-app |
| Namespace |
string |
任意 |
MSE 名前空間の名前。 |
default |
| AppId |
string |
任意 |
アプリケーション ID。 |
hkhon1po62@c3df23522baa*** |
| AcceptLanguage |
string |
任意 |
応答の言語。有効な値:
|
zh |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返されるデータ。 |
||
| RequestId |
string |
リクエスト ID。 |
DC34E4A3-5F1C-4E40-86EA-02EDF967**** |
| Success |
boolean |
リクエストが成功したかどうかを示します。有効な値:
|
true |
| Code |
integer |
応答コード。 |
200 |
| ErrorCode |
string |
返されるエラーコード。 |
Success |
| HttpStatusCode |
integer |
返される HTTP ステータスコード。 |
200 |
| Message |
string |
返されるメッセージ。 |
success |
| Data |
object |
返されるデータ。 |
|
| AppName |
string |
アプリケーション名。 |
spring-cloud-a |
| AppId |
string |
アプリケーション ID。 |
hkhon1po62@24810bf4364a*** |
| Count |
integer |
インスタンス数。 |
1 |
| Enable |
boolean |
グレースフル起動が有効になっているかどうかを示します。有効な値:
|
true |
| WarmupTime |
integer |
プリフェッチ期間。単位:秒。 |
120 |
| DelayTime |
integer |
登録レイテンシ。単位:秒。 |
60 |
| FuncType |
integer |
プリフェッチ曲線の傾き。 |
2 |
| Aligned |
boolean |
readiness プローブの前にサービス登録が完了したかどうかを示します。 |
true |
| Related |
boolean |
readiness プローブの前にサービスプリフェッチが完了したかどうかを示します。 |
false |
| LossLessDetail |
boolean |
オンラインおよびオフライン処理の詳細が表示されるかどうかを示します。 |
true |
| Notice |
boolean |
通知が有効になっているかどうかを示します。 |
false |
例
成功レスポンス
JSONJSON
{
"RequestId": "DC34E4A3-5F1C-4E40-86EA-02EDF967****",
"Success": true,
"Code": 200,
"ErrorCode": "Success",
"HttpStatusCode": 200,
"Message": "success",
"Data": {
"AppName": "spring-cloud-a",
"AppId": "hkhon1po62@24810bf4364a***",
"Count": 1,
"Enable": true,
"WarmupTime": 120,
"DelayTime": 60,
"FuncType": 2,
"Aligned": true,
"Related": false,
"LossLessDetail": true,
"Notice": false
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。