Management Plane API > Networking > Logical Routing And Services > Routing Configuration

Read the Advertisement Rules on a Logical Router

Returns the advertisement rule list for the specified
TIER1 logical router.

Request:

Method:
GET
URI Path(s):
/api/v1/logical-routers/<logical-router-id>/routing/advertisement/rules
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-routers/f61f2197-0ccd-4c2d-972e-22fadab4e33a/routing/advertisement/rules

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
AdvertiseRuleList+

Example Response:

{ "_revision": 1, "id": "f61f2197-0ccd-4c2d-972e-22fadab4efff", "resource_type": "AdvertiseRuleList", "rules": [ { "networks": [ "192.168.100.0/24" ], "display_name": "Rule 1", "action": "DENY", "rule_filter": { "prefix_operator": "GE", "match_route_types": ["T1_LB_SNAT"] } }, { "networks": [ "192.168.10.0/24" ], "display_name": "Rule 2", "action": "ALLOW" } ] }

Required Permissions:

read

Feature:

routing_routers

Additional Errors: