Set Cloud Phone Proxy
Set cloud phone proxy.
Interface Address:
text
/papi/container/operate/startProxyRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID, see API Rules |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 result |
| X-Timestamp | string | Yes | Millisecond-level Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10~32 lowercase letters + digits |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctrId | string | Yes | Container ID |
| proxyHost | string | Yes | Proxy host |
| proxyPort | integer | Yes | Proxy port |
| proxyType | integer | Yes | Proxy type (1-Socks5, 2-HTTP) |
| userName | string | No | Proxy username |
| password | string | No | Proxy password |
| packageWhiteList | string | No | Package whitelist, comma-separated (format: com.example.app1,com.example.app2) |
| ipWhiteList | string | No | IP whitelist, comma-separated (format: 192.168.1.1,192.168.1.2) |
| ipSimulationEnabled | integer | No | Enable IP simulation (1-On, 0-Off) |
Request Example:
json
{
"ctrId": "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f",
"proxyHost": "38.175.217.136",
"proxyPort": 10810,
"proxyType": 1,
"userName": "njZQKJkYGCzv",
"password": "qhBqlupqI0aM",
"packageWhiteList": "",
"ipWhiteList": "",
"ipSimulationEnabled": 1
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | ContainerApiResult | Response data |
| ├─ success | boolean | Whether the operation succeeded |
| ├─ taskId | string | Task ID of the operation |
| ├─ data | object | Data |
| ├─ msg | string | Message of the current operation |
| ├─ ctrId | string | Container CtrId |
| ├─ ctrAlias | string | Container alias |
| ├─ ctrSlot | integer | Cloud phone slot |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": {
"success": true,
"taskId": "",
"data": {},
"msg": "",
"ctrId": "cf5eaa177d75de7f43a0d95c84832560b70118e462dc2eb8da529a936d8c3c6f",
"ctrAlias": "",
"ctrSlot": 0
},
"msg": ""
}