forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
9.8 KiB
9.8 KiB
Binding a Floating IP Address (Discarded)
Function
This API is used to bind a floating IP address for an ECS.
This API has been discarded. Since microversion 2.44, the system will return error 404 when you call this API. You are advised to use the VPC API "Updating a Floating IP Address".
URI
POST /v2/{project_id}/servers/{server_id}/action
POST /v2.1/{project_id}/servers/{server_id}/action
Table 1 describes the parameters in the URI.
Request
Table 2 describes the request parameters.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
addFloatingIp |
Yes |
Object |
Specifies the floating IP address to be bound to an ECS. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
address |
Yes |
String |
Specifies the floating IP address. |
fixed_address |
No |
String |
Specifies the fixed IP address with which the floating IP address associates. |
Response
None
Example Request
POST https://{endpoint}/v2/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action POST https://{endpoint}/v2.1/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
{ "addFloatingIp" : { "address" : "10.144.2.1", "fixed_address" : "192.168.1.3" } }
Example Response
None
Returned Values
Parent topic: Floating IP Address Management (OpenStack Nova APIs)