調用DescribeImportedServicesDetail擷取ASM網關已匯入服務的詳細資料。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
servicemesh:DescribeImportedServicesDetail |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ServiceMeshId |
string |
是 |
服務網格 ID |
cb8963379255149cb98c8686f274x**** |
| ASMGatewayName |
string |
否 |
網關名稱 |
ingressgateway |
| ServiceNamespace |
string |
否 |
服務所在命名空間 |
default |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應內容 |
||
| RequestId |
string |
請求 ID |
E0496204-7586-5B4C-B364-2361CC0EDxxxx |
| Details |
array<object> |
服務詳細資料列表 |
|
|
object |
服務相信資訊 |
||
| ServiceName |
string |
服務名稱 |
productpage |
| Namespace |
string |
服務所在命名空間 |
default |
| Labels |
object |
標籤列表 |
|
|
string |
服務定義的相關標籤資訊 |
app: productpage |
|
| ClusterIds |
array |
資料面叢集列表 |
|
|
string |
服務所在的叢集 ID |
c7894c929677643a5bfe1a732d778**** |
|
| ServiceType |
string |
服務類型 |
Kubernetes |
| Ports |
array<object> |
服務聲明的連接埠列表 |
|
|
object |
連接埠資訊列表 |
||
| Name |
string |
連接埠名稱 |
http-0 |
| Protocol |
string |
連接埠對應協議 |
tcp |
| Port |
integer |
連接埠 |
80 |
| TargetPort |
integer |
容器連接埠 |
8080 |
| NodePort |
integer |
節點連接埠 |
12345 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "E0496204-7586-5B4C-B364-2361CC0EDxxxx",
"Details": [
{
"ServiceName": "productpage",
"Namespace": "default",
"Labels": {
"key": "app: productpage"
},
"ClusterIds": [
"c7894c929677643a5bfe1a732d778****"
],
"ServiceType": "Kubernetes",
"Ports": [
{
"Name": "http-0",
"Protocol": "tcp",
"Port": 80,
"TargetPort": 8080,
"NodePort": 12345
}
]
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。