3.15.4. Update agent

 
MethodURIDescription
PUT/v2/{tenant_id}/os-agents/{id}

Updates an agent build.

Normal response codes: 200

 3.15.4.1. Request

This table shows the URI parameters for the update agent request:

NameTypeDescription

{tenant_id}

​String

The unique ID of the tenant or account.

{id}

​U​U​ID

The unique ID associated with the agent.

 

Example 3.111. Update agent: JSON request

{
    "para": {
        "url": "xxx://xxxx/xxx/xxx",
        "md5hash": "add6bb58e139be103324d04d82d8f545",
        "version": "7.0"
    }
}

 

Example 3.112. Update agent: XML request

<?xml version="1.0" encoding="UTF-8"?>
<para>
  <version>7.0</version>
  <url>xxx://xxxx/xxx/xxx</url>
  <md5hash>add6bb58e139be103324d04d82d8f545</md5hash>
</para>

This operation does not require a request body.

 3.15.4.2. Response

 

Example 3.113. Update agent: JSON response

{
    "agent": {
        "agent_id": "1",
        "md5hash": "add6bb58e139be103324d04d82d8f545",
        "url": "xxx://xxxx/xxx/xxx",
        "version": "7.0"
    }
}

 

Example 3.114. Update agent: XML response

<?xml version='1.0' encoding='UTF-8'?>
<agent>
  <url>xxx://xxxx/xxx/xxx</url>
  <version>7.0</version>
  <agent_id>1</agent_id>
  <md5hash>add6bb58e139be103324d04d82d8f545</md5hash>
</agent>

This operation does not return a response body.

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


loading table of contents...