• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Creating a HANA ECS
  5. Adding the Secondary (High-Performance) NIC
  6. Adding the Secondary NIC to the ECS

Adding the Secondary NIC to the ECS

Add the secondary NIC you obtained before creating an ECS to the ECS. For details about how to create a NIC as a secondary NIC, see section Creating a NIC (Port).

API Format

Method

URI

Description

POST

/v2/{tenant_id}/servers/{server_id}/os-interface

Adds a NIC.

Restrictions

Before you add the NIC, stop the ECS. Otherwise, the ECS may fail to run properly after the operation.

Request Parameters

Parameter

Type

Mandatory or Not

Description

port_id

UUID

No

Port ID

net_id

UUID

No

This parameter is not used.

fixed_ips

List

For example:

[

{

"ip_address": "192.168.1.3"

}

]

No

This parameter is not used.

Response Parameters

Parameter

Type

Mandatory or Not

Description

port_state

String

Yes

Port status

fixed_ips

List (host_route)

Yes

Subnet ID and IP addresses

port_id

UUID

Yes

Port ID

net_id

UUID

Yes

Network ID

mac_addr

String

Yes

MAC address

Request Example

POST /v2/6fbe9263116a4b68818cf1edce16bc4f/servers/9149af93-bb0e-4b38-845e-9cdc5fa02eca/os-interface

{ 
   "interfaceAttachment": {
   "port_id": "ce531f90-199f-48c0-816c-13e38010b442"
}
}

Response Example

{ 
    "interfaceAttachment": {
      "port_state": "DOWN",
      "fixed_ips": [
        {
         "subnet_id": "d9cfef77-0151-4c2a-9ed5-d951ada8adf3",
         "ip_address": "10.0.1.11"
        }
       ],
      "port_id": " ce531f90-199f-48c0-816c-13e38010b442",
      "net_id": "0dc714fa-9022-4a03-bb22-9821a396bb9d",
      "mac_addr": "fa:16:3e:63:75:b2"
     }
}

Considerations:

The secondary NIC is created in section Creating a NIC (Port) and with the security group and MTU disabled.

A NIC with the security group and MTU disabled cannot be used as a primary NIC.

Do not use the NIC with the security group and MTU disabled with other security-demanding NICs in the same network to avoid security risks.