Show Agent

Verb URI Description
GET /agents/agent_id Show information of the given agent.

Normal Response Code: 200

Error Response Codes:NotFound (404) if not authorized or the agent does not exist

This operation returns information for the given agent.

This operation does not require a request body.

This operation returns a response body. The body contents depend on the agent's type.

 

Example 4.64. Show Agent: JSON Request

GET /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: a54d6fdda41341f892150e2aaf648f0d


 

Example 4.65. Show Agent: 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...