Policy > Networking > Connectivity > Tier-0 Gateways > Routing > Prefix List

Create or patch a prefix list

If prefix list for prefix-list-id is not already present, create
a prefix list. If it already exists, patch prefix list for prefix-list-id.
Note:
Patching existing prefix-list's "prefixes" property will overwrite the existing prefixes.
GET and PATCH is the expected set of operations to update or append new entries to the existig prefixes.
Patching existing prefixes require order to be preserved to avoid traffic impact. During PATCH operation,
reordering of existing prefixes may impact routes and eventually datapath.
Order here is crucial and it all depends upon action. If action for every prefix is PERMIT then order may
not impact but if there is DENY prefix then change in ordering could lead to traffic impact.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/tier-0s/<tier-0-id>/prefix-lists/<prefix-list-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PrefixList+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/tier-0s/vmc/prefix-lists/to-onprem { "prefixes": [ { "network":"30.1.1.0/24", "action":"PERMIT" }, { "network":"10.1.1.0/24", "action":"DENY" } ] }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_t0

Additional Errors: