Create App/WAN Context (v2.0)
POST/v2.0/api/tenants/:tenant_id/wanoverlays
Create a new app/wan context.
Request
Path Parameters
tenant_id stringrequired
ID of the tenant.
- application/json
Body
Details of the appwan context to be created
description
The WAN overlay config description. Max size = 256.
id string
The ID of the WAN overlay.
name stringrequired
The WAN overlay config name. Max size = 128.
vni int32required
The VNI value.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
description
The WAN overlay config description. Max size = 256.
id string
The ID of the WAN overlay.
name stringrequired
The WAN overlay config name. Max size = 128.
vni int32required
The VNI value.
{
"id": "string",
"name": "string",
"vni": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "WANOVERLAY_CONFIG_NAME_REQD"
},
{
"code": "NAME_EXCEEDS_LIMIT"
},
{
"code": "VNI_REQD"
},
{
"code": "INVALID_VNI_VALUE"
},
{
"code": "WANOVERLAY_CONFIG_DESCRIPTION_INVALID"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "WAN_CONTEXT_ADD_FAILED"
}
]
}
}
Loading...