Create VRF Segment (v2.0)
POST/v2.0/api/tenants/:tenant_id/vrfcontexts
Create a VRF segment.
Request
Path Parameters
tenant_id stringrequired
ID of the tenant.
- application/json
Body
VRF Context Request
description
Description of the VRF context config. Max size = 256.
id string
The VRF context ID.
name stringrequired
The name of the VRF context. Max size = 128.
tags string[]
A information field that can be added to identify the VRF context. Maximum 10 unique tags of length 1024 each are allowed.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
default_vrf_context boolean
VRF context is enabled by default. True / False.
description
Description of the VRF context config. Max size = 256.
id string
The VRF context ID.
name stringrequired
The name of the VRF context. Max size = 128.
tags string[]
A information field that can be added to identify the VRF context. Maximum 10 unique tags of length 1024 each are allowed.
{
"default_vrf_context": true,
"id": "string",
"name": "string",
"tags": [
"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": "VRF_CONTEXT_CONFIG_DESCRIPTION_INVALID"
},
{
"code": "VRF_CONTEXT_NAME_EXCEEDS_LIMIT"
},
{
"code": "VRF_CONTEXT_NAME_INVALID"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
}
]
}
}
Loading...