• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Creating a HANA ECS
  5. Associating All Subnets with the Target Router

Associating All Subnets with the Target Router

API Format

Method

URI

Description

PUT

/v2.0/routers/{router_id}/add_router_interface

Adds a router port.

Restrictions

When a port is used, the port has only one IP address.

When a subnet is used, the gateway IP address must be configured in the subnet.

Request Parameters

Parameter

Type

Mandatory or Not

Description

subnet_id

uuid-str

No

Specifies a subnet ID. Either subnet_id or port_id is used. Use the gateway IP address of the subnet to create a router interface.

port_id

uuid-str

No

Specifies a port ID. Either subnet_id or port_id is used. Use the port IP address to create a router interface.

Response Parameters

Parameter

Type

Mandatory or Not

Description

subnet_id

uuid-str

Yes

Subnet ID

tenant_id

uuid-str

Yes

Tenant ID

port_id

uuid-str

Yes

Port ID

id

uuid-str

Yes

Router ID

Request Example

PUT /v2.0/routers/5b8e885c-1347-4ac2-baf9-2249c8ed1270/add_router_interface
{
    "subnet_id": "ab78be2d-782f-42a5-aa72-35879f6890ff"
}

Response Example

{
    "subnet_id": "ab78be2d-782f-42a5-aa72-35879f6890ff",
    "tenant_id": "6fbe9263116a4b68818cf1edce16bc4f",
    "port_id": "40e86635-b2a3-45de-a7c8-3cced5b7e755",
    "id": "5b8e885c-1347-4ac2-baf9-2249c8ed1270"
}