• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Creating a HANA ECS
  5. (Optional) Creating a Floating IP Address

(Optional) Creating a Floating IP Address

API Format

Method

URI

Description

POST

/v2.0/floatingips

Creates a floating IP address and associates it with an internal port.

Restrictions

Do not bind a floating IP address to a NIC that is used for internal east-west cluster communication.

Object Model

Floating IP address parameters

Attribute

Type

CRUD

Default Value

Restriction

Description

status

String

R

ACTIVE

N/A

Specifies the network status. For details, see the network status table.

id

Uuid-str

R

Automatically generated

N/A

Specifies the floating IP address ID.

floating_ip_address

String (64)

CR

Empty

N/A

Specifies the floating IP address.

floating_network_id

Uuid-str

CR

N/A

N/A

Specifies the external network ID. For details, see the "Request Example".

router_id

Uuid-str

CR

Empty

N/A

Specifies the router ID.

Null is returned for a router ID query.

port_id

Uuid-str

CRU

Empty

N/A

Specifies the VM port ID.

fixed_ip_address

String (64)

CRU

Empty

IP address or null

Specifies the private IP address of the associated port.

User input is ignored.

tenant_id

String (255)

R

ID of the authenticated tenant

N/A

Specifies the tenant ID.

Request Parameters

Parameter

Type

Mandatory or Not

Description

floatingip

Dict

Yes

Floating IP address

For details, see the Floating IP address table.

The floating_network_id field is mandatory.

Response Parameters

Parameter

Type

Mandatory or Not

Description

floatingip

Dict

Yes

Floating IP address

For details, see the Floating IP address table.

Request Example

POST /v2.0/floatingips
{
    "floatingip": {
      "floating_network_id": "0a2228f2-7f8a-45f1-8e09-9039e1d09975"
    }
}
NOTE:

As shown in the preceding example, the value of floating_network_id is 0a2228f2-7f8a-45f1-8e09-9039e1d09975 by default.

Response Example

{
    "floatingip": {
      "floating_network_id":"0a2228f2-7f8a-45f1-8e09-9039e1d09975",
      "port_id": "e54a2a49-ba89-435f-8898-3f3cf6d131d5"
    }
}