Runs a command on one or more cloud phone instances.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceIds |
array |
No |
A list of instance IDs. You can specify up to 50 instances per request. |
|
|
string |
No |
The instance ID. |
acp-7b15ex96**** |
|
| CommandContent |
string |
No |
The content of the command. |
ls |
| Timeout |
integer |
No |
The execution timeout in seconds. The command times out if it does not complete within this period. Defaults to 60 seconds. |
60 |
| AgentType |
string |
No |
The channel type for running the command. Valid values:
|
EdsAgent |
| ContentEncoding |
string |
No |
The encoding method for the command content ( Note An invalid value defaults to Valid values:
|
PlainText |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
440D7342-5E7C-B2DB-D0B4EAC2BDF1**** |
| InvokeId |
string |
The command execution ID. Use this ID to query the execution result. |
t-gov2ujrk32v4**** |
| TaskId |
string |
||
| RunCommandInfos |
array<object> |
||
|
object |
|||
| InvokeId |
string |
||
| InstanceId |
string |
||
| ChildTaskId |
string |
Examples
Success response
JSON format
{
"RequestId": "440D7342-5E7C-B2DB-D0B4EAC2BDF1****",
"InvokeId": "t-gov2ujrk32v4****",
"TaskId": "",
"RunCommandInfos": [
{
"InvokeId": "",
"InstanceId": "",
"ChildTaskId": ""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.