RunCommand
Executes a command on cloud phone instances.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceIds |
array |
No |
The list of instance IDs. A single request supports up to 50 instances. |
|
|
string |
No |
The instance ID. |
acp-7b15ex96**** |
|
| CommandContent |
string |
No |
The command content. |
ls |
| Timeout |
integer |
No |
The timeout period. Unit: seconds. If the command is not completed within this period, the command execution status is set to timeout. If this parameter is not specified, the default value is 60 seconds. |
60 |
| AgentType |
string |
No |
The channel type used to execute the command. Valid values:
|
EdsAgent |
| ContentEncoding |
string |
No |
The encoding method of the command content ( Note
If the specified value is not within the valid values, it is processed as Valid values:
|
PlainText |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response parameters. |
||
| RequestId |
string |
The request ID. |
440D7342-5E7C-B2DB-D0B4EAC2BDF1**** |
| InvokeId |
string |
The command execution ID. You can use this ID to query the command execution result. |
t-gov2ujrk32v4**** |
| TaskId |
string |
The batch task ID. |
t-bp67acfmxazb4p**** |
| RunCommandInfos |
array<object> |
The list of command execution information for each cloud phone instance. |
|
|
object |
The command execution information for a single cloud phone instance. |
||
| InvokeId |
string |
The command execution ID. |
B8ED2BA9-0C6A-5643-818F-B5D60A64**** |
| InstanceId |
string |
The cloud phone instance ID. |
acp-uto81vfd8t8z**** |
| ChildTaskId |
string |
The instance-level child task ID. |
t-bp67acfmxazb4p**** |
Examples
Success response
JSON format
{
"RequestId": "440D7342-5E7C-B2DB-D0B4EAC2BDF1****",
"InvokeId": "t-gov2ujrk32v4****",
"TaskId": "t-bp67acfmxazb4p****",
"RunCommandInfos": [
{
"InvokeId": "B8ED2BA9-0C6A-5643-818F-B5D60A64****",
"InstanceId": "acp-uto81vfd8t8z****",
"ChildTaskId": "t-bp67acfmxazb4p****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.