Method | URI | Description |
---|---|---|
PUT | /v2/{tenant_id}/os-agents/{id} | Updates an agent build. |
Normal response codes: 200
This table shows the URI parameters for the update agent request:
Name | Type | Description |
---|---|---|
| String | The unique ID of the tenant or account. |
| UUID | 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.
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.