Update Router

Verb URI Description
PUT /routers/router_id Updates a logical router.

Normal Response Code: 200

Error Response Codes: Unauthorized (401), Bad Request (400), Not Found (404)

This operation updates a logical router. Beyond the name and the administrative state, the only parameter which can be updated with this operation is the external gateway. For more information concerning how to set the external gateway for a router, please refer to the previous section (Create Router) or to the following example.

Please note that this operation does not allow to update router interfaces. To this aim, the add router interface and remove router interface should be used.

 

Example 4.19. Update Router: JSON Request

{
   "router":{
      "external_gateway_info":{
         "network_id":"8ca37218-28ff-41cb-9b10-039601ea7e6b"
      }
   }
}

 

Example 4.20. Update Router: JSON Response

{
    "router":
    {
        "status": "ACTIVE",
        "external_gateway_info":
        {
            "network_id": "8ca37218-28ff-41cb-9b10-039601ea7e6b"
        },
        "name": "another_router",
        "admin_state_up": true,
        "tenant_id": "6b96ff0cb17a4b859e1e575d221683d3",
        "id": "8604a0de-7f6b-409a-a47c-a1cc7bc77b2e"
    }
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...