Update Prefix List (v2.1)
PUT/v2.1/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/routing_prefixlists/:routing_prefixlist_id
Update a prefix list.
Request
Path Parameters
ID of the tenant.
The ID of the site.
The ID of the element.
The routing prefix list ID.
- application/json
Body
Details of the prefix list to be updated
- Array [
- ]
The value true or false for auto-generated prefix list for an element.
The description of the prefix filter list. Max size = 1024.
The ID of the prefix filter list.
The name of the prefix filter list. Max size = 128.
prefix_filter_list RoutingPrefixFilterV2N1[]
The details of the prefix filter list used to filter routes.
The prefix filter value for ge operator should be within the range 1-32.
The IPv4 prefixes.
The prefix filter value for le operator should be within the range 1-32.
The order of the prefix filter.
The permit of the IP community string = Permit or Deny.
The valid prefix filters.
A information field that can be added to identify the prefix filter list. Maximum 10 unique tags of length 1024 each are allowed.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The value true or false for auto-generated prefix list for an element.
The description of the prefix filter list. Max size = 1024.
The ID of the prefix filter list.
The name of the prefix filter list. Max size = 128.
prefix_filter_list RoutingPrefixFilterV2N1[]
The details of the prefix filter list used to filter routes.
The prefix filter value for ge operator should be within the range 1-32.
The IPv4 prefixes.
The prefix filter value for le operator should be within the range 1-32.
The order of the prefix filter.
The permit of the IP community string = Permit or Deny.
The valid prefix filters.
A information field that can be added to identify the prefix filter list. Maximum 10 unique tags of length 1024 each are allowed.
{
"auto_generated": true,
"id": "string",
"name": "string",
"prefix_filter_list": [
{
"ge": 0,
"ipv6_prefix": "string",
"le": 0,
"order": 0,
"permit": true,
"prefix": "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_PREFIX_LIST"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
},
{
"code": "PREFIX_LIST_PREFIX_NOT_SUPPORTED"
}
]
}
}