NSX-T Data Center REST API
Update the Advertisement Rules on a Logical Router (Deprecated)
Modifies the advertisement rules on the specified logicalrouter. The PUT request must include all the rules with the networks parameter. Modifiable
parameters are networks, display_name, and description. Set the rules list to empty to delete/clear all rules.
Deprecated:
Please use below Policy APIs.
PUT /policy/api/v1/infra/tier-1s/<tier-1-id>
Request:
Method:
PUT
URI Path(s):
/api/v1/logical-routers/{logical-router-id}/routing/advertisement/rules
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
AdvertiseRuleList+
Example Request:
{ "resource_type": "AdvertiseRuleList", "id": "77c6a05e-5602-46bc-a511-62da18fa0afe", "display_name": "77c6a05e-5602-46bc-a511-62da18fa0afe", "rules": [ { "description":"Advertise all East routes", "display_name":"East routes", "networks": [ "10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24" ], "rule_filter": { "prefix_operator": "GE", "match_route_types": ["ANY"] } } ], "_create_time": 1456445680356, "_last_modified_user": "admin", "_system_owned": false, "_last_modified_time": 1456445680356, "_create_user": "admin", "_revision": 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
AdvertiseRuleList+