Queries imported services on an Alibaba Cloud Service Mesh (ASM) gateway.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeASMGatewayImportedServices |
The operation that you want to perform. Set the value to DescribeASMGatewayImportedServices. |
| ServiceMeshId | String | Yes | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
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 | 11fd0027-c27e-41bb-a565-75583054**** |
The ID of the request. |
| ImportedServices | Array of importedService |
The imported services. |
|
| ServiceName | String | productpage |
The name of the service. |
| ServiceNamespace | String | default |
The namespace in which the service resides. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeASMGatewayImportedServices
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&ASMGatewayName=ingressgateway
&ServiceNamespace=default
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeASMGatewayImportedServicesResponse>
<RequestId>E0496204-7586-5B4C-B364-2361CC0Exxxx</RequestId>
<ImportedServices>
<ServiceName>productpage</ServiceName>
<ServiceNamespace>default</ServiceNamespace>
</ImportedServices>
</DescribeASMGatewayImportedServicesResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E0496204-7586-5B4C-B364-2361CC0Exxxx",
"ImportedServices" : [ {
"ServiceName" : "productpage",
"ServiceNamespace" : "default"
} ]
}
Error codes
For a list of error codes, visit the API Error Center.