動作管理定義を作成します
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mse:CreateSentinelBlockFallbackDefinition |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AppName |
string |
任意 |
アプリケーション名。 |
example-app |
| RegionId |
string |
任意 |
リージョン。 |
cn-hangzhou |
| Source |
string |
任意 |
冗長パラメーター。現在は無視されます。 |
edasmsc |
| Language |
string |
任意 |
プログラミング言語。例: Java、 Go。 |
JAVA |
| Namespace |
string |
任意 |
Microservices Engine (MSE) 名前空間の名前。 |
test |
| AppId |
string |
任意 |
アプリケーション ID。省略可能です。 |
abcde@12345 |
| Scenario |
string |
任意 |
シナリオ。一律に default を入力します。 |
default |
| ResourceClassification |
integer |
任意 |
ターゲットリソースタイプ。 |
1 Web 2 Rpc |
| FallbackBehavior |
string |
任意 |
動作の詳細。 |
{"webFallbackMode":0,"webRespMessage":"{}","webRespStatusCode":429,"webRespContentType":0} |
| Name |
string |
任意 |
動作名。 |
MyFallback |
| AcceptLanguage |
string |
任意 |
結果を表示する言語。有効な値: zh と en。 zh はデフォルト値で、中国語を表します。 en は英語を表します。 |
zh |
レスポンスフィールド
|
パラメーター |
型 |
説明 |
例 |
|
object |
|||
| Message |
string |
返されたメッセージ。 |
success |
| RequestId |
string |
リクエスト ID。 |
ADDD8AB7-8D1C-4697-A83E-410D2607**** |
| Data |
object |
返されたデータ。 |
|
| ResourceClassification |
integer |
ターゲットリソースタイプ。 |
1 |
| UserId |
string |
ユーザー ID。 |
123456 |
| AppName |
string |
アプリケーションの名前。 |
spring-cloud-a |
| Id |
integer |
動作 ID。 |
34726 |
| Namespace |
string |
アプリケーションが属するマイクロサービス名前空間。 |
default |
| Name |
string |
動作名。 |
test |
| FallbackBehavior |
string |
動作の詳細。 |
{"webRespStatusCode":429,"webRespMessage":"test","webFallbackMode":0,"webRespContentType":0} |
| Code |
integer |
レスポンスコード。 |
200 |
| Success |
string |
リクエストが成功したかどうかを示します。有効な値:
|
true |
| HttpStatusCode |
integer |
HTTP ステータスコード。 |
200 |
例
成功レスポンス
JSONJSON
{
"Message": "success",
"RequestId": "ADDD8AB7-8D1C-4697-A83E-410D2607****",
"Data": {
"ResourceClassification": 1,
"UserId": "123456",
"AppName": "spring-cloud-a",
"Id": 34726,
"Namespace": "default",
"Name": "test",
"FallbackBehavior": "{\"webRespStatusCode\":429,\"webRespMessage\":\"test\",\"webFallbackMode\":0,\"webRespContentType\":0}"
},
"Code": 200,
"Success": "true",
"HttpStatusCode": 200
}
エラーコード
|
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 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。