Memperbarui konfigurasi gerbang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateGatewayOption |
update |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
integer |
No |
ID gerbang. |
421 |
| GatewayOption | GatewayOption |
No |
Konfigurasi terperinci gerbang.
|
|
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-83b0ddb569434f82b9fe8e4c60c4**** |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
124D02EB-DBDD-534D-A701-B4A95D3D**** |
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The message returned.
|
The request is successfully processed. |
| Code |
integer |
The status code returned. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data | GatewayOption |
The data returned. |
{'LogConfigDetails': {'LogEnabled': True}, 'TraceDetails': {'Sample': 17, 'TraceEnabled': True}} |
Contoh
Respons sukses
JSONformat
{
"RequestId": "124D02EB-DBDD-534D-A701-B4A95D3D****",
"HttpStatusCode": 200,
"Message": "The request is successfully processed.\n",
"Code": 200,
"Success": true,
"Data": {
"TraceDetails": {
"TraceEnabled": true,
"Sample": 10,
"TraceType": "XTRACE",
"ServiceId": 10458,
"ServicePort": "80"
},
"LogConfigDetails": {
"LogEnabled": true,
"ProjectName": "project",
"LogStoreName": "name"
},
"EnableHardwareAcceleration": true,
"DisableHttp2Alpn": true,
"EnableWaf": 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.