Update Agent

Verb URI Description
PUT /agents/agent_id Update the agent's admin status and description.

Normal Response Code: 200

Error Response Codes: BadRequest (400) if something other than description or admin status is changed, NotFound (404) if not authorized or the agent does not exist

This operation updates the agent's admin status and description.

This operation requires a request body.

This operation returns a response body.

 

Example 4.66. Update Agent: JSON Request

PUT /v2.0/agents/af4567ad-c2e6-4311-944d-22efc12f89af HTTP/1.1
Host: controlnode:9696
User-Agent: python-neutronclient
Content-Type: application/json
Accept: application/json
X-Auth-Token: 4cbb09e780434b249ff596d6979fd8fc
Content-Length: 38

{
    "agent": {
        "admin_state_up": "False"
    }
}

 

Example 4.67. Update Agents: JSON Response

{
   "agent":{
      "binary":"neutron-dhcp-agent",
      "description":null,
      "admin_state_up":false,
      "heartbeat_timestamp":"2013-03-26T09:35:13.000000",
      "alive":false,
      "id":"af4567ad-c2e6-4311-944d-22efc12f89af",
      "topic":"dhcp_agent",
      "host":"HostC",
      "agent_type":"DHCP agent",
      "started_at":"2013-03-26T09:35:01.000000",
      "created_at":"2013-03-26T09:35:01.000000",
      "configurations":{
         "subnets":2,
         "use_namespaces":true,
         "dhcp_driver":"neutron.agent.linux.dhcp.Dnsmasq",
         "networks":2,
         "dhcp_lease_time":120,
         "ports":3
      }
   }
}

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


loading table of contents...