关联SLB。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:AddGatewaySlb |
create |
*Gateway
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SlbId |
string |
是 |
SLB ID。 |
lb-bp18t6jjskwxh6wy1**** |
| Type |
string |
否 |
类型。
|
PUB_NET |
| GatewayUniqueId |
string |
是 |
网关唯一标识 ID。 |
gw-9cdcf8e4f58144059e73ff4c5ef9**** |
| VServerGroupId |
string |
否 |
http 虚拟服务组 ID。 |
353 |
| ServiceWeight |
integer |
否 |
服务权重。 |
80 |
| HttpPort |
integer |
否 |
HTTP 端口(虚拟服务组)。 |
80 |
| HttpsPort |
integer |
否 |
HTTPS 端口(虚拟服务组)。 |
443 |
| HttpsVServerGroupId |
string |
否 |
https 虚拟服务组 ID。 |
353 |
| VServiceList |
array<object> |
否 |
SLB 监听信息。 |
|
|
object |
否 |
|||
| VServerGroupId |
string |
否 |
虚拟服务器组 ID。 |
rsp-bp1j**t0fyl** |
| VServerGroupName |
string |
否 |
虚拟服务器组名称。 |
k8s/31**0/***/istio-system/clusterid |
| Port |
integer |
否 |
端口。 |
443 |
| Protocol |
string |
否 |
协议类型:
|
HTTPS |
| AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
316F5F64-F73D-42DC-8632-01E308B6**** |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| Message |
string |
返回信息。
|
请求处理成功 |
| Code |
integer |
响应码。 |
200 |
| Success |
boolean |
请求结果,取值如下:
|
true |
| Data |
string |
返回数据。 |
lb-uf6dqr4ondqi5w3df7hdf |
示例
正常返回示例
JSON格式
{
"RequestId": "316F5F64-F73D-42DC-8632-01E308B6****",
"HttpStatusCode": 200,
"Message": "请求处理成功",
"Code": 200,
"Success": true,
"Data": "lb-uf6dqr4ondqi5w3df7hdf"
}
错误码
|
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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。