Mengaktifkan HTTP/2 untuk negosiasi antara server dan klien. Perubahan berlaku dalam satu hingga dua menit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:EnableHttp2 |
update |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-0adf3ad751284cc69fcf9669fba***** |
| EnableHttp2 |
boolean |
Yes |
Apakah akan mengaktifkan HTTP/2 untuk negosiasi antara server dan klien. Parameter ini berlaku untuk permintaan. Nilai valid:
|
true |
| AcceptLanguage |
string |
No |
Bahasa yang digunakan untuk menampilkan hasil. Nilai valid: zh dan en. zh menunjukkan Bahasa Tionghoa, yang merupakan nilai default. en menunjukkan Bahasa Inggris. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
52BA6DA6-A702-4362-A32F-DFF79655**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
integer |
The status code. A value of 200 is returned if the request is successful. |
200 |
| ErrorCode |
string |
The status code. |
Success |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The message returned. |
OK |
| DynamicCode |
string |
The dynamic part in the error message. |
code |
| DynamicMessage |
string |
The dynamic part in the error message. This parameter is used to replace the **%s** variable in the ErrMessage parameter. Catatan
The request parameter DtsJobId is invalid if The Value of Input Parameter %s is not valid is returned for ErrMessage and DtsJobId is returned for DynamicMessage. |
The specified parameter is invalid. |
| Data |
boolean |
Indicates whether HTTP/2 is enabled. |
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "52BA6DA6-A702-4362-A32F-DFF79655****",
"Success": true,
"Code": 200,
"ErrorCode": "Success",
"HttpStatusCode": 200,
"Message": "OK",
"DynamicCode": "code",
"DynamicMessage": "The specified parameter is invalid.",
"Data": 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.