擷取應用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 |
應用 ID。 |
|
| AppName |
string |
應用程式名稱。 |
|
| ClusterId |
string |
叢集 ID。 |
|
| 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。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。