Method | URI | Description |
---|---|---|
POST | /v2/{tenant_id}/os-agents | Creates an agent build. |
Normal response codes: 200
This table shows the URI parameters for the create agent request:
Name | Type | Description |
---|---|---|
| String | The unique ID of the tenant or account. |
Example 3.107. Create agent: JSON request
{ "agent": { "hypervisor": "hypervisor", "os": "os", "architecture": "x86", "version": "8.0", "md5hash": "add6bb58e139be103324d04d82d8f545", "url": "xxxxxxxxxxxx" } }
Example 3.108. Create agent: XML request
<?xml version="1.0" encoding="UTF-8"?> <agent> <hypervisor>hypervisor</hypervisor> <os>os</os> <architecture>x86</architecture> <version>8.0</version> <md5hash>add6bb58e139be103324d04d82d8f545</md5hash> <url>xxxxxxxxxxxx</url> </agent>
This operation does not require a request body.
Example 3.109. Create agent: JSON response
{ "agent": { "agent_id": "1", "architecture": "x86", "hypervisor": "hypervisor", "md5hash": "add6bb58e139be103324d04d82d8f545", "os": "os", "url": "xxxxxxxxxxxx", "version": "8.0" } }
Example 3.110. Create agent: XML response
<?xml version='1.0' encoding='UTF-8'?> <agent> <url>xxxxxxxxxxxx</url> <hypervisor>hypervisor</hypervisor> <md5hash>add6bb58e139be103324d04d82d8f545</md5hash> <version>8.0</version> <architecture>x86</architecture> <os>os</os> <agent_id>1</agent_id> </agent>
This operation does not return a response body.