Mendapatkan parameter global gerbang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetGatewayOption |
get |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
integer |
No |
ID gerbang. |
429 |
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-c9bc5afd61014165bd58f621b491***** |
| 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. |
C92F4A4D-A2FD-593E-839E-F3D4DFD2**** |
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The message returned.
|
The request is successfully processed. |
| Code |
integer |
The status code returned. The value 200 indicates that the request is successfully processed. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data | GatewayOption |
The detailed configurations of the gateway.
|
{'LogConfigDetails': {'LogEnabled': False}, 'TraceDetails': {'TraceEnabled': False}} |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C92F4A4D-A2FD-593E-839E-F3D4DFD2****",
"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.