服务端与客户端协商时是否使用http2(修改后1~2分钟后生效)
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:EnableHttp2 |
update |
*Gateway
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GatewayUniqueId |
string |
是 |
网关唯一标识 ID。 |
gw-0adf3ad751284cc69fcf9669fba***** |
| EnableHttp2 |
boolean |
是 |
服务端与客户端协商时是否使用 http2。取值:
|
true |
| AcceptLanguage |
string |
否 |
返回结果显示的语言。取值:zh(默认值):中文,en:英文 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
RestResult |
||
| RequestId |
string |
请求 ID。 |
52BA6DA6-A702-4362-A32F-DFF79655**** |
| Success |
boolean |
请求结果,取值如下:
|
true |
| Code |
integer |
code 仅仅用来和 success 同步 |
200 |
| ErrorCode |
string |
错误码。 |
Success |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| Message |
string |
响应信息。 |
OK |
| DynamicCode |
string |
动态错误信息中的占位符 |
code |
| DynamicMessage |
string |
动态错误信息,用于替换返回参数 ErrMessage 错误信息中的**%s**。 说明
如果 ErrMessage 返回The Value of Input Parameter %s is not valid,且 DynamicMessage 返回 DtsJobId,则代表所传入的请求参数 DtsJobId 不合法。 |
The specified parameter is invalid. |
| Data |
boolean |
是否开启成功。 |
true |
示例
正常返回示例
JSON格式
{
"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
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。