• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. Floating IP Address Management
  6. Unbinding a Floating IP Address (Discarded)

Unbinding a Floating IP Address (Discarded)

Function Description

This interface is used to unbind a floating IP address from an ECS.

Constraints

  • This interface will become invalid from microversion 2.44. Since this version, the system will return error 404 when you call this interface. You are advised to use the VPC interface "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.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

server_id

Yes

Specifies the ECS ID.

Request

Request parameters

Table 2 describes the request parameters.

Table 2 Request parameter

Parameter

Type

Mandatory

Description

removeFloatingIp

Dict

Yes

Unbinds a floating IP address from an ECS.

Table 3 removeFloatingIp parameter information

Parameter

Type

Mandatory

Description

address

String

Yes

Specifies the floating IP address.

Response

N/A

Examples

  • Example request
    POST /v2/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
    POST /v2.1/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
    {
       "removeFloatingIp" : {
            "address" : "10.144.2.1"
        }
    }
  • Example response

    N/A

Returned Values

See General Request Returned Values.