Update Access List (v2.0)
PUT/v2.0/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/routing_aspathaccesslists/:config_id
Updates the access list.
Request
Path Parameters
ID of the tenant.
The ID of the site.
The ID of the element.
The ID of the access list.
- application/json
Body
Details of the as-path access list to be updated
- 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/community lists.
The description of the access/community list. Max size = 1024.
The ID of the access/community list.
The name of the access/community list. Max size = 128.
A information field that can be added to identify the access/community 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": "CANNOT_UPDATE_AUTOGENERATED_ACCESS_LIST"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
}
]
}
}