擷取服務網格列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
servicemesh:DescribeServiceMeshes |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Tag |
array<object> |
否 |
標籤列表。 |
|
|
object |
否 |
資源的標籤。 |
||
| Key |
string |
否 |
標籤 Key。 |
test |
| Value |
string |
否 |
標籤值。 |
yahaha |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應體。 |
||
| RequestId |
string |
請求 ID。 |
BD65C0AD-D3C6-48D3-8D93-38D2015C**** |
| ServiceMeshes |
array<object> |
服務網格詳情。 |
|
|
object |
|||
| Endpoints |
object |
端點詳情。 |
|
| IntranetPilotEndpoint |
string |
Istio Pilot 地址(內網)。 |
192.168.xx.xx:15011 |
| IntranetApiServerEndpoint |
string |
API Server 地址(內網)。 |
https://192.168.xx.xx:6443 |
| PublicApiServerEndpoint |
string |
API Server 地址(公網)。 |
https://123.56.xx.xx:6443 |
| ReverseTunnelEndpoint |
string |
反向通道地址(廢棄)。 |
none |
| PublicPilotEndpoint |
string |
網格執行個體的 Pilot 公網地址。 |
xx.xx.xx.xx |
| ServiceMeshInfo |
object |
服務網格基本資料。 |
|
| Profile |
string |
商業化之前的網格執行個體規格,取值:
|
Pro |
| CreationTime |
string |
服務網格建立時間。 |
2020-04-21T09:42:20+08:00 |
| UpdateTime |
string |
服務網格最後修改時間。 |
2020-04-21T09:42:20+08:00 |
| ErrorMessage |
string |
異常資訊。 |
error |
| Version |
string |
服務網格版本號碼。 |
1 |
| State |
string |
服務網格狀態。 |
success |
| ServiceMeshId |
string |
服務網格 ID。 |
cb8963379255149cb98c8686f274x**** |
| Name |
string |
服務網格名稱。 |
test |
| RegionId |
string |
服務網格所在地區 ID。 |
cn-beijing |
| Spec |
object |
規格資訊。 |
|
| Network |
object |
服務網格網路設定資訊。 |
|
| VpcId |
string |
專用網路 ID。 |
vpc-2zew0rajjkmxy2369**** |
| SecurityGroupId |
string |
安全性群組 ID。 |
sg-2ze384sxttxbctnj**** |
| VSwitches |
array |
虛擬交換器 ID 列表。 |
|
|
string |
虛擬交換器 ID 列表。 |
["1","2"] |
|
| LoadBalancer |
object |
負載平衡資訊。 |
|
| PilotPublicEip |
boolean |
是否使用公網地址暴露 Istio Pilot,取值:
|
true |
| PilotPublicLoadbalancerId |
string |
公網地址暴露 Istio Pilot 對應的負載平衡 ID。 |
lb-2zesa8qs8kbkj9jkl**** |
| ApiServerLoadbalancerId |
string |
公網地址暴露 API Server 對應的負載平衡 ID。 |
lb-2zekaak10uxds44vx**** |
| ApiServerPublicEip |
boolean |
是否使用公網地址暴露 API Server,取值:
|
true |
| MeshConfig |
object |
服務網格配置資訊。 |
|
| Telemetry |
boolean |
是否開啟採集 Prometheus 監控指標(建議使用阿里雲 Prometheus 監控),取值:
|
true |
| OutboundTrafficPolicy |
string |
外部流量策略,取值:
|
ALLOW_ANY |
| Tracing |
boolean |
是否啟用鏈路追蹤(需要開通可觀測鏈路 OpenTelemetry 版),取值:
|
true |
| StrictMtls |
boolean |
模式。 |
true |
| Pilot |
object |
控制面配置。 |
|
| Http10Enabled |
boolean |
是否啟用支援 HTTP 1.0。取值:
|
true |
| TraceSampling |
number |
啟用鏈路追蹤時的採樣率。 |
0.2 |
| Mtls |
boolean |
是否啟用服務就近訪問,取值:
|
true |
| SidecarInjector |
object |
Sidecar 注入配置。 |
|
| EnableNamespacesByDefault |
boolean |
是否為所有命名空間開啟自動注入功能。
|
false |
| AutoInjectionPolicyEnabled |
boolean |
通過 Pod Annotations 實現自動注入。 |
true |
| InitCNIConfiguration |
object |
CNI 初始化配置。 |
|
| ExcludeNamespaces |
string |
要從 Istio Pod 檢查中排除的名稱空間。 |
default,foo |
| Enabled |
boolean |
為 istio-proxy 進行流量重新導向時,是否需要賦予 istio-init 容器特權,取值:
|
true |
| ExtraConfiguration |
object |
服務網格執行個體的擴充配置。 |
|
| Playground |
object |
ASM 實驗室配置(僅對 ASM 實驗室執行個體有效)。 |
|
| Scene |
string |
ASM 實驗室情境 ID。 |
ewmaLb |
| Clusters |
array |
叢集列表。 |
|
|
string |
叢集列表。 |
["caf089e56daba4c51a8906fe43ea1****","c80f45444b3da447da60a911390c2****"] |
|
| ClusterSpec |
string |
服務網格執行個體規格,取值:
|
standard |
| OwnerType |
string |
建立網格的雲產品類型,取值:
|
ackone |
| OwnerId |
string |
建立網格的雲產品執行個體 ID。 |
cc3e96f249d124eb38b72718ec5***** |
| Tag |
array<object> |
標籤資訊集合。 |
|
|
object |
資源標籤。 |
||
| Key |
string |
標籤鍵 |
test |
| Value |
string |
標籤值。 |
yahaha |
| Upgradable |
boolean |
該網格是否可以升級。 |
false |
樣本
正常返回樣本
JSON格式
{
"RequestId": "BD65C0AD-D3C6-48D3-8D93-38D2015C****",
"ServiceMeshes": [
{
"Endpoints": {
"IntranetPilotEndpoint": "192.168.xx.xx:15011",
"IntranetApiServerEndpoint": "https://192.168.xx.xx:6443",
"PublicApiServerEndpoint": "https://123.56.xx.xx:6443",
"ReverseTunnelEndpoint": "none",
"PublicPilotEndpoint": "xx.xx.xx.xx"
},
"ServiceMeshInfo": {
"Profile": "Pro",
"CreationTime": "2020-04-21T09:42:20+08:00",
"UpdateTime": "2020-04-21T09:42:20+08:00",
"ErrorMessage": "error",
"Version": "1",
"State": "success",
"ServiceMeshId": "cb8963379255149cb98c8686f274x****",
"Name": "test",
"RegionId": "cn-beijing"
},
"Spec": {
"Network": {
"VpcId": "vpc-2zew0rajjkmxy2369****",
"SecurityGroupId": "sg-2ze384sxttxbctnj****",
"VSwitches": [
"[\"1\",\"2\"]"
]
},
"LoadBalancer": {
"PilotPublicEip": true,
"PilotPublicLoadbalancerId": "lb-2zesa8qs8kbkj9jkl****",
"ApiServerLoadbalancerId": "lb-2zekaak10uxds44vx****",
"ApiServerPublicEip": true
},
"MeshConfig": {
"Telemetry": true,
"OutboundTrafficPolicy": "ALLOW_ANY",
"Tracing": true,
"StrictMtls": true,
"Pilot": {
"Http10Enabled": true,
"TraceSampling": 0.2
},
"Mtls": true,
"SidecarInjector": {
"EnableNamespacesByDefault": false,
"AutoInjectionPolicyEnabled": true,
"InitCNIConfiguration": {
"ExcludeNamespaces": "default,foo",
"Enabled": true
}
},
"ExtraConfiguration": {
"Playground": {
"Scene": "ewmaLb"
}
}
}
},
"Clusters": [
"[\"caf089e56daba4c51a8906fe43ea1****\",\"c80f45444b3da447da60a911390c2****\"]"
],
"ClusterSpec": "standard",
"OwnerType": "ackone",
"OwnerId": "cc3e96f249d124eb38b72718ec5*****",
"Tag": [
{
"Key": "test",
"Value": "yahaha"
}
],
"Upgradable": false
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。