Create VRF Context Profile (v2.0)
POST/v2.0/api/tenants/:tenant_id/vrfcontextprofiles
Create a new VRF context profile.
Request
Path Parameters
ID of the tenant.
- application/json
Body
VRF Context Profile Request
- Array [
- ]
Default Vrf Context Profile: JsonIgnore(value = true)
Description of the VRF profile. Max size = 256.
The VRF profile ID.
The name of the VRF profile. Max size = 128.
A information field that can be added to identify the VRF profile. Maximum 10 unique tags of length 1024 each are allowed.
The VRF context IDs.
vrf_context_route_leak_rules VRFContextRouteLeakRule[]
The valid VRF context leak rules.
Description of the Route Leak Rule. Max size = 256.
The destination VRF ID for the Route Leak Rule.
The leaked IPv4 prefixes of the Route Leak Rule. The leaked IPv4 prefix in the route leak rule must match the prefix configured on the interface.
The name of the Route Leak Rule. Max size = 128.
The SRC VRF ID.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
VRF profile is enabled by default. True / False.
Description of the VRF profile. Max size = 256.
The VRF profile ID.
The name of the VRF profile. Max size = 128.
A information field that can be added to identify the VRF profile. Maximum 10 unique tags of length 1024 each are allowed.
The VRF context IDs.
vrf_context_route_leak_rules VRFContextRouteLeakRule[]
The valid VRF context leak rules.
Description of the Route Leak Rule. Max size = 256.
The destination VRF ID for the Route Leak Rule.
The leaked IPv4 prefixes of the Route Leak Rule. The leaked IPv4 prefix in the route leak rule must match the prefix configured on the interface.
The name of the Route Leak Rule. Max size = 128.
The SRC VRF ID.
{
"default_vrf_context_profile": true,
"id": "string",
"name": "string",
"tags": [
"string"
],
"vrf_context_ids": [
"string"
],
"vrf_context_route_leak_rules": [
{
"dest_vrf_context_id": "string",
"ipv4_prefixes": [
"string"
],
"name": "string",
"src_vrf_context_id": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "VRF_CONTEXT_PROFILE_NAME_INVALID"
},
{
"code": "VRF_CONTEXT_PROFILE_NAME_EXCEEDS_LIMIT"
},
{
"code": "VRF_CONTEXT_PROFILE_DESCRIPTION_INVALID"
},
{
"code": "VRF_CONTEXT_ROUTE_LEAK_RULE_NAME_INVALID"
},
{
"code": "VRF_CONTEXT_ROUTE_LEAK_RULE_NAME_EXCEEDS_LIMIT"
},
{
"code": "VRF_CONTEXT_ROUTE_LEAK_RULE_DESCRIPTION_INVALID"
},
{
"code": "SOURCE_VRF_CONTEXT_INVALID"
},
{
"code": "DESTINATION_VRF_CONTEXT_INVALID"
},
{
"code": "INVALID_PREFIX"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
}
]
}
}