Memperbarui aturan isolasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateIsolationRule |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
Namespace layanan mikro tempat aplikasi berada. |
default |
| AppName |
string |
Yes |
Nama aplikasi. |
spring-cloud-a |
| RuleId |
integer |
Yes |
ID aturan. |
1 |
| Threshold |
number |
No |
Ambang batas konkurensi untuk aturan isolasi. |
3 |
| Enable |
boolean |
No |
Apakah akan mengaktifkan aturan. |
true |
| AppId |
string |
No |
ID aplikasi. |
hkhon1po62@c3df23522****** |
| LimitApp |
string |
No |
Nama aplikasi sumber. |
|
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid: zh (Tiongkok) dan en (Inggris). Nilai default: zh. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. |
OK |
| RequestId |
string |
The request ID. |
4E9FDCFE-0738-493B-B801-82BDFBCB**** |
| Code |
string |
The response code. |
200 |
| Data |
object |
The rule details. |
|
| Namespace |
string |
The microservice namespace to which the application belongs. |
default |
| Id |
integer |
The rule ID. |
1 |
| AppName |
string |
The application name. |
spring-cloud-a |
| Resource |
string |
The name of the interface to which the rule applies. This value must match the interface name on the API details page in the console. |
/a |
| Threshold |
number |
The concurrency threshold. |
3 |
| Enable |
boolean |
Indicates whether the rule is enabled. |
true |
| AppId |
string |
The application ID. |
hkhon1po62@c3df23522bXXXXX |
| LimitApp |
string |
The source application. |
|
| Success |
boolean |
Indicates whether the request was successful. |
true |
Contoh
Respons sukses
JSONformat
{
"Message": "OK",
"RequestId": "4E9FDCFE-0738-493B-B801-82BDFBCB****",
"Code": "200",
"Data": {
"Namespace": "default",
"Id": 1,
"AppName": "spring-cloud-a",
"Resource": "/a",
"Threshold": 3,
"Enable": true,
"AppId": "hkhon1po62@c3df23522bXXXXX",
"LimitApp": ""
},
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.