Resource Center/Hardware/Host Operations
PUTHost OperationsSince 0.6SynchronousAuth Required
KvmRunShell
KvmRunShell
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
kvmrunshellObjectRequiredkvmrunshell request body object.
hostUuidsSetRequiredThe target host UUIDs.
scriptStringRequiredThe script.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/hosts/kvm/actions
/zstack/v1/hosts/kvm/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/hosts/kvm/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"kvmrunshell":{"hostUuids":"<hostUuids>","script":"<script>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "8903b4b7fa694c149d932bc53ee716df": { "returnCode": 100.0, "stdout": "hello", "errorCode": {} } } }Change History
This API has no change history records yet.
