Create AS-Path Access List (v2.1)
POST/v2.1/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/routing_aspathaccesslists
Create a AS-Path access list.
Request
Path Parameters
ID of the tenant.
The ID of the site.
The ID of the element.
- application/json
Body
Details of the as-path access list to be created
- Array [
- ]
as_path_regex_list ASPathRegex[]
The AS Path Regex expression list.
The AS Path Regex expression.
The order of the AS Path Regex.
The value true or false if AS path regex is allowed.
The value true or false for auto-generated access lists.
The description of the access list. Max size = 1024.
The ID of the access list.
The name of the access list. Max size = 128.
A information field that can be added to identify the access list. Maximum 10 unique tags of length 1024 each are allowed.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
as_path_regex_list ASPathRegex[]
The AS Path Regex expression list.
The AS Path Regex expression.
The order of the AS Path Regex.
The value true or false if AS path regex is allowed.
The value true or false for auto-generated access lists.
The description of the access list. Max size = 1024.
The ID of the access list.
The name of the access list. Max size = 128.
A information field that can be added to identify the access list. Maximum 10 unique tags of length 1024 each are allowed.
{
"as_path_regex_list": [
{
"as_path_regex": "string",
"order": 0,
"permit": true
}
],
"auto_generated": true,
"id": "string",
"name": "string",
"tags": [
"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": "ELEMENT_NOT_FOUND"
},
{
"code": "ELEMENT_NOT_ASSIGNED_TO_SITE"
},
{
"code": "NOT_SUPPORTED_BY_ELEMENT"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
}
]
}
}