| Method | URI | Description |
|---|---|---|
| PUT | /v2.0/networks/{network_id} | Updates a specified network. |
Normal response codes: 201
This table shows the URI parameters for the update network request:
| Name | Type | Description |
|---|---|---|
| UUID | The UUID for the network of interest to you. |
Example 4.10. Update network: XML request
<?xml version="1.0" encoding="UTF-8"?>
<network xmlns="http://openstack.org/quantum/api/v2.0"
xmlns:provider="http://docs.openstack.org/ext/provider/api/v1.0"
xmlns:quantum="http://openstack.org/quantum/api/v2.0"
xmlns:router="http://docs.openstack.org/ext/quantum/router/api/v1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>sample-network-4-updated</name>
</network>
This operation does not require a request body.
Example 4.11. Update network: JSON response
{
"network":{
"status":"ACTIVE",
"subnets":[
],
"name":"sample_network_5_updated",
"provider:physical_network":null,
"admin_state_up":true,
"tenant_id":"4fd44f30292945e481c7b8a0c8908869",
"provider:network_type":"local",
"router:external":false,
"shared":false,
"id":"1f370095-98f6-4079-be64-6d3d4a6adcc6",
"provider:segmentation_id":null
}
}
Example 4.12. Update network: XML response
<?xml version='1.0' encoding='UTF-8'?>
<network xmlns="http://openstack.org/quantum/api/v2.0"
xmlns:provider="http://docs.openstack.org/ext/provider/api/v1.0"
xmlns:quantum="http://openstack.org/quantum/api/v2.0"
xmlns:router="http://docs.openstack.org/ext/neutron/router/api/v1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<status>ACTIVE</status>
<subnets quantum:type="list"/>
<name>sample-network-4-updated</name>
<provider:physical_network xsi:nil="true"/>
<admin_state_up quantum:type="bool">True</admin_state_up>
<tenant_id>4fd44f30292945e481c7b8a0c8908869</tenant_id>
<provider:network_type>local</provider:network_type>
<router:external quantum:type="bool">False</router:external>
<shared quantum:type="bool">False</shared>
<id>af374017-c9ae-4a1d-b799-ab73111476e2</id>
<provider:segmentation_id xsi:nil="true"/>
</network>
This operation does not return a response body.

