Queries the details of the imported services on an Alibaba Cloud Service Mesh (ASM) gateway.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeImportedServicesDetail

The operation that you want to perform. Set the value to DescribeImportedServicesDetail.

ServiceMeshId String Yes cb8963379255149cb98c8686f274x****

The ID of the ASM instance.

ASMGatewayName String No ingressgateway

The name of the ASM gateway.

ServiceNamespace String No default

The namespace in which the service resides.

Response parameters

Parameter Type Example Description
RequestId String E0496204-7586-5B4C-B364-2361CC0EDxxxx

The ID of the request.

Details Array of detail

The details of the services.

ServiceName String productpage

The name of the service.

Namespace String default

The namespace in which the service resides.

Labels Map

The labels of the service.

String app: productpage

The label of the service.

ClusterIds Array of String c7894c929677643a5bfe1a732d778****

The IDs of the clusters to which the service belongs.

ServiceType String Kuberntes

The type of the service.

Ports Array of port

The ports declared for the service.

Name String http-0

The name of the port.

Protocol String tcp

The protocol of the port.

Port Integer 80

The port number.

TargetPort Integer 8080

The container port.

NodePort Integer 12345

The node port.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeImportedServicesDetail
&ServiceMeshId=cb8963379255149cb98c8686f274x****
&ASMGatewayName=ingressgateway
&ServiceNamespace=default
&Common request parameters

Sample success responses

XML format

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 format

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
    }
  }
}

Error codes

For a list of error codes, visit the API Error Center.