• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Creating a HANA ECS
  5. Creating a Network

Creating a Network

For detailed API information, see Native OpenStack API Reference.

Parameters

network

Attribute

Type

CRUD

Default Value

Restriction

Description

status

String

R

ACTIVE

N/A

Specifies a network status, which can be ACTIVE, BUILD, DOWN, or ERROR.

subnets

List (Uuid-str)

R

Empty list

N/A

Specifies a list for the IDs of the subnets associated with a network.

One network supports the association of only one subnet.

name

String (255)

CRU

Empty

N/A

Specifies a network name.

The name cannot be the same as the admin_external_net value.

admin_state_up

Bool

CRU

True

True or false

Specifies an administrative status.

The value can only be True.

tenant_id

String (255)

CR

N/A

N/A

Specifies a tenant ID. Only the administrator can specify the tenant_id of other tenants.

id

Uuid-str

R

Automatically generated

N/A

Specifies a network ID.

API Format

Method

URI

Description

POST

/v2.0/networks

Creates a network.

Restrictions

None

Request Parameters

Parameter

Type

Mandatory or Not

Description

network

Dict

Yes

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

Mandatory field: none

Response Parameters

Parameter

Type

Mandatory or Not

Description

network

Dict

Yes

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

Request Example

POST /v2.0/networks
{
   "network":
   {
    "name": "HANAVPC",
    "admin_state_up": true,
    "tenant_id": 6fbe9263116a4b68818cf1edce16bc4"
   }
}

Response Example

{
    "network": {
      "status": "ACTIVE",
      "subnets": [],
      "name": " HANAVPC",
      "provider:physical_network": "physnet1",
      "admin_state_up": true,
      "tenant_id": "6fbe9263116a4b68818cf1edce16bc4",
      "provider:network_type": "vlan",
      "router:external": false,
      "shared": false,
      "id": "ca7192a3-867c-42c1-bfd8-6bb777bae6cf",
      "provider:segmentation_id": 55
     }
}