Updates imported services on an Alibaba Cloud Service Mesh (ASM) gateway to import or delete upstream services associated with the gateway.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | UpdateASMGatewayImportedServices |
The operation that you want to perform. Set the value to UpdateASMGatewayImportedServices. |
| ServiceMeshId | String | Yes | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
The ID of the ASM instance. |
| ServiceNames | String | No | reviews,sleep |
The names of the services. Separate multiple service names with commas (,). Example: reviews,sleep. |
| 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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateASMGatewayImportedServices
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&ServiceNames=reviews,sleep
&ASMGatewayName=ingressgateway
&ServiceNamespace=default
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateASMGatewayImportedServicesResponse>
<RequestId>11fd0027-c27e-41bb-a565-75583054****</RequestId>
</UpdateASMGatewayImportedServicesResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "11fd0027-c27e-41bb-a565-75583054****"
}
Error codes
For a list of error codes, visit the API Error Center.