Skip to main content
POST
/
service
/
{tenant_name}
/
l2
/
customer_port
/
{customer_port_name}
/
vlan
Create Tenant L2
curl --request POST \
  --url https://api.example.com/service/{tenant_name}/l2/customer_port/{customer_port_name}/vlan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "vi_name": "<string>",
  "vlan_id": 123,
  "max_bandwidth": 0
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "status": "received",
  "extra_details": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_port_name
string
required

Body

application/json
vi_name
string
required
vlan_id
integer | null
max_bandwidth
integer
default:0

Response

Successful Response

id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
status
enum<string>
required
Available options:
received,
in_progress,
success,
failed,
cancelled
extra_details
Extra Details · object