appliance techpreview services: control
Manage a service with arbitrary command and arguments.
Request:
HTTP request
POST https://{server}/rest/appliance/techpreview/services/control
Request Body Structure:
{
"args": [
"string",
"string"
],
"name": "string",
"timeout": 1
}
"args": [
"string",
"string"
],
"name": "string",
"timeout": 1
}
<?xml version="1.0" ?>
<ns0:Control-Input xmlns:ns0="http://vmware.com/appliance/techpreview/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<args-array>
<array-item>string</array-item>
<array-item>string</array-item>
</args-array>
<name>string</name>
<timeout>1</timeout>
</ns0:Control-Input>
<ns0:Control-Input xmlns:ns0="http://vmware.com/appliance/techpreview/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<args-array>
<array-item>string</array-item>
<array-item>string</array-item>
</args-array>
<name>string</name>
<timeout>1</timeout>
</ns0:Control-Input>
Request Body Parameters:
| Name | Type | Description |
|---|---|---|
| bold = required | ||
| args | string[] | Array of arguments. |
| name | string | Name of the service. |
| timeout | long | Timeout in seconds. Zero (0) means no timeout. |
Response:
HTTP Status Code: 200
NoneErrors:
| HTTP Status Code | Type | Description |
|---|---|---|
| 500 | error | Generic error |