修改云原生网关服务来源,目前仅支持对含有Ingress监听配置的ACK容器服务进行修改操作。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:UpdateServiceSource |
update |
*Gateway
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GatewayId |
integer |
否 |
网关 ID。 |
429 |
| Type |
string |
否 |
类型。
|
K8s |
| Source |
string |
否 |
来源。
|
K8s |
| Address |
string |
否 |
地址。 |
c9ad2a0717032427e920754e25b49e3b5 |
| Id |
integer |
否 |
服务来源 ID。 |
63 |
| Name |
string |
否 |
名称。 |
istio |
| GatewayUniqueId |
string |
否 |
网关唯一 ID。 |
gw-cdd1bb9bfb8341e9805f931a3ba1f4c6 |
| IngressOptionsRequest |
object |
否 |
Ingress 配置。 |
zh |
| EnableIngress |
boolean |
否 |
是否开启 Ingress。 |
true |
| IngressClass |
string |
否 |
监听 Ingress Class。 |
com.test.xxx |
| WatchNamespace |
string |
否 |
监听目标命名空间。 |
default |
| EnableStatus |
boolean |
否 |
是否更新 Ingress Status。 |
true |
| PathList |
array |
否 |
服务根路径数组。 |
|
|
string |
否 |
服务根路径。 |
/path |
|
| AcceptLanguage |
string |
否 |
返回信息的语言类型。
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
数据结构。 |
||
| RequestId |
string |
请求 ID。 |
6AB2B0B6-4A86-54E2-A340-FC47A22EE659 |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| Message |
string |
返回信息。 |
success |
| Code |
integer |
状态码。 |
200 |
| Success |
boolean |
请求结果,取值如下。
|
true |
| Data |
integer |
返回数据。 |
63 |
示例
正常返回示例
JSON格式
{
"RequestId": "6AB2B0B6-4A86-54E2-A340-FC47A22EE659",
"HttpStatusCode": 200,
"Message": "success",
"Code": 200,
"Success": true,
"Data": 63
}
错误码
|
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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。