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

Update the Advertisement Configuration on a Logical Router

Modifies the route advertisement configuration on the specified logical router.

Request:

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

Example Request:

PUT https://<nsx-mgr>/api/v1/logical-routers/f61f2197-0ccd-4c2d-972e-22fadab4e33a/routing/advertisement { "resource_type": "AdvertisementConfig", "description": "", "id": "77c6a05e-5602-46bc-a511-62da18fa0afe", "display_name": "77c6a05e-5602-46bc-a511-62da18fa0afe", "tags": [], "advertise_nsx_connected_routes": true, "advertise_static_routes": false, "advertise_nat_routes": true, "advertise_lb_vip": true, "advertise_lb_snat_ip": false, "enabled": true, "_revision": 2 }

Successful Response:

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

Example Response:

{ "resource_type": "AdvertisementConfig", "description": "", "id": "77c6a05e-5602-46bc-a511-62da18fa0afe", "display_name": "77c6a05e-5602-46bc-a511-62da18fa0afe", "tags": [], "advertise_nsx_connected_routes": true, "advertise_static_routes": false, "advertise_nat_routes": true, "advertise_lb_vip": true, "advertise_lb_snat_ip": false, "enabled": true, "_last_modified_user": "admin", "_last_modified_time": 1457392728479, "_revision": 3 }

Required Permissions:

crud

Feature:

routing_routers

Additional Errors: