获取应用SLB配置信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sae:DescribeApplicationSlbs |
get |
*全部资源
|
无 | 无 |
请求语法
GET /pop/v1/sam/app/slb HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AppId |
string |
是 |
目标应用 ID。 |
017f39b8-dfa4-4e16-a84b-1dcee4b1**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回数据。 |
||
| RequestId |
string |
请求 ID。 |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
附加信息。取值说明如下:
|
success |
| TraceId |
string |
调用链 ID,用于精确查询调用信息。 |
0a98a02315955564772843261e**** |
| Data |
object |
返回结果。 |
|
| Intranet |
array<object> |
内网 SLB 配置。 |
|
|
object |
内网 SLB 配置详情。 |
||
| HttpsCertId |
string |
HTTPS 协议对应的阿里云证书 ID。 |
1513561019707729_16f37aae5f3_-375882821_-169099**** |
| Protocol |
string |
支持的协议。 |
TCP |
| TargetPort |
integer |
容器端口。 |
8080 |
| Port |
integer |
SLB 监听端口。 |
80 |
| HttpsCaCertId |
string |
HTTPS 协议对应的阿里云 CA 证书 ID。 |
1513561019707729_16f37aae5f3_-375882821_-169099**** |
| StickySession |
boolean |
是否开启会话保持。 |
false |
| StickySessionType |
string |
Cookie 处理方式。取值:
说明
当 StickySession 值为 on 时,该参数必选且有效。 |
insert |
| CookieTimeout |
integer |
Cookie 超时时间。单位:秒。取值范围:1~86400。 说明
当 StickySession 为 on 且 StickySessionType 为 insert 时,该参数必选且有效。 |
56 |
| Cookie |
string |
服务器上配置的 Cookie。 长度为 1~200 个字符,只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,不能以$开头。 说明
当 StickySession 为 on 且 StickySessionType 为 server 时,该参数必选且有效。 |
wwe |
| CreateTime |
integer |
规则被创建的时间戳。 |
1741247308294 |
| InternetIp |
string |
公网 SLB 地址。 |
59.74.**.** |
| InternetSlbId |
string |
公网 SLB ID。 |
lb-uf6xc7wybefehnv45**** |
| Internet |
array<object> |
公网 SLB 配置。 |
|
|
object |
公网 SLB 配置详情。 |
||
| HttpsCertId |
string |
HTTPS 协议对应的阿里云证书 ID。 |
1513561019707729_16f37aae5f3_-375882821_-169099**** |
| Protocol |
string |
支持的协议。 |
TCP |
| TargetPort |
integer |
容器端口。 |
8080 |
| Port |
integer |
SLB 监听端口。 |
80 |
| HttpsCaCertId |
string |
HTTPS 协议对应的阿里云 CA 证书 ID。 |
1513561019707729_16f37aae5f3_-375882821_-169099**** |
| StickySession |
boolean |
是否开启会话保持。 |
false |
| StickySessionType |
string |
Cookie 处理方式。取值:
说明
当 StickySession 值为 on 时,该参数必选且有效。 |
insert |
| CookieTimeout |
integer |
Cookie 超时时间。单位:秒。取值范围:1~86400。 说明
当 StickySession 为 on 且 StickySessionType 为 insert 时,该参数必选且有效。 |
56 |
| Cookie |
string |
服务器上配置的 Cookie。 长度为 1~200 个字符,只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,不能以$开头。 说明
当 StickySession 为 on 且 StickySessionType 为 server 时,该参数必选且有效。 |
wwe |
| CreateTime |
integer |
规则被创建的时间戳。 |
1741247308294 |
| IntranetSlbId |
string |
内网 SLB ID。 |
lb-uf6xc7wybefehnv45**** |
| IntranetIp |
string |
内网 SLB 地址。 |
192.168.XX.XX |
| InternetSlbExpired |
boolean |
公网 SLB 是否已过期。 |
false |
| IntranetSlbExpired |
boolean |
私网 SLB 是否已过期。 |
false |
| InternetSlbChargeType |
string |
公网负载均衡的计费方式。 |
PayBySpec |
| IntranetSlbChargeType |
string |
内网负载均衡的计费方式。 |
PayBySpec |
| AppId |
string |
||
| AppName |
string |
||
| ClusterId |
string |
||
| ErrorCode |
string |
错误码。取值说明如下:
|
空 |
| Code |
string |
接口状态或 POP 错误码。取值说明如下:
|
200 |
| Success |
boolean |
获取应用 SLB 配置信息是否成功。取值说明如下:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"Intranet": [
{
"HttpsCertId": "1513561019707729_16f37aae5f3_-375882821_-169099****",
"Protocol": "TCP",
"TargetPort": 8080,
"Port": 80,
"HttpsCaCertId": "1513561019707729_16f37aae5f3_-375882821_-169099****",
"StickySession": false,
"StickySessionType": "insert",
"CookieTimeout": 56,
"Cookie": "wwe",
"CreateTime": 1741247308294
}
],
"InternetIp": "59.74.**.**",
"InternetSlbId": "lb-uf6xc7wybefehnv45****",
"Internet": [
{
"HttpsCertId": "1513561019707729_16f37aae5f3_-375882821_-169099****",
"Protocol": "TCP",
"TargetPort": 8080,
"Port": 80,
"HttpsCaCertId": "1513561019707729_16f37aae5f3_-375882821_-169099****",
"StickySession": false,
"StickySessionType": "insert",
"CookieTimeout": 56,
"Cookie": "wwe",
"CreateTime": 1741247308294
}
],
"IntranetSlbId": "lb-uf6xc7wybefehnv45****",
"IntranetIp": "192.168.XX.XX",
"InternetSlbExpired": false,
"IntranetSlbExpired": false,
"InternetSlbChargeType": "PayBySpec",
"IntranetSlbChargeType": "PayBySpec",
"AppId": "",
"AppName": "",
"ClusterId": ""
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidApplication.NotFound | The current application does not exist. | 找不到当前应用。 |
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的参数:%s不能为空。 |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的参数{%s}。 |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的参数{%s}:%s。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。