Disassociates an elastic IP address (EIP) from an API server or associates an EIP with an API server.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ModifyApiServerEipResource |
The operation that you want to perform. Set the value to ModifyApiServerEipResource. |
| ServiceMeshId | String | No | cb8963379255149cb98c8686f274x**** |
The ID of the Alibaba Cloud Service Mesh (ASM) instance. |
| Operation | String | No | BindEip |
The type of the operation. Valid values:
|
| ApiServerEipId | String | No | eip-bp1adu9jegmxnaoq**** |
The ID of the EIP. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | BD65C0AD-D3C6-48D3-8D93-38D2015C**** |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyApiServerEipResource
&ServiceMeshId=cb8963379255149cb98c8686f274x****
&Operation=BindEip
&ApiServerEipId=eip-bp1adu9jegmxnaoq****
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyApiServerEipResourceResponse>
<RequestId>BD65C0AD-D3C6-48D3-8D93-38D2015C****</RequestId>
</ModifyApiServerEipResourceResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "BD65C0AD-D3C6-48D3-8D93-38D2015C****"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 500 | ERR500 | An internal server error occurred. | The error message returned because a backend service error has occurred. |
For a list of error codes, visit the API Error Center.