Create LAN Segment (v2.0)
POST/v2.0/api/tenants/:tenant_id/networkcontexts
Create a new LAN segment.
Request
Path Parameters
tenant_id stringrequired
The ID of the tenant.
- application/json
Body
Details of the lan segment model to be created
description
The description of the LAN segment. Maz size = 256.
id string
The ID of the LAN segment.
name string
The name of the LAN segment. Max size = 128.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
description
The description of the LAN segment. Maz size = 256.
id string
The ID of the LAN segment.
name string
The name of the LAN segment. Max size = 128.
{
"id": "string",
"name": "string"
}
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": "NETWORK_CONTEXT_CONFIG_DESCRIPTION_INVALID"
},
{
"code": "NAME_EXCEEDS_LIMIT"
},
{
"code": "NETWORK_CONTEXT_CONFIG_NAME_REQD"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
}
]
}
}
Loading...