调用DescribeImportedServicesDetail获取ASM网关已导入服务的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeImportedServicesDetail |
系统规定参数。取值:DescribeImportedServicesDetail。 |
ServiceMeshId | String | 是 | cb8963379255149cb98c8686f274x**** |
服务网格ID |
ASMGatewayName | String | 否 | ingressgateway |
网关名称 |
ServiceNamespace | String | 否 | default |
服务所在命名空间 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | E0496204-7586-5B4C-B364-2361CC0EDxxxx |
请求ID |
Details | Array of detail |
服务详细信息列表 |
|
ServiceName | String | productpage |
服务名称 |
Namespace | String | default |
服务所在命名空间 |
Labels | Map |
标签列表 |
|
String | app: productpage |
服务定义的相关标签信息 |
|
ClusterIds | Array of String | c7894c929677643a5bfe1a732d778**** |
服务所在的集群ID |
ServiceType | String | Kuberntes |
服务类型 |
Ports | Array of port |
服务声明的端口列表 |
|
Name | String | http-0 |
端口名称 |
Protocol | String | tcp |
端口对应协议 |
Port | Integer | 80 |
端口 |
TargetPort | Integer | 8080 |
容器端口 |
NodePort | Integer | 12345 |
节点端口 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeImportedServicesDetail
&ServiceMeshId=cb8963379255149cb98c8686f274x****
&ASMGatewayName=ingressgateway
&ServiceNamespace=default
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeImportedServicesDetailResponse>
<RequestId>E0496204-7586-5B4C-B364-2361CC0EDxxxx</RequestId>
<Details>
<ServiceName>productpage</ServiceName>
<Namespace>default</Namespace>
<Labels>
<key>app: productpage</key>
</Labels>
<ClusterIds>c7894c929677643a5bfe1a732d778****</ClusterIds>
<ServiceType>Kuberntes</ServiceType>
<Ports>
<Name>http-0</Name>
<Protocol>tcp</Protocol>
<Port>80</Port>
<TargetPort>8080</TargetPort>
<NodePort>12345</NodePort>
</Ports>
</Details>
</DescribeImportedServicesDetailResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E0496204-7586-5B4C-B364-2361CC0EDxxxx",
"Details" : {
"ServiceName" : "productpage",
"Namespace" : "default",
"Labels" : {
"key" : "app: productpage"
},
"ClusterIds" : "c7894c929677643a5bfe1a732d778****",
"ServiceType" : "Kuberntes",
"Ports" : {
"Name" : "http-0",
"Protocol" : "tcp",
"Port" : 80,
"TargetPort" : 8080,
"NodePort" : 12345
}
}
}
错误码
访问错误中心查看更多错误码。